body {
    display: flex;
    height: 100dvh;
    overflow: hidden; /* Отключаем скроллинг */
    font-family: 'MontserratBlack', sans-serif;
}

.wheel-text {
    position: absolute;
    width: 80%;
    max-width: 300px;
    height: auto;
    z-index: 15;
    top: -35%;
}


.button-container {
    position: absolute;
    bottom: 5%;
    left: auto;

    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}


.smalltxt {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.bigtxt {
    font-family: 'MontserratBlack', sans-serif;
    font-size: 20px;
}

.solobut {
    font-size: 25px;
}



/*linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5))*/

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Убедимся, что фон находится позади */
    pointer-events: none; /* Чтобы фон не перехватывал клики */
    background: url('src/background.webp');
    background-size: cover; /* Покрывает весь экран */
    background-position: center; /* Центрируем */
    background-repeat: no-repeat; /* Запрещаем повторение */
}


.gift {
    position: absolute;
    width: 80px;
    height: 80px;
    animation: fall 10s linear infinite, rotate 5s linear infinite;
    z-index: 10000;
}

@keyframes fall {
    from {
        top: -100px; /* Начальная позиция выше экрана */
    }
    to {
        top: 100vh; /* Подарки падают за нижний край экрана */
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.wheel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100dvh;
    width: 100%;
    max-width: 400px;
    margin: 0 auto; /* <-- центрирует блок по горизонтали */
    text-align: center;
    position: relative;
}

.upper-wrapper {
    max-width: 400px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;

}

.wheel-wrapper {
    max-width: 400px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

#wheel {
    max-width: 90%;
    position: relative;
    z-index: 10;
}

.wheel-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 200px;
    z-index: 5;
}


#marker {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 50px;
    height: 50px;
    left: calc(85%);

}

#marker.tilted {
    transform: translateY(-50%) rotate(-45deg);
    transition: transform 0.1s ease-out;
}


.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 15%;
    width: 100%;
    height: 100%;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}



.modal-content {
    margin: auto auto 25px auto;
    padding: 20px;
    width: 90%;
    min-height: 275px;
    max-width: 350px;
    text-align: center;
    border-radius: 14px;

    background: #FFFFFF;
    box-shadow: 0px 3.39px 9.23px rgba(0, 0, 0, 0.25),
    inset 0px -4.24px 13.81px rgba(0, 0, 0, 0.25);
    border: none;
    color: #471F04;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 1001;
    width: 80%;
    padding: 15px;
}


#modalResultText {
    color: black;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: 'MontserratBlack', sans-serif;
    font-size: 20px;
}
.modal-buttons {
    display: flex;
    flex-wrap: wrap; /* Позволяет кнопкам переноситься */
    justify-content: center;
    width: 100%;
    max-width: 350px;
    margin: auto;
    padding: 0;
    position: relative;
    z-index: 1001;

}

.modal-buttons button {
    flex: 1; /* Кнопки равномерно занимают доступное пространство */
    min-width: 0; /* Предотвращает выход за границы */
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-family: 'MontserratBlack', sans-serif;
}


#spinAgainButton {
    background: linear-gradient(179.33deg, #F00000 0%, #CF0000 100%), #FFFFFF;
    box-shadow: 0px 3.39px 9.23px rgba(0, 0, 0, 0.25),
    inset 0px -4.24px 13.81px rgba(0, 0, 0, 0.25);
    border-radius: 14px;
    border: none;

    font-family: 'MontserratBlack', sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 20.83px;
    line-height: 100%;
    text-align: center;
    margin-right: 10px;

    color: #FFFFFF;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Эффект при наведении */
#spinAgainButton:hover {
    transform: scale(1.05);
    box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.3),
    inset 0px -4.5px 15px rgba(0, 0, 0, 0.3);
}

/* Эффект при нажатии */
#spinAgainButton:active {
    transform: scale(0.95);
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2),
    inset 0px -2px 8px rgba(0, 0, 0, 0.2);
}


#claimPrizeButton {
    background: #FFFFFF;
    box-shadow: 0px 3.39px 9.23px rgba(0, 0, 0, 0.25),
    inset 0px -4.24px 13.81px rgba(0, 0, 0, 0.25);
    border-radius: 14px;
    border: none;

    font-family: 'MontserratBlack', sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 20.83px;
    line-height: 100%;
    text-align: center;
    margin-left: 10px;

    color: #471F04;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Эффект при наведении */
#claimPrizeButton:hover {
    transform: scale(1.05);
    box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.3),
    inset 0px -4.5px 15px rgba(0, 0, 0, 0.3);
}

/* Эффект при нажатии */
#claimPrizeButton:active {
    transform: scale(0.95);
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2),
    inset 0px -2px 8px rgba(0, 0, 0, 0.2);
}





.spin-button {
    position: relative;
    width: 262px;
    height: 80px;
    border: none;
    outline: none;
    cursor: pointer;

    font-family: 'MontserratBlack', sans-serif;
    font-style: normal;
    font-weight: 900;
    font-size: 30px;
    text-align: center;
    text-transform: uppercase;
    color: #FFFFFF;

    background: linear-gradient(179.33deg, #F00000 0%, #CF0000 100%);


    box-shadow: 0px 5px 16.6px 7px rgba(255, 249, 206, 0.69),
    inset 0px -4px 14px rgba(0, 0, 0, 0.25),
    0px 3px 9px rgba(0, 0, 0, 0.25);

    border-radius: 14px;
    transform: rotate(0.12deg);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block !important;
    z-index: 1000;
}

.spin-button:hover {
    transform: scale(1.05) rotate(0.12deg);
    box-shadow: 0px 6px 20px 9px rgba(255, 249, 206, 0.8);
}

.spin-button:active {
    transform: scale(0.98) rotate(0.12deg);
    box-shadow: inset 0px 2px 12px rgba(0, 0, 0, 0.3);
}

#getPrizeBtn {
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    padding: 12px;
}

#getPrizeBtn:hover {
    background-color: #45a049;
}

/* Размытие фона при открытом модальном окне */
.modal::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.3); /* Полупрозрачный затемненный фон */
    z-index: 999; /* Под модальным окном */
}




.spin-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.counter-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.spin-counter span {
    position: absolute;
    top: 47%;
    left: 59%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #471F04;
    font-family: 'Appetite', sans-serif;
    pointer-events: none; /* чтобы текст не мешал нажатию */
}

@font-face {
    font-family: 'Appetite';
    src: url('fonts/Appetite.ttf') format('truetype');
}

@font-face {
    font-family: 'MontserratBlack';
    src: url('fonts/Montserrat-Black.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}




.instruction-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    text-align: left;
    font-size: 20px;
    font-weight: 600;
    color: #471F04;
    font-family: 'Montserrat', sans-serif;
    margin-left: 30px;

}

.instruction-icon {
    width: 28px;
    height: 28px;
    margin-right: 10px;
}

.instruction-note {
    font-size: 15px;
    color: #471F04;
    margin-top: 15px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

h2 {
    display: block;
    font-size: 30px;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

#closeInstructionBtn {
    background: linear-gradient(179.33deg, #F00000 0%, #CF0000 100%), #FFFFFF;
    box-shadow: 0px 3.39px 9.23px rgba(0, 0, 0, 0.25),
    inset 0px -4.24px 13.81px rgba(0, 0, 0, 0.25);
    border-radius: 14px;
    border: none;

    font-family: 'MontserratBlack', sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 20.83px;
    line-height: 100%;
    text-align: center;
    text-transform: uppercase;

    color: #FFFFFF;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;

    width: 90%;
    max-width: 340px;
    height: 80px;
    margin: 10px auto;
    display: block;
}

/* Эффекты при наведении/нажатии */
#closeInstructionBtn:hover {
    transform: scale(1.05);
    box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.3),
    inset 0px -4.5px 15px rgba(0, 0, 0, 0.3);
}

#closeInstructionBtn:active {
    transform: scale(0.95);
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2),
    inset 0px -2px 8px rgba(0, 0, 0, 0.2);
}


#closeNoSpinsBtn {
    background: linear-gradient(179.33deg, #F00000 0%, #CF0000 100%), #FFFFFF;
    box-shadow: 0px 3.39px 9.23px rgba(0, 0, 0, 0.25),
    inset 0px -4.24px 13.81px rgba(0, 0, 0, 0.25);
    border-radius: 14px;
    border: none;

    font-family: 'MontserratBlack', sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 20.83px;
    line-height: 100%;
    text-align: center;
    text-transform: uppercase;

    color: #FFFFFF;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;

    width: 90%;
    max-width: 340px;
    height: 80px;
    margin: 10px auto;
    display: block;
}

#closeNoSpinsBtn:hover {
    transform: scale(1.05);
    box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.3),
    inset 0px -4.5px 15px rgba(0, 0, 0, 0.3);
}

#closeNoSpinsBtn:active {
    transform: scale(0.95);
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2),
    inset 0px -2px 8px rgba(0, 0, 0, 0.2);
}

#yakupModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 15%; /* одинаково с другими окнами */
    width: 100%;
    height: 100%;
    overflow: auto;
}

button {
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    transform: scale(1.03);
}

button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}



.yakup-modal-content {
    margin: 110px auto 25px auto; /* отступ сверху для картинки */
    padding: 60px 20px 20px 20px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0px 3.39px 9.23px rgba(0, 0, 0, 0.25),
    inset 0px -4.24px 13.81px rgba(0, 0, 0, 0.25);
    border: none;
    color: #471F04;
    position: relative;
    z-index: 1001;
}


.yakup-avatar {
    position: absolute;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    z-index: 1002;
}


/* Текст */
.yakup-text {
    font-size: 20px;
    color: #471F04;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.red-button {
    background: linear-gradient(179.33deg, #F00000 0%, #CF0000 100%), #FFFFFF;
    box-shadow: 0px 3.39px 9.23px rgba(0, 0, 0, 0.25),
    inset 0px -4.24px 13.81px rgba(0, 0, 0, 0.25);
    border-radius: 14px;
    border: none;

    font-family: 'MontserratBlack', sans-serif;
    font-style: normal;
    font-weight: 800;
    font-size: 20.83px;
    line-height: 100%;
    text-align: center;
    text-transform: uppercase;

    color: #FFFFFF;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;

    width: 90%;
    max-width: 340px;
    height: 80px;
    margin: 10px auto;
    display: block;
}

.red-button:hover {
    transform: scale(1.05);
    box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.3),
    inset 0px -4.5px 15px rgba(0, 0, 0, 0.3);
}

.red-button:active {
    transform: scale(0.95);
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2),
    inset 0px -2px 8px rgba(0, 0, 0, 0.2);
}


#spin-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 22px;
    padding: 15px;
    border-radius: 0;
    z-index: 1000;
}

.wheel-background {
    max-width: 150px;
}


