/* DigiKonk · HUD y notificaciones Digivice. Único punto de entrada visual. */
/* DigiKonk | avisos Digivice minimalistas (PC + móvil horizontal). */
#ann-mid.dk-digivice,#banner.dk-digivice{
  box-sizing:border-box!important;display:flex!important;flex-direction:column;align-items:flex-start;
  text-align:left!important;width:max-content!important;max-width:min(370px,30vw)!important;
  min-height:58px;padding:9px 15px 10px 66px!important;
  border:1px solid color-mix(in srgb,var(--ac,#7acfe9) 48%,transparent)!important;
  border-left:3px solid var(--ac,#7acfe9)!important;
  border-radius:15px!important;
  background:linear-gradient(110deg,#071c30ee,#102d46e0)!important;
  box-shadow:0 5px 18px #0006,inset 0 1px #b6efff22!important;
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  text-shadow:none!important;
}
#ann-mid.dk-digivice::before,#banner.dk-digivice::before{
  content:"";position:absolute;left:12px;top:50%;width:40px;height:40px;
  transform:translateY(-50%);border-radius:13px;
  background:radial-gradient(circle,#aaf0dc 0 9%,transparent 11% 22%,#b0e9e4 24% 29%,transparent 31%),
             linear-gradient(135deg,#a5e6f3,#4385a7);
  box-shadow:0 0 0 3px #183a52,inset 0 0 0 5px #15364a,0 2px 7px #0008;
}
#ann-mid.dk-digivice::after,#banner.dk-digivice::after{
  content:"";position:absolute;left:26px;top:50%;width:12px;height:12px;
  transform:translateY(-50%);border:2px solid #15384c;border-radius:4px;
  background:var(--ac,#7cf29c);box-shadow:0 0 8px var(--ac,#7cf29c);
}
#ann-mid.dk-digivice{
  left:max(14px,env(safe-area-inset-left))!important;
  top:clamp(106px,21vh,170px)!important;
  transform:none!important;z-index:18!important;
}
#ann-mid.dk-digivice b,#banner.dk-digivice b{
  font:800 13px/1.2 var(--h-font,system-ui)!important;
  color:#f5fcff!important;letter-spacing:.01em!important;
  text-transform:none!important;white-space:normal!important;
}
#ann-mid.dk-digivice small,#banner.dk-digivice small{
  font:600 11px/1.25 var(--h-font,system-ui)!important;
  color:#cee6f0!important;margin-top:3px!important;
}
#ann-mid.dk-digivice.show{animation:dkNoticeIn .23s ease-out both!important}
#ann-mid.dk-digivice.out{animation:dkNoticeOut .18s ease-in both!important}
#banner.dk-digivice{
  left:50%!important;top:clamp(125px,21vh,185px)!important;
  transform:translateX(-50%)!important;z-index:19!important;
  max-width:min(380px,54vw)!important;
}
#banner.dk-digivice.show{animation:dkBannerIn .22s ease-out both!important}
#banner.dk-digivice.out{animation:dkBannerOut .18s ease-in both!important}
@keyframes dkNoticeIn{from{opacity:0;translate:-16px 0}to{opacity:1;translate:0 0}}
@keyframes dkNoticeOut{from{opacity:1;translate:0 0}to{opacity:0;translate:-10px 0}}
@keyframes dkBannerIn{from{opacity:0;translate:0 -9px}to{opacity:1;translate:0 0}}
@keyframes dkBannerOut{from{opacity:1;translate:0 0}to{opacity:0;translate:0 -8px}}

/* El jefe se anuncia por un Digivice pequeño, no por un cartel que atraviesa el combate. */
#bossCard,#bossCard.r{
  left:max(14px,env(safe-area-inset-left))!important;right:auto!important;
  bottom:auto!important;top:clamp(190px,32vh,270px)!important;
  width:max-content;max-width:min(380px,31vw);
  transform:translateX(-115%)!important;
  z-index:20!important;
}
#bossCard.show,#bossCard.r.show{transform:translateX(0)!important}
#bossCard .bc-band{inset:0!important;clip-path:none!important;opacity:1!important;
  background:linear-gradient(100deg,#311721ed,#171e32e8)!important;
  border:1px solid #e6737980;border-left:3px solid var(--bc,#ff6969);
  border-radius:15px!important;box-shadow:0 5px 18px #0006}
#bossCard .bc-in,#bossCard.r .bc-in{flex-direction:row!important;text-align:left!important;gap:9px!important;padding:8px 12px!important}
#bossCard img,#bossCard.small img{width:40px!important;height:40px!important;flex:none}
#bossCard .bc-t,#bossCard.small .bc-t{font:850 13px/1.1 var(--h-font,system-ui)!important;letter-spacing:.02em!important;text-shadow:none!important}
#bossCard .bc-s{font:600 11px/1.2 var(--h-font,system-ui)!important;letter-spacing:0!important;text-shadow:none!important;margin-top:3px!important}

/* Objetivos en curso: insignias sutiles, sin tapar el radar, el reloj o BONK. */
#dkEventStatus{
  position:fixed;z-index:12;right:200px;top:15px;max-width:min(300px,25vw);
  display:none;flex-direction:column;align-items:flex-end;gap:4px;
  pointer-events:none;font-family:var(--h-font,system-ui);
}
#dkEventStatus:not(:empty){display:flex}
#dkEventStatus .dk-status{
  display:flex;align-items:center;gap:8px;
  padding:5px 9px;border-radius:99px;background:#0a2338c9;
  color:#f5faff;border:1px solid #8bc8e34c;
  box-shadow:0 2px 9px #020d2266;font:750 12px/1.1 var(--h-font,system-ui);
  backdrop-filter:blur(8px);
}
#dkEventStatus .dk-status img{width:24px;height:24px;object-fit:contain;image-rendering:pixelated}
#dkEventStatus .dk-status small{font-size:10px;color:#cbdde9}
#dkEventStatus .dk-progress{width:40px;height:3px;border-radius:5px;background:#ffffff38;overflow:hidden}
#dkEventStatus .dk-progress i{display:block;height:100%;background:#ffd66d;width:var(--progress,0%)}

/* La pista de progreso de evento que ya actualiza el juego permanece en el borde. */
#evHud{top:auto!important;bottom:23px!important;left:50%!important;max-width:min(380px,40vw)!important;
  transform:translateX(-50%)!important;font-size:11px!important;z-index:11!important;
  padding:4px 9px 6px 13px!important}
#evHud .ev-t{font-size:11px!important}
@media (max-width:900px),(max-height:520px){
  #ann-mid.dk-digivice{top:94px!important;left:max(8px,env(safe-area-inset-left))!important;max-width:min(245px,31vw)!important;min-height:43px;padding:5px 9px 6px 47px!important}
  #ann-mid.dk-digivice::before,#banner.dk-digivice::before{width:29px;height:29px;left:9px;border-radius:10px}
  #ann-mid.dk-digivice::after,#banner.dk-digivice::after{width:8px;height:8px;left:20px}
  #ann-mid.dk-digivice b,#banner.dk-digivice b{font-size:11px!important}
  #ann-mid.dk-digivice small,#banner.dk-digivice small{font-size:9px!important}
  #banner.dk-digivice{top:74px!important;max-width:min(250px,42vw)!important;min-height:42px;padding:5px 9px 5px 47px!important}
  #bossCard,#bossCard.r{top:152px!important;left:8px!important;max-width:31vw}
  #bossCard img,#bossCard.small img{width:28px!important;height:28px!important}
  #bossCard .bc-t,#bossCard.small .bc-t{font-size:10.5px!important}
  #bossCard .bc-s{font-size:9px!important}
  #dkEventStatus{top:101px!important;right:max(8px,env(safe-area-inset-right))!important;max-width:25vw}
  #dkEventStatus .dk-status{padding:4px 7px;gap:5px;font-size:10px}
  #dkEventStatus .dk-status img{width:19px;height:19px}
  #evHud{bottom:6px!important;left:50%!important;max-width:32vw!important;font-size:10px!important}
  #evHud .ev-t{font-size:10px!important}
}
@media(max-height:390px){
  #ann-mid.dk-digivice{top:73px!important}
  #bossCard,#bossCard.r{top:128px!important}
  #dkEventStatus{top:91px!important}
}
@media(prefers-reduced-motion:reduce){
  #ann-mid.dk-digivice.show,#ann-mid.dk-digivice.out,#banner.dk-digivice.show,#banner.dk-digivice.out{animation:none!important}
}

/* Cuenta atrás del jefe bajo el reloj, integrada con la jerarquía del HUD. */
#dkBossSoon:empty{display:none!important}
#dkBossSoon:not(:empty){
  display:block!important;color:#ffb4aa!important;
  font:800 12px/1.2 var(--h-font,system-ui)!important;letter-spacing:.02em;
  text-shadow:0 2px 7px #000b;white-space:nowrap;
}
#hudTop:has(#dkBossSoon:not(:empty)) #hudObj{display:none!important}
@media(max-width:900px),(max-height:520px){
  #dkBossSoon:not(:empty){font-size:10px!important}
}

/* Disposición completa, después de los avisos. */

/* HUD completo: la interfaz se posa sobre el juego; ningún panel central pesado. */
body #hudTop{
  position:fixed!important;top:max(8px,env(safe-area-inset-top))!important;bottom:auto!important;
  left:50%!important;transform:translateX(-50%)!important;
  width:min(480px,46vw)!important;min-width:0!important;max-width:calc(100vw - 280px)!important;
  box-sizing:border-box!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;gap:3px!important;
  padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  color:#fff!important;text-shadow:0 2px 6px #061123df,0 1px 2px #061123!important;
  pointer-events:none!important;z-index:12!important;
}
body #hudTop #hudZone{
  display:flex!important;align-items:center;justify-content:center;gap:12px;
  width:100%;min-width:0;margin:0!important;
  font:700 clamp(10px,.85vw,12px)/1.25 var(--h-font,system-ui)!important;
  letter-spacing:.02em!important;text-transform:none!important;
  color:#e1f1ff!important;white-space:nowrap!important;text-shadow:inherit!important;
}
#dkZoneName{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dkRecord{flex:none;color:#ffe7a1!important}
body #hudTop #timer,
body:has(#skillBar[style*="flex"]) #hudTop #timer{
  display:block!important;position:static!important;left:auto!important;top:auto!important;
  transform:none!important;visibility:visible!important;opacity:1!important;
  margin:0!important;padding:0!important;
  background:transparent!important;box-shadow:none!important;border:0!important;
  font:850 clamp(30px,3.5vw,52px)/1 var(--h-font,system-ui)!important;
  letter-spacing:-.025em!important;color:#ffffff!important;
  font-variant-numeric:tabular-nums!important;text-shadow:0 3px 10px #061123d9!important;
}
body #hudTop #timer.urgent{color:#fff!important;animation:none!important}
body #hudTop #hudChips,
body:has(#skillBar[style*="flex"]) #hudTop #hudChips{
  display:flex!important;position:static!important;left:auto!important;top:auto!important;transform:none!important;
  align-items:center!important;justify-content:center!important;flex-wrap:nowrap!important;
  width:max-content!important;max-width:100%!important;
  margin:2px 0 0!important;padding:0!important;gap:9px!important;
  visibility:visible!important;opacity:1!important;
  background:transparent!important;box-shadow:none!important;white-space:nowrap!important;
}
body #hudTop #hudChips span{
  display:inline-flex!important;align-items:center!important;gap:4px!important;
  flex:none!important;padding:0!important;margin:0!important;
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  color:#edf7ff!important;font:750 12px/1.25 var(--h-font,system-ui)!important;
  text-shadow:0 2px 4px #061123ec!important;
}
body #hudTop #hudChips b{color:#fff!important;font-variant-numeric:tabular-nums}
body #hudTop #hudChips .hic{width:17px!important;height:17px!important}
body #hudTop #dkBossSoon:not(:empty){
  margin:2px 0 0!important;font:800 12px/1.3 var(--h-font,system-ui)!important;
  color:#ffb6ae!important;text-shadow:0 2px 6px #24090ded!important;
}
body #hudTop #hudObj{
  margin:0!important;padding:0!important;background:transparent!important;box-shadow:none!important;
  max-width:100%;font:700 11px/1.25 var(--h-font,system-ui)!important;
  text-shadow:0 2px 5px #061123!important;
}
/* Los objetivos normales también se muestran: portal, invocación y progreso. */
body #hudTop:has(#dkBossSoon:not(:empty)) #hudObj{display:none!important}
/* Digimon protagonista: vida/EXP sin tarjeta masiva; se conserva el retrato elegido. */
body #hud .hud-card{
  background:transparent!important;border:0!important;box-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  padding:3px 5px!important;gap:7px!important;border-radius:0!important;
}
body #hud .hud-main{margin-left:0!important}
body #hud .hud-name,body #hud #hpTxt,body #hud .hud-lvl{
  text-shadow:0 2px 5px #061123e6!important;
}
body #hud .hud-hp{box-shadow:0 2px 7px #06112372!important}
/* Estado de huevo siempre visible, minimapa respetado. */
body #dkEventStatus{right:calc(18px + 170px + 14px)!important;top:18px!important}
body #dkEventStatus .dk-status{border:0!important;background:#09253dc9!important}
/* Las pistas de evento no deben competir con la franja de estadísticas. */
body #evHud{bottom:18px!important}
@media (orientation:landscape) and (max-height:600px), (max-width:900px){
  body #hudTop{
    top:max(5px,env(safe-area-inset-top))!important;bottom:auto!important;
    width:clamp(190px,37vw,345px)!important;max-width:43vw!important;gap:1px!important;
  }
  body #hudTop #hudZone{font-size:9px!important;gap:6px!important;letter-spacing:0!important}
  body #hudTop #timer,
  body:has(#skillBar[style*="flex"]) #hudTop #timer{font-size:clamp(22px,5.5vh,34px)!important;line-height:1!important}
  body #hudTop #hudChips,
  body:has(#skillBar[style*="flex"]) #hudTop #hudChips{
    position:fixed!important;top:auto!important;bottom:max(6px,env(safe-area-inset-bottom))!important;
    left:50%!important;transform:translateX(-50%)!important;
    width:max-content!important;max-width:57vw!important;gap:6px!important;
    zoom:1!important;
  }
  body #hudTop #hudChips span{font-size:clamp(9px,1.1vw,11px)!important;gap:2px!important}
  body #hudTop #hudChips .hic{width:13px!important;height:13px!important}
  body #hudTop #dkBossSoon:not(:empty){font-size:10px!important}
  body #hudTop #hudObj{font-size:10px!important}
  body #hud{top:6px!important;left:max(6px,env(safe-area-inset-left))!important}
  body #hud .hud-card{padding:0!important}
  body #minimap{
    display:block!important;visibility:visible!important;opacity:1!important;
    top:8px!important;right:max(8px,env(safe-area-inset-right))!important;
    width:clamp(68px,14vh,92px)!important;height:clamp(68px,14vh,92px)!important;
    border-radius:50%!important;
  }
  body #dkEventStatus{
    top:calc(16px + clamp(68px,14vh,92px))!important;
    right:max(8px,env(safe-area-inset-right))!important;
    max-width:27vw!important;
  }
  body #evHud{bottom:max(32px,env(safe-area-inset-bottom))!important;max-width:42vw!important}
}
/* En un móvil compacto no escondemos mapa, zona, récord ni estadísticas. */
@media (orientation:landscape) and (max-height:410px){
  body #hudTop{max-width:36vw!important}
  body #hudTop #hudZone{font-size:8px!important}
  body #hudTop #hudChips span{font-size:9px!important}
  body #hudTop #hudChips{gap:4px!important;max-width:53vw!important}
}
@media(prefers-reduced-motion:reduce){body #hudTop #timer{animation:none!important}}

/* Stats outside the clock group: independent screen anchoring on mobile. */
body #hudChips,
body:has(#skillBar[style*="flex"]) #hudChips{
  position:fixed!important;left:50%!important;top:91px!important;bottom:auto!important;
  transform:translateX(-50%)!important;z-index:12!important;
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:center!important;flex-wrap:nowrap!important;gap:10px!important;
  width:max-content!important;max-width:46vw!important;
  padding:0!important;margin:0!important;zoom:1!important;
  background:transparent!important;box-shadow:none!important;
  visibility:visible!important;opacity:1!important;pointer-events:none!important;
}
body #hudChips span{
  display:inline-flex!important;align-items:center!important;gap:4px!important;
  flex:none!important;padding:0!important;margin:0!important;
  background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  color:#f6fcff!important;font:750 12px/1.25 var(--h-font,system-ui)!important;
  text-shadow:0 2px 4px #041321e9!important;
}
body #hudChips b{color:#fff!important;font-variant-numeric:tabular-nums}
body #hudChips .hic{width:17px!important;height:17px!important}
body #hudTop[style*="display: none"],body #hudChips[style*="display: none"],body #minimap[style*="display: none"]{display:none!important}
body #evHud{bottom:45px!important}
@media(orientation:landscape) and (max-height:600px),(max-width:900px){
  body #hudChips,body:has(#skillBar[style*="flex"]) #hudChips{
    top:auto!important;bottom:max(7px,env(safe-area-inset-bottom))!important;
    max-width:55vw!important;gap:6px!important;
  }
  body #hudChips span{font-size:10px!important;gap:2px!important}
  body #hudChips .hic{width:13px!important;height:13px!important}
  body #evHud{bottom:35px!important}
}


/* ===== v0.1.6 · ajuste de legibilidad y distribución responsive =====
   Prioridad: lectura sobre cualquier terreno, sin tapar al personaje. */
:root{--dk-hud-glass:rgba(6,20,37,.82);--dk-hud-edge:rgba(183,222,246,.29);--dk-hud-white:#f8fbff}
/* El HUD solo aparece si setHud lo muestra. */
body #hudTop[style*="display: none"],body #hudChips[style*="display: none"],
body #minimap[style*="display: none"]{display:none!important}
body #hudTop{
  top:max(12px,env(safe-area-inset-top))!important;
  width:max-content!important;max-width:min(465px,48vw)!important;
  padding:7px 14px 9px!important;gap:4px!important;
  background:linear-gradient(180deg,rgba(7,24,44,.84),rgba(7,24,44,.64))!important;
  border:1px solid var(--dk-hud-edge)!important;border-radius:16px!important;
  box-shadow:0 4px 14px rgba(0,0,0,.25)!important;
  -webkit-backdrop-filter:blur(8px)!important;backdrop-filter:blur(8px)!important;
  text-shadow:none!important;
}
body #hudTop #hudZone{
  display:flex!important;gap:9px!important;
  font-size:clamp(11px,.9vw,13px)!important;line-height:1.25!important;
  color:#e5f6ff!important;letter-spacing:0!important;text-shadow:none!important;
}
body #hudTop #dkZoneName{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
body #hudTop #dkRecord{color:#ffe4a4!important;font-weight:750}
body #hudTop #timer,
body:has(#skillBar[style*="flex"]) #hudTop #timer{
  font-size:clamp(31px,3vw,44px)!important;line-height:1.06!important;
  letter-spacing:-.025em!important;color:var(--dk-hud-white)!important;
  text-shadow:0 2px 5px rgba(0,0,0,.45)!important;
}
body #hudTop #dkBossSoon:not(:empty){
  color:#ffd0ca!important;background:rgba(124,22,35,.65)!important;
  padding:4px 10px!important;border-radius:9px!important;
  font-size:12px!important;text-shadow:none!important;
}
body #hudTop #hudObj{font-size:12px!important;line-height:1.35!important;color:#e3f4ff!important;text-shadow:none!important}
/* Estadísticas siempre agrupadas, con contraste propio y sin robar el escenario. */
body #hudChips,
body:has(#skillBar[style*="flex"]) #hudChips{
  top:113px!important;bottom:auto!important;
  max-width:min(470px,49vw)!important;
  padding:5px 10px!important;gap:10px!important;
  background:var(--dk-hud-glass)!important;
  border:1px solid var(--dk-hud-edge)!important;border-radius:12px!important;
  box-shadow:0 3px 12px rgba(0,0,0,.24)!important;
  -webkit-backdrop-filter:blur(7px)!important;backdrop-filter:blur(7px)!important;
}
body #hudChips span{font-size:12px!important;line-height:1.3!important;gap:4px!important;color:#ddecff!important;text-shadow:none!important}
body #hudChips b{font-weight:850!important;color:#fff!important}
body #hudChips .hic{height:18px!important;width:18px!important}
/* La tarjeta del Digimon necesita una base discreta para leer sus barras. */
body #hud .hud-card{
  background:linear-gradient(115deg,rgba(5,20,37,.85),rgba(6,22,39,.65))!important;
  border:1px solid rgba(185,219,249,.24)!important;
  border-radius:16px!important;
  padding:7px 11px 7px 8px!important;
  box-shadow:0 4px 12px rgba(0,0,0,.24)!important;
  backdrop-filter:blur(7px)!important;
}
body #hud .hud-name{color:#fff!important;font-weight:850!important}
body #hud .hud-hp{min-height:11px!important;box-shadow:inset 0 1px 3px #0008!important}
body #xpTxt{color:#effaff!important;text-shadow:0 2px 5px #000f!important;font-weight:750!important}
/* Radar compacto pero reconocible sobre biomas claros. */
body #minimap{
  border:1px solid rgba(200,235,255,.54)!important;
  box-shadow:0 3px 12px rgba(0,0,0,.4)!important;
  background:rgba(9,29,43,.3)!important;
}
/* Mensajes Digivice: los títulos y el detalle deben poder leerse. */
#ann-mid.dk-digivice,#banner.dk-digivice{max-width:min(380px,30vw)!important;min-width:230px!important}
#ann-mid.dk-digivice b,#banner.dk-digivice b{font-size:14px!important;line-height:1.3!important}
#ann-mid.dk-digivice small,#banner.dk-digivice small{font-size:12px!important;line-height:1.35!important}
#bossCard .bc-t,#bossCard.small .bc-t{font-size:14px!important}
#bossCard .bc-s{font-size:12px!important}
body #dkEventStatus .dk-status{background:rgba(7,27,47,.93)!important;border:1px solid rgba(181,217,239,.36)!important;line-height:1.3!important}
/* El progreso del evento no puede quedar camuflado sobre el escenario. */
body #evHud{
  bottom:clamp(26px,5vh,48px)!important;
  background:rgba(5,22,38,.82)!important;border-radius:10px!important;
  padding:6px 12px 8px 15px!important;
  max-width:min(420px,36vw)!important;
}
body #evHud .ev-t{font-size:12px!important;line-height:1.3!important}
/* Móvil en horizontal: reloj en la parte superior, estadísticas inmediatamente debajo.
   No se sitúan sobre el joystick ni el botón BONK. El minimapa permanece visible. */
@media(orientation:landscape) and (max-height:600px), (max-width:900px){
  body #hudTop{
    top:max(5px,env(safe-area-inset-top))!important;
    width:max-content!important;max-width:38vw!important;
    padding:5px 9px 6px!important;gap:2px!important;border-radius:11px!important;
  }
  body #hudTop #hudZone{font-size:10px!important;gap:5px!important}
  body #hudTop #timer,body:has(#skillBar[style*="flex"]) #hudTop #timer{
    font-size:clamp(25px,6.6vh,33px)!important;
  }
  body #hudTop #dkBossSoon:not(:empty){font-size:10px!important;padding:2px 6px!important}
  body #hudTop #hudObj{font-size:10px!important;max-width:100%!important}
  body #hudChips,body:has(#skillBar[style*="flex"]) #hudChips{
    top:79px!important;bottom:auto!important;
    width:max-content!important;max-width:43vw!important;
    flex-wrap:wrap!important;gap:3px 7px!important;
    padding:4px 8px!important;border-radius:9px!important;
  }
  body #hudChips span{font-size:10.5px!important;gap:3px!important;line-height:1.2!important}
  body #hudChips .hic{height:14px!important;width:14px!important}
  body #hud .hud-card{padding:4px 7px!important;border-radius:10px!important}
  body #hud .hud-name{font-size:12px!important}
  body #minimap{
    display:block!important;top:8px!important;
    right:max(8px,env(safe-area-inset-right))!important;
    width:clamp(78px,20vh,98px)!important;height:clamp(78px,20vh,98px)!important;
  }
  body #dkEventStatus{
    top:calc(12px + clamp(78px,20vh,98px))!important;
    right:max(8px,env(safe-area-inset-right))!important;
    max-width:26vw!important;
  }
  body #dkEventStatus .dk-status{font-size:10.5px!important}
  #ann-mid.dk-digivice{
    top:clamp(92px,28vh,122px)!important;
    max-width:29vw!important;min-width:0!important;
  }
  #banner.dk-digivice{max-width:42vw!important;min-width:0!important}
  #ann-mid.dk-digivice b,#banner.dk-digivice b{font-size:11.5px!important}
  #ann-mid.dk-digivice small,#banner.dk-digivice small{font-size:10.5px!important}
  #bossCard,#bossCard.r{top:clamp(150px,41vh,205px)!important;max-width:31vw!important}
  #bossCard .bc-t,#bossCard.small .bc-t{font-size:11.5px!important}
  #bossCard .bc-s{font-size:10px!important}
  body #evHud{bottom:40px!important;max-width:38vw!important}
  body #evHud .ev-t{font-size:10.5px!important}
}
/* En móviles estrechos, el récord puede ocupar una segunda línea sin recortes. */
@media(orientation:landscape) and (max-height:410px){
  body #hudTop{max-width:38vw!important}
  body #hudTop #hudZone{font-size:9.5px!important}
  body #hudChips,body:has(#skillBar[style*="flex"]) #hudChips{top:72px!important;max-width:42vw!important}
}

/* Corrección funcional 0.1.7: mostrar instrucciones normales sin duplicar el huevo. */
body #hudTop #hudObj:not(:empty){display:block!important}
body:has(#dkEventStatus:not(:empty)) #hudTop #hudObj{display:none!important}
body #hudTop:has(#dkBossSoon:not(:empty)) #hudObj{display:none!important}

/* DigiHuevo: indicador compacto, barra de incubación visible y aviso de vida crítica. */
body #dkEventStatus .dk-status{max-width:100%;min-width:0}
body #dkEventStatus .dk-status .dk-egg-copy{min-width:0}
body #dkEventStatus .dk-status .dk-progress{
  flex:0 0 62px;width:62px;height:6px;border-radius:99px;
  background:rgba(255,255,255,.2);overflow:hidden;
}
body #dkEventStatus .dk-status .dk-progress i{
  display:block;width:var(--progress,0%);height:100%;border-radius:inherit;
  background:#7cf29c;transition:width .15s linear;
}
body #dkEventStatus .dk-status.dk-egg-danger{
  border-color:#ff9185!important;background:rgba(77,20,31,.93)!important;
}
body #dkEventStatus .dk-status.dk-egg-danger .dk-progress i{background:#ffbb75}
body #dkEventStatus .dk-status.dk-egg-danger small{color:#ffd2c8}
@media(orientation:landscape) and (max-height:600px),(max-width:900px){
  body #dkEventStatus .dk-status{flex-wrap:wrap}
  body #dkEventStatus .dk-status .dk-progress{flex-basis:100%;width:100%;height:4px}
}
@media(prefers-reduced-motion:reduce){
  body #dkEventStatus .dk-status .dk-progress i{transition:none}
}
