11/10/2023
<div class="battle-wrapper">
<div class="circle"></div>
</div>
<style>
:root {
--outline: 30px;
--small-size: 120px;
}
.battle-wrapper {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
max-width: 400px;
height: 300px;
background: #da30d4;
position: relative;
z-index: 0;
}
.circle {
width: 160px;
height: 160px;
background: #da30d4;
border-radius: 50%;
outline: var(--outline) solid #0c0c49;
outline-offset: calc(var(--outline) * -1);
position: relative;
}
.circle:before,
.circle:after {
content: "";
position: absolute;
z-index: -1;
height: var(--small-size);
width: var(--small-size);
border-radius: 50%;
outline: var(--outline) solid #0c0c49;
outline-offset: calc(var(--outline) * -1);
top: 50%;
transform: translateY(-50%);
}
.circle:before {
left: calc((var(--small-size) / 2) * -1);
}
.circle:after {
right: calc((var(--small-size) / 2) * -1);
}
</style>