#board{left:19.5%;top:17.4%;width:72.7%;height:78%}
#board button{background-size:100% 100%}
#arena{isolation:isolate}
#actors{z-index:3}
#message{max-width:90%;overflow:hidden;text-overflow:ellipsis}
/* One cell is 8.078% wide and 15.6% tall. Normal units fit wholly inside it. */
.actor,.actor.enemy{width:6.4%;height:12.6%;aspect-ratio:auto;display:flex;align-items:flex-end;justify-content:center;filter:none;transform:translate(-50%,-50%);}
.actor::before{content:'';position:absolute;bottom:13%;left:12%;right:12%;height:16%;background:#28371c55;border-radius:50%;z-index:-1;filter:blur(1px)}
.actor img,.enemy img{height:88%;width:100%;object-fit:contain;object-position:center bottom;image-rendering:auto;animation:none;transform-origin:center bottom;filter:drop-shadow(0 1px 1px #352e2244);position:relative;bottom:12%;}
.actor.boss img{bottom:6.4%}.actor.boss::before{bottom:7.4%}
.actor.enemy.boss{width:12%;height:23.5%;z-index:14}
.actor .hp{top:0;left:16%;width:68%;height:5px;box-shadow:0 1px 1px #25201485;border:1px solid #2c251b;}
.actor.boss .hp{height:7px}
.actor.hit img{filter:brightness(1.45) saturate(.48) drop-shadow(0 0 2px #ffba7d)}
.actor.frozen img{filter:drop-shadow(0 0 2px #68d9ff) drop-shadow(0 0 4px #c9f7ff);}
.actor.frozen.hit img{filter:brightness(1.5) drop-shadow(0 0 4px #c9f7ff)}
.shot{z-index:32;width:1.65%;height:auto;aspect-ratio:1.32;border:1px solid #e2ffff;border-radius:50% 65% 65% 50%;background:radial-gradient(ellipse at 67% 30%,#fff 0 12%,#adf4ff 19%,#52caff 45%,#1273d3 80%);box-shadow:0 0 7px #84dfff;}
.shot::before{content:'';position:absolute;right:80%;top:23%;width:140%;height:48%;background:linear-gradient(90deg,transparent,#4dccff85,#d4ffff);clip-path:polygon(0 40%,100% 0,100% 100%,0 70%)}
.shot::after{content:'';position:absolute;right:193%;top:60%;width:23%;aspect-ratio:1;border-radius:50%;background:#b4ffff}
.shot.ice{border:0;clip-path:polygon(0 50%,25% 15%,64% 0,100% 50%,66% 100%,26% 84%);border-radius:0;background:linear-gradient(130deg,#f7ffff 0 25%,#b2eaff 26% 45%,#437ddb 46% 60%,#d9faff 61% 80%,#6aa5df 81%);width:1.85%;aspect-ratio:1.45;filter:drop-shadow(0 0 4px #fff)}
.particle,.fx-ring{position:absolute;pointer-events:none;z-index:40;transform:translate(-50%,-50%);}
.particle{border-radius:20%;box-shadow:0 0 3px currentColor;}
.particle.water{color:#8be6ff;clip-path:polygon(45% 0,97% 62%,77% 93%,23% 100%,0 45%)}
.particle.ice{color:#d2f9ff;clip-path:polygon(25% 0,77% 6%,100% 51%,67% 100%,21% 89%,0 40%)}
.particle.steam{color:#fff1d4;border-radius:50%;background:radial-gradient(circle at 36% 30%,#fffdf2 0 24%,#f8eee3 36%,#d8c1ab 70%,#e0d5c7a0 85%,transparent 100%)!important;box-shadow:0 0 4px #fff7e188;}
.particle.energy,.particle.heal{color:#ffeea1;}
.particle.spark{clip-path:polygon(50% 0,62% 35%,100% 50%,62% 64%,50% 100%,35% 64%,0 50%,35% 35%)}
.particle.plus{clip-path:polygon(34% 0,66% 0,66% 34%,100% 34%,100% 66%,66% 66%,66% 100%,34% 100%,34% 66%,0 66%,0 34%,34% 34%);color:#a1fb8b;}
.particle.dust{border-radius:50%;box-shadow:none;}
.particle.hit,.particle.purple{clip-path:polygon(50% 0,63% 32%,100% 50%,63% 67%,50% 100%,35% 67%,0 50%,35% 32%);color:#ffa85d}
.fx-ring{border:2px solid #ffd997;border-radius:50%;box-shadow:0 0 7px #fff1a866;z-index:8;}
.fx-ring.heal{box-shadow:0 0 9px #93ff7f;}
.float{z-index:65;font-size:clamp(11px,1.35vw,23px);line-height:1;transform:translate(-50%,-70%);color:#ffd06d;text-shadow:1px 1px #42240c,-1px -1px #42240c,0 2px #42240c;animation:float-up .8s ease-out forwards;}
.float.heal{color:#bdff91;text-shadow:1px 1px #233918,-1px -1px #233918;}
@keyframes float-up{from{transform:translate(-50%,-70%) scale(.85);opacity:1}20%{transform:translate(-50%,-135%) scale(1.13);opacity:1}to{transform:translate(-50%,-235%);opacity:0}}
.paused .float{animation-play-state:paused}
