body {
    background: radial-gradient(
            circle at 50% 30%,
            rgba(84, 36, 133, 0.5),
            rgba(27, 3, 51, 0.95) 60%
        ),
        linear-gradient(
            180deg,
            #1b073d,
            #12041f
        );
    background-attachment: fixed;
    overflow: hidden;
}

 .div-gesture {
    box-shadow:
        0 0 120px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(180,120,255,0.4);
} 

#start-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;

    padding: 50px 80px;

    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(100, 180, 255, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(18px);

    box-shadow:
        0 0 40px rgba(100, 200, 255, 0.45),
        0 0 100px rgba(80, 150, 255, 0.3),
        inset 0 0 30px rgba(100, 150, 255, 0.25);
}
/* Немного меняяю заголовок */
.title-name {
    font-size: 52px;
    font-weight: 800;
    color: #e4f2ff;
    letter-spacing: 3px;

    text-shadow:
        0 0 20px #7fc8ff,
        0 0 40px #3fa2ff;
}

/* Тут кнопочки светлые  */
#start-screen button {
    width: 280px;
    padding: 16px 0;
    font-size: 22px;
    font-weight: 600;

    color: #e7f7ff;

    background: linear-gradient(135deg, #3fa2ff, #7fc8ff);
    border: none;
    border-radius: 14px;

    box-shadow:
        0 0 15px rgba(120, 200, 255, 0.5),
        0 0 35px rgba(80, 150, 255, 0.4);

    cursor: pointer;
    transition: 0.25s ease;
}
/* Ну тут и сам знаешь их анимка */
#start-screen button:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg, #70c5ff, #a4e4ff);
    box-shadow: 0 0 25px rgba(140, 210, 255, 1);
}


#game-screen {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Теперь топы и лефты работают не от экрана а именно от этого родителя это даёт больше адаптивности хотя я хз */
#game-layout {
    width: min(1920px, 100%);
    height: min(1080px, 100%);
    position: relative;
    aspect-ratio: 16 / 9;
}

#pre-game-screen{
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);

    width: 480px;
    padding: 30px;

    background: rgba(255, 255, 255, 0.06);
    border-radius: 26px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 2px solid rgba(200, 160, 255, 0.3);
    box-shadow: 
        0 0 20px rgba(170, 120, 255, 0.6),
        0 0 50px rgba(150, 60, 255, 0.3);

    display: none;   

    animation: nickname 0.4s ease;
}

/* анимака появления */
@keyframes nickname { 
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* игровой экран */
#game-screen {
    position: relative;
    width: 100%;
    height: 100vh;
}

.div-avatar {
    position: absolute;
    left: 3vw;
    top: 2vh;

    width: 18vw;
    max-width: 300px;
    background: rgba(69, 7, 105, 0.14);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border: 2px solid rgba(175, 3, 243, 0.45);
    border-radius: 8px;
     box-shadow: 0 0 48px rgba(198, 3, 247, 0.568), 0 16px 64px rgba(31, 38, 135, 0.33999999999999997);
  
    transition: all 200ms cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
}


/* Большой круг под кнопки */
.div-gesture {
    position: absolute;
    width: min(60vw, 520px);
    aspect-ratio: 1 / 1;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1); /* жидкое стекло */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(211, 11, 194, 0.466);
    box-shadow: 0 0 30px rgba(153, 0, 255, 0.651);

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; 
}

/* Начинается секс с колесом */
.div-gesture::before {
    content: "";
    position: absolute;
    inset: -35px;
    border-radius: 50%;

    background: radial-gradient(
        circle at center,
        rgba(200, 140, 255, 0.5),
        rgba(120, 60, 200, 0.3),
        transparent 70%
    );

    filter: blur(20px);
    opacity: 0.8;

    animation: Pulse 2.8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes Pulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* продолжается */
.div-gesture::after {
    content: "";
    position: absolute;
    inset: -60px;
    border-radius: 50%;

    background:
        conic-gradient(
            from 0deg,
            transparent,
            rgba(180,120,255,0.35),
            transparent 15%,
            rgba(180,120,255,0.45),
            transparent 35%,
            rgba(120,60,200,0.4),
            transparent 60%,
            rgba(180,120,255,0.5),
            transparent
        );

    filter: blur(28px);
    opacity: 0.9;

    animation:
        flameRotate 9s linear infinite,
        flameBreath 3.5s ease-in-out infinite;

    pointer-events: none;
}


@keyframes flameRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes flameBreath {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.div-gesture::after {
    background-position: 50% 35%;
}
/* заканчивается */
.div-gesture::before {
    background: radial-gradient(
        circle at 50% 40%,
        rgba(200, 140, 255, 0.6),
        rgba(120, 60, 200, 0.35),
        transparent 70%
    );
}

/* Анимка появления из центра выглядит прикольно вроде, почекай нужна она или нет */
@keyframes appearFromCenter {
    0% {
        transform: rotate(var(--angle)) translate(0) rotate(calc(-1 * var(--angle)));
        opacity: 0;
    }
    100% {
        transform: rotate(var(--angle)) translate(220px) rotate(calc(-1 * var(--angle)));
        opacity: 1;
    }
}

/* кнопки */
.gesture-btn {
    position: absolute; 
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 145, 192, 0.459);
    box-shadow: 0 4px 15px rgba(32, 59, 117, 0.438);
 
    /* привзываем анимацию */
    animation: appearFromCenter 0.6s ease-out forwards; 
}

.gesture-btn img{
    width: 60px;
    height: 60px;
    object-fit: cover;
    display: block;
}

/* расставляем все 16 кнопочек с анимацией */
.div-gesture .gesture-btn:nth-child(1)  { --angle: 0deg;     animation-delay: 0s; }
.div-gesture .gesture-btn:nth-child(2)  { --angle: 22.5deg;  animation-delay: 0.05s; }
.div-gesture .gesture-btn:nth-child(3)  { --angle: 45deg;    animation-delay: 0.1s; }
.div-gesture .gesture-btn:nth-child(4)  { --angle: 67.5deg;  animation-delay: 0.15s; }
.div-gesture .gesture-btn:nth-child(5)  { --angle: 90deg;    animation-delay: 0.2s; }
.div-gesture .gesture-btn:nth-child(6)  { --angle: 112.5deg; animation-delay: 0.25s; }
.div-gesture .gesture-btn:nth-child(7)  { --angle: 135deg;   animation-delay: 0.3s; }
.div-gesture .gesture-btn:nth-child(8)  { --angle: 157.5deg; animation-delay: 0.35s; }
.div-gesture .gesture-btn:nth-child(9)  { --angle: 180deg;   animation-delay: 0.4s; }
.div-gesture .gesture-btn:nth-child(10) { --angle: 202.5deg; animation-delay: 0.45s; }
.div-gesture .gesture-btn:nth-child(11) { --angle: 225deg;   animation-delay: 0.5s; }
.div-gesture .gesture-btn:nth-child(12) { --angle: 247.5deg; animation-delay: 0.55s; }
.div-gesture .gesture-btn:nth-child(13) { --angle: 270deg;   animation-delay: 0.6s; }
.div-gesture .gesture-btn:nth-child(14) { --angle: 292.5deg; animation-delay: 0.65s; }
.div-gesture .gesture-btn:nth-child(15) { --angle: 315deg;   animation-delay: 0.7s; }
.div-gesture .gesture-btn:nth-child(16) { --angle: 337.5deg; animation-delay: 0.75s; }


.gesture-btn:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 12px rgba(0,255,255,0.8));
    box-shadow: 0 0 20px rgba(0,255,255,0.5);
}

.div-hp{
    margin: 20px;
    height: 100px;
    display: flex;
    flex-wrap: nowrap;
}

.div-round{
  color: white;
  text-align: center;
  width: 150px;
  height: 100px;
  padding: 20px;
  background: rgba(69, 7, 105, 0.14);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border: 2px solid rgba(175, 3, 243, 0.45);
  border-radius: 8px;
  box-shadow: 0 0 48px rgba(198, 3, 247, 0.568), 0 16px 64px rgba(31, 38, 135, 0.33999999999999997);
  
  transition: all 200ms cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
}

.div-round:hover {
    background: rgba(255, 255, 255, 0.17);
    transform: none;
    filter: brightness(2.1);
}

#text-round-count{
    position: relative;
    text-align: center;
}

.img-hp{
    margin: 10px;
    width: 100px;
}

.div-nickname {
    color: white;
    position: absolute;
    left: 23vw;
    top: 21vh;
    

    width: 20vw;
    max-width: 350px;
    background: rgba(69, 7, 105, 0.14);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
     border: 2px solid rgba(175, 3, 243, 0.45);
     border-radius: 8px;
    box-shadow: 0 0 48px rgba(198, 3, 247, 0.568), 0 16px 64px rgba(31, 38, 135, 0.33999999999999997);
  
    transition: all 200ms cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
}


.div-skills {
    width: clamp(320px, 40vw, 720px);
    height: clamp(280px, 45vh, 460px);
    background:
        linear-gradient(
            180deg,
            rgba(70, 30, 120, 0.9),
            rgba(40, 15, 70, 0.95)
        );

    border-radius: 16px;

    border: 1px solid rgba(180, 120, 255, 0.35);

    box-shadow:
        inset 0 0 25px rgba(160, 90, 255, 0.25),
        0 20px 50px rgba(0, 0, 0, 0.45);

    display: flex;
    flex-direction: column;
    gap: 10px;
}


.div-skills button {
    background: rgba(20, 5, 40, 0.7);
    color: #e9dbff;

    border: 1px solid rgba(140, 80, 255, 0.4);
    border-radius: 10px;

    padding: 10px 14px;

    font-size: 14px;
    text-align: left;

    cursor: pointer;

    box-shadow:
        inset 0 0 12px rgba(120, 60, 200, 0.25);

    transition: 0.2s ease;
}

.div-skills button:hover {
    background: rgba(90, 40, 150, 0.85);
    border-color: rgba(200, 140, 255, 0.8);

    box-shadow:
        inset 0 0 18px rgba(180, 120, 255, 0.5),
        0 0 12px rgba(160, 90, 255, 0.6);
}

#div-first-skill {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    
    padding: 10px;
    border-radius: 10px;

    background: rgba(10, 0, 20, 0.6);
    border: 1px dashed rgba(160, 100, 255, 0.4);
}

.first-skills-btn {
    flex: 1 1 45%; /* 2 в ряд */
    min-width: 140px;
    padding: 8px 10px;
    font-size: 13px;
}

.skills-mana-wrapper {
    position: absolute;
    bottom: 8%;
    left: 3%;
    display: flex;
    gap: clamp(12px, 3vw, 24px);
}

.mana-container {
    position: relative;
    width: 60px;
    height: 300px;
    align-self: flex-end;
    margin-bottom: -8px;

    background: rgba(20, 5, 40, 0.8);
    border-radius: 20px;
    border: 2px solid rgba(120, 0, 255, 0.6);

    box-shadow:
        inset 0 0 20px rgba(120, 0, 255, 0.6),
        0 0 30px rgba(150, 50, 255, 0.8);
}

.mana-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    border-radius: 18px;

    background: linear-gradient(
        to top,
        #6a00ff,
        #b266ff
    );
    /* призыв анимации */
    animation: manaPulse 2s infinite; 
}
/* анимация пульсации маны */
@keyframes manaPulse {    
    0%,100% { filter: brightness(1); }
    50% { filter: brightness(1.4); }
}

.mana-text {
    position: absolute;
    top: -35px;
    width: 100%;
    text-align: center;
    color: #e6d7ff;
    font-weight: 700;
    text-shadow: 0 0 10px #b266ff;
}

.div-timer{
    color: white;
    text-align: center;
    width: 150px;
    height: 100px;
    padding: 20px;
    background: rgba(69, 7, 105, 0.14);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border: 2px solid rgba(175, 3, 243, 0.45);
    border-radius: 8px;
    box-shadow: 0 0 48px rgba(198, 3, 247, 0.568), 0 16px 64px rgba(31, 38, 135, 0.33999999999999997);

    transition: all 200ms cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
}

.div-timer:hover {
    background: rgba(255, 255, 255, 0.17);
    transform: none;
    filter: brightness(2.1);
}

#text-timer{
    text-align: center;
}

#confirm-btn{
    position: absolute;
    width: 200px;
    height: 50px;
    left: 85%;
    top: 90%;
}

.div-gesture{
    position:absolute;
    left: 55%;
    top: 30%;
}

#round-screen{
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;

    background: radial-gradient(
        circle at center,
        rgba(120, 60, 200, 0.25),
        rgba(10, 0, 20, 0.85)
    );

    backdrop-filter: blur(8px);
    z-index: 100;
}

#round-panel {
    width: clamp(320px, 60vw, 720px);
    padding: 40px 50px;

    background:
        linear-gradient(
            180deg,
            rgba(70, 30, 120, 0.95),
            rgba(25, 10, 45, 0.95)
        );

    border-radius: 24px;
    border: 1px solid rgba(180, 120, 255, 0.5);

    box-shadow:
        inset 0 0 40px rgba(160, 90, 255, 0.25),
        0 0 60px rgba(120, 60, 200, 0.6);

    text-align: center;
    color: rgb(255, 0, 234);

    animation: verdict 0.5s ease;
}
/* Анимка выплывания результата */
@keyframes verdict {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#text-round-screen {
    font-size: clamp(20px, 2.5vw, 28px);
    opacity: 0.7;
    margin-bottom: 12px;
}

#text-enemy-move,
#text-bot-skill {
    font-size: clamp(16px, 1.6vw, 20px);
    opacity: 0.9;
    margin: 6px 0;
    color: rgb(122, 119, 119);
}

#text-round-total {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;

    text-shadow:
        0 0 20px rgba(180, 120, 255, 0.9),
        0 0 40px rgba(120, 60, 200, 0.8);

    margin: 24px 0;
}
#round-panel::before {
    content: ""; 
    position: absolute;
    inset: -2px;
    border-radius: inherit;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(200, 140, 255, 0.6),
        transparent
    );

    filter: blur(8px);
    opacity: 0.7;
    pointer-events: none;
}

#text-player-choice {
    position: absolute;
    left: 60%;
    bottom: 4%;
    transform: translateX(-50%);

    color: white;
    font-size: clamp(14px, 1.4vw, 18px);
    opacity: 0.85;
}

#nick-input{
    background-color: black;
    color: white;
}

#text-nickname{
    position: relative;
    text-align: center;
    top: 10px;
}

#lose-win-screen {
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background: radial-gradient(
        circle at center,
        rgba(120, 60, 200, 0.3),
        rgba(10, 0, 20, 0.9)
    );

    backdrop-filter: blur(10px);
    z-index: 120;
}

#lose-win-text{
    position: relative;
    text-align: center;
}

.div-bot-hp{
  color: white;
  text-align: center;
  width: 150px;
  height: 100px;
  padding: 20px;
  background: rgba(69, 7, 105, 0.14);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border: 2px solid rgba(175, 3, 243, 0.45);
  border-radius: 8px;
  box-shadow: 0 0 48px rgba(198, 3, 247, 0.568), 0 16px 64px rgba(31, 38, 135, 0.33999999999999997);
  
  transition: all 200ms cubic-bezier(0.4, 0.0, 0.2, 1);
  cursor: pointer;
}

.div-bot-hp:hover {
    background: rgba(255, 255, 255, 0.17);
    transform: none;
    filter: brightness(2.1);
}

#avatar-img{
    height: 400px;
}

.div-applied-skill{
    position: absolute;
    left: 40vh;
    top: 33vh;
    width: 470px;
    height: 100px;
    color: white;
    background: rgba(69, 7, 105, 0.14);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border: 2px solid rgba(175, 3, 243, 0.45);
    border-radius: 8px;
    box-shadow: 0 0 48px rgba(198, 3, 247, 0.568), 0 16px 64px rgba(31, 38, 135, 0.33999999999999997);
    transition: all 200ms cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
}

#text-applied-skill{
    position: relative;
    text-align: center;
    top: 10px;
}

#multiplayer-screen{
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    width: 800px;
    height: 500px;
    border: 1px red solid;
    background-color: white;
}


/* Вся верхняя панель кроме аватарки */
.top-ui {
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: clamp(16px, 4vw, 64px);
}

/* nu po другому никак ни сделать обращение к нескольким объёктам */

/* Камень */
/* #btn-gesture1:hover ~ #btn-gesture10 img,
#btn-gesture1:hover ~ #btn-gesture11 img,
#btn-gesture1:hover ~ #btn-gesture12 img,
#btn-gesture1:hover ~ #btn-gesture13 img,
#btn-gesture1:hover ~ #btn-gesture14 img,
#btn-gesture1:hover ~ #btn-gesture15 img,
#btn-gesture1:hover ~ #btn-gesture16 img{
    opacity: 0.3;
}

#btn-gesture1:hover ~ #btn-gesture9 img{
    background-color: red;
    border-radius: 25%;
} */

/* Огонь */
/* #btn-gesture2:hover ~ #btn-gesture11 img,
#btn-gesture2:hover ~ #btn-gesture12 img,
#btn-gesture2:hover ~ #btn-gesture13 img,
#btn-gesture2:hover ~ #btn-gesture14 img,
#btn-gesture2:hover ~ #btn-gesture15 img,
#btn-gesture2:hover ~ #btn-gesture16 img,
#btn-gesture2:hover ~ #btn-gesture1 img{
    opacity: 0.3;
}

#btn-gesture2:hover ~ #btn-gesture10 img{
    background-color: red;
    border-radius: 25%;
} */

/* Ножницы */
/* #btn-gesture2:hover ~ #btn-gesture11 img,
#btn-gesture2:hover ~ #btn-gesture12 img,
#btn-gesture2:hover ~ #btn-gesture13 img,
#btn-gesture2:hover ~ #btn-gesture14 img,
#btn-gesture2:hover ~ #btn-gesture15 img,
#btn-gesture2:hover ~ #btn-gesture16 img,
#btn-gesture2:hover ~ #btn-gesture1 img{
    opacity: 0.3;
}

#btn-gesture2:hover ~ #btn-gesture10 img{
    background-color: red;
    border-radius: 25%;
} */