/* Accessories over a hero's show picture (public/acc.js attach): two layers in the img's own box (back = flag + aura,
   behind the picture; front = pet, glasses, hat). Never take a touch. */
.acc-ov { position: absolute; pointer-events: none; overflow: visible; }
.acc-ov.back { z-index: 0; }
.acc-ov.front { z-index: 2; }
.acc-ov[hidden] { display: none; }
.acc-it { position: absolute; max-width: none; max-height: none; -webkit-user-drag: none; user-select: none; transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.acc-it.pet { animation: accBob 2.6s ease-in-out infinite; }
.acc-it.flag { animation: accWave 2.2s ease-in-out infinite; }
@keyframes accBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7%); } }
/* every pet has its own motion on the show pictures too (= acc.js PET_MOVE in the match; boss: "jgn static") */
.acc-it.pet-drone { animation: petSway 1.9s ease-in-out infinite; transform-origin: 50% 20% !important; }
.acc-it.pet-dragon { animation: petFlap .42s ease-in-out infinite alternate, accBob 3s ease-in-out infinite; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)) drop-shadow(-4px 2px 6px rgba(255,140,30,.55)); }
.acc-it.pet-wisp { animation: petDrift 4.8s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(160,210,255,.7)); }
.acc-it.pet-owl { animation: petHop .5s ease-in-out infinite alternate, petTilt 4.2s ease-in-out infinite; }
.acc-it.pet-slime { animation: petSquash 0.8s ease-in-out infinite; transform-origin: 50% 100% !important; }
.acc-it.pet-fairy { animation: petDrift 3s ease-in-out infinite, petFlutter .08s linear infinite alternate; filter: drop-shadow(0 0 5px rgba(255,220,90,.75)); }
@keyframes petSway { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(7deg) translateY(-6%); } }
@keyframes petFlap { from { translate: 0 0; scale: 1 1; } to { translate: 0 -8%; scale: 1 1.04; } }
@keyframes petDrift { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 25% { transform: translate(8%, -6%) rotate(3deg); } 50% { transform: translate(0, -10%) rotate(5deg); } 75% { transform: translate(-8%, -4%) rotate(-3deg); } }
@keyframes petHop { from { translate: 0 0; } to { translate: 0 -9%; } }
@keyframes petTilt { 0%, 80%, 100% { rotate: 0deg; } 86% { rotate: 12deg; } 93% { rotate: -6deg; } }
@keyframes petSquash { 0%, 100% { transform: translateY(0) scale(1.12, .86); } 45% { transform: translateY(-18%) scale(.92, 1.1); } 70% { transform: translateY(0) scale(1, 1); } }
@keyframes petFlutter { from { scale: 1 1; } to { scale: 1.025 .985; } }
@keyframes accWave { 0%, 100% { transform: rotate(var(--r, 0deg)) skewY(0deg); } 50% { transform: rotate(var(--r, 0deg)) skewY(-3.5deg); } }

/* aura: a glowing ring under the feet + a few rising specks (CSS only) */
.acc-aura { position: absolute; width: var(--aw); height: calc(var(--aw) * .26); transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, transparent 35%, var(--ac) 62%, transparent 100%); opacity: .75; animation: accPulse 1.8s ease-in-out infinite; }
.acc-aura::after { content: ''; position: absolute; inset: 14%; border-radius: 50%; border: 2px solid var(--ac2); opacity: .8; }
.acc-aura.rainbow { background: radial-gradient(closest-side, transparent 35%, #ff6ad5 55%, #7af0ff 75%, transparent 100%); animation: accPulse 1.8s ease-in-out infinite, accHue 3s linear infinite; }
.acc-aura b { position: absolute; left: calc(50% + var(--px) * .9); top: 30%; width: 7px; height: 7px; border-radius: 50%; background: var(--ac2);
  box-shadow: 0 0 6px var(--ac); opacity: 0; animation: accRise 2.4s ease-out infinite; animation-delay: calc(var(--i) * -.34s); }
.acc-aura.star b { border-radius: 0; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); width: 10px; height: 10px; background: var(--ac); }
.acc-aura.petal b { border-radius: 70% 0; width: 9px; height: 6px; background: var(--ac); }
.acc-aura.snow b { background: #fff; animation-name: accFall; }
.acc-aura.bolt b { border-radius: 0; width: 3px; height: 12px; background: var(--ac2); animation-duration: 1.1s; }
@keyframes accPulse { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
@keyframes accHue { to { filter: hue-rotate(360deg); } }
@keyframes accRise { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(calc(var(--aw) * -.55)) scale(1); } }
@keyframes accFall { 0% { opacity: 0; transform: translateY(calc(var(--aw) * -.6)); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(0); } }
html.gfx-low .acc-aura { display: none; }
html.gfx-low .acc-it { animation: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .acc-it, .acc-aura, .acc-aura b { animation: none; } }

/* ---------- shop: ACCESSORY tab (shop.js renderAcc; cards / badge / preview reuse the HERO SKINS styles) ---------- */
.accard .art { display: grid; place-items: center; }
.accard .art img { max-width: 84%; max-height: 92%; }
.accard small.nofit { color: #ff9b8a; }
.aura-sw { display: block; position: relative; width: 66%; height: 24px; margin-top: 30px; border-radius: 50%;
  background: radial-gradient(closest-side, transparent 30%, var(--ac) 64%, transparent 100%); box-shadow: 0 0 14px var(--ac); }
.aura-sw.rainbow { background: radial-gradient(closest-side, transparent 30%, #ff6ad5 55%, #7af0ff 78%, transparent 100%); }
.aura-sw b { position: absolute; left: calc(14% + var(--i) * 17%); bottom: 40%; width: 6px; height: 6px; border-radius: 50%; background: var(--ac2);
  box-shadow: 0 0 6px var(--ac); animation: accRise2 1.8s ease-out infinite; animation-delay: calc(var(--i) * -.37s); }
.aura-sw.star b { border-radius: 0; width: 9px; height: 9px; background: var(--ac); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.aura-sw.petal b { border-radius: 70% 0; width: 8px; height: 5px; background: var(--ac); }
.aura-sw.bolt b { border-radius: 0; width: 2px; height: 10px; }
.aura-sw.snow b { background: #fff; }
@keyframes accRise2 { 0% { opacity: 0; transform: translateY(4px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-34px); } }
.skf.akf { border-radius: 22px; padding: 0 10px 0 4px; gap: 4px; display: flex; width: auto; border-color: rgba(255,216,79,.55); }
.skf.akf img { width: 34px; height: 34px; border-radius: 0; object-fit: contain; }
.skf.akf span { padding: 0; font-size: 12px; }
.skf.akf .akf-aura { width: 30px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, transparent 30%, #ff9a3c 62%, transparent 100%); box-shadow: 0 0 8px #ff9a3c; }
.skf.akf.on { background: linear-gradient(180deg, #ffd84f, #f3a51b); }
.skf.akf.on span { color: #3a1d00; }
#skPv .pv-cv { display: none; }
#skPv.acc .pv-side, #skPv.acc .pv-glow { display: none; }
#skPv.acc .pv-stage { align-self: stretch; border-radius: 14px; background: radial-gradient(ellipse at 55% 88%, rgba(255,211,107,.2), transparent 60%), linear-gradient(#262241, #15131f);
  box-shadow: inset 0 0 0 1px rgba(255,211,107,.3); }
#skPv.acc .pv-cv { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
#skPv .pv-note.bad { color: #ff9b8a; font-weight: 700; }
html.gfx-low .aura-sw b { animation: none; opacity: .8; }
