* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #1a1a1a;
    font-family: Arial, sans-serif;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.cave-container {
    position: relative;
    display: inline-block;
    transform: scale(0.7);
    transform-origin: top center;
    margin-top: 0;
}

.cave-container img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Пещера - фон, самый нижний слой */
.cave-image {
    position: relative;
    z-index: 1;
}

/* Валера - средний слой, внутри пещеры */
.valera-image {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 40%;
    height: 40%;
    object-fit: contain;
    transition: transform 0.1s ease-out;
}

/* Решетка - верхний слой, закрывает выход */
.grill-image {
    position: absolute;
    top: 2%;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s;
}

/* Текст "Вы проиграли!" */
.game-over-text {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 120px;
    font-weight: bold;
    color: #f44336;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(244, 67, 54, 0.8);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    white-space: nowrap;
}

.game-over-text.show {
    opacity: 1;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(244, 67, 54, 0.8);
    }
    50% {
        transform: translateX(-50%) scale(1.1);
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 30px rgba(244, 67, 54, 1);
    }
    100% {
        transform: translateX(-50%) scale(1);
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(244, 67, 54, 0.8);
    }
}

/* Кнопка перезапуска */
.restart-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    padding: 15px 40px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background-color: #4CAF50;
    border: 3px solid #fff;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s, transform 0.2s, background-color 0.2s;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.restart-btn.show {
    opacity: 1;
    pointer-events: auto;
}

.restart-btn:hover {
    background-color: #45a049;
    transform: translateX(-50%) scale(1.05);
}

.restart-btn:active {
    transform: translateX(-50%) scale(0.95);
}

/* Кнопки магазинов */
.shop-icon-btn {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    cursor: pointer;
    z-index: 100;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    background-color: #4CAF50;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.shop-icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    background-color: #45a049;
}

.shop-icon-btn:active {
    transform: scale(0.95);
}

.students-shop-btn {
    right: 20px;
    bottom: 310px;
}

.students-lottery-btn {
    right: 20px;
    bottom: 240px;
    background-color: #4CAF50;
}

.students-lottery-btn:hover {
    background-color: #45a049;
}

.valera-shop-btn {
    left: 150px;
    background-color: #f44336;
}

.valera-shop-btn:hover {
    background-color: #da190b;
}

/* Кнопки управления */
.control-btn {
    position: fixed;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #fff;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.2s, box-shadow 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.control-btn:active {
    transform: scale(0.95);
}

.green-btn {
    top: 20px;
    left: 20px;
    background-color: #4CAF50;
}

.red-btn {
    top: 20px;
    right: 20px;
    background-color: #f44336;
}

/* Сигнальные круги */
.signal-circles {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 99;
}

.signal-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid #333;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.signal-circle.active {
    background-color: #f44336;
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.9), 0 0 30px rgba(244, 67, 54, 0.6), 0 0 45px rgba(244, 67, 54, 0.3);
    animation: signalGlow 1.5s ease-in-out infinite;
}

@keyframes signalGlow {
    0% {
        box-shadow: 0 0 15px rgba(244, 67, 54, 0.9), 0 0 30px rgba(244, 67, 54, 0.6), 0 0 45px rgba(244, 67, 54, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(244, 67, 54, 1), 0 0 50px rgba(244, 67, 54, 0.8), 0 0 75px rgba(244, 67, 54, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(244, 67, 54, 0.9), 0 0 30px rgba(244, 67, 54, 0.6), 0 0 45px rgba(244, 67, 54, 0.3);
    }
}

/* Модальное окно с прайсом */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #2a2a2a;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid #4CAF50;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
    border-radius: 50%;
}

.modal-close:hover {
    color: #f44336;
    transform: rotate(90deg);
    background-color: rgba(244, 67, 54, 0.1);
}

.modal-title {
    color: #fff;
    font-size: 32px;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(76, 175, 80, 0.5);
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 15px;
    background-color: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
    cursor: pointer;
    user-select: none;
}

.price-item:hover {
    background-color: #252525;
    border-color: #4CAF50;
    transform: translateX(5px);
}

.price-item:active {
    transform: translateX(5px) scale(0.98);
    background-color: #2a2a2a;
}

.price-name {
    color: #fff;
    font-size: 18px;
    flex: 1;
}

.price-value {
    color: #4CAF50;
    font-size: 20px;
    font-weight: bold;
    margin-left: 20px;
}

/* Кнопки подтверждения покупки */
.confirm-purchase-btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.confirm-purchase-btn.confirm-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.confirm-purchase-btn.confirm-btn:hover {
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.confirm-purchase-btn.confirm-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.confirm-purchase-btn.cancel-btn {
    background: linear-gradient(135deg, #757575 0%, #616161 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(117, 117, 117, 0.3);
}

.confirm-purchase-btn.cancel-btn:hover {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(117, 117, 117, 0.5);
}

.confirm-purchase-btn.cancel-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(117, 117, 117, 0.3);
}

/* Модальное окно уведомлений */
.notification-modal-content {
    max-width: 450px;
}

.notification-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: notificationPulse 1.5s ease-in-out infinite;
}

@keyframes notificationPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notification-title {
    margin-bottom: 20px;
}

.notification-message {
    color: #fff;
    font-size: 18px;
    line-height: 1.6;
    padding: 0 10px;
}

.notification-modal-content.success .notification-icon {
    color: #4CAF50;
}

.notification-modal-content.error .notification-icon {
    color: #f44336;
}

.notification-modal-content.info .notification-icon {
    color: #2196F3;
}

/* Модальное окно с расчетом монет */
.coins-result {
    text-align: center;
    padding: 20px 0;
}

.coins-summary-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 10px;
}

.coins-card {
    background-color: rgba(40, 40, 40, 0.9);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 20px;
    box-shadow: inset 0 0 20px rgba(76, 175, 80, 0.1);
}

.coins-amount {
    font-size: 72px;
    font-weight: bold;
    color: #4CAF50;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.8);
    margin-bottom: 10px;
    line-height: 1;
}

#valeraCoinsAmount {
    color: #f44336;
    text-shadow: 0 0 20px rgba(244, 67, 54, 0.8);
}

.coins-card .coins-label {
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coins-label {
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
}

.coins-calculation {
    font-size: 18px;
    color: #aaa;
    margin-top: 20px;
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333;
}

.extra-point-checkbox {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.extra-point-checkbox label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 18px;
    color: #fff;
    user-select: none;
}

.extra-point-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-color: #2a2a2a;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    position: relative;
    transition: all 0.3s ease;
}

.extra-point-checkbox input[type="checkbox"]:hover {
    border-color: #66BB6A;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.extra-point-checkbox input[type="checkbox"]:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.extra-point-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.submit-coins-btn {
    width: 100%;
    max-width: 300px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    margin-top: 20px;
}

.submit-coins-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
}

.submit-coins-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

/* Модальное окно магазина Валеры */
#shopModal {
    align-items: flex-start;
    padding-top: 20px;
}

.shop-modal-content {
    max-width: 450px;
    margin-top: 0;
    padding: 20px;
}

.shop-modal-content .modal-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.shop-price-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333;
    margin-bottom: 15px;
    font-size: 16px;
    color: #fff;
}

.shop-price-info span {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-price-info strong {
    color: #4CAF50;
    font-size: 18px;
}

.shop-price-info #valeraBalanceInShop {
    color: #f44336;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333;
}

.shop-cell {
    aspect-ratio: 1;
    border: 2px solid #333;
    border-radius: 10px;
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
    overflow: hidden;
}

.shop-cell img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.shop-cell.highlighted {
    background-color: #f44336;
    border-color: #f44336;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.8);
    transform: scale(1.05);
}

.shop-cell.selected {
    background-color: #f44336;
    border-color: #f44336;
    box-shadow: 0 0 30px rgba(244, 67, 54, 1);
    transform: scale(1.1);
    animation: selectedPulse 1s ease-in-out infinite;
}

@keyframes selectedPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(244, 67, 54, 1);
    }
    50% {
        box-shadow: 0 0 50px rgba(244, 67, 54, 1), 0 0 70px rgba(244, 67, 54, 0.8);
    }
}

.shop-select-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #4CAF50;
    border: 2px solid #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.shop-select-btn:hover:not(:disabled) {
    background-color: #45a049;
    transform: scale(1.02);
}

.shop-select-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.shop-select-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.prize-result {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    padding: 20px;
    box-sizing: border-box;
}

.prize-result.show {
    opacity: 1;
    visibility: visible;
    animation: prizeAppear 0.5s ease-out;
}

.prize-result.show .prize-text {
    font-size: 72px;
    font-weight: bold;
    color: #f44336;
    text-align: center;
    text-shadow: 0 0 20px rgba(244, 67, 54, 0.8);
    animation: prizePulse 1.5s ease-in-out infinite;
    line-height: 1.2;
    max-width: 90%;
    will-change: transform;
    transform: translateZ(0);
}

.students-prize-result.show .prize-text {
    color: #4CAF50;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.8);
    animation: studentsPrizePulse 1.5s ease-in-out infinite;
}

@keyframes studentsPrizePulse {
    0%, 100% {
        transform: translateZ(0) scale(1);
        text-shadow: 0 0 20px rgba(76, 175, 80, 0.8);
    }
    50% {
        transform: translateZ(0) scale(1.05);
        text-shadow: 0 0 40px rgba(76, 175, 80, 1);
    }
}

@keyframes prizeAppear {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes prizePulse {
    0%, 100% {
        transform: translateZ(0) scale(1);
        text-shadow: 0 0 20px rgba(244, 67, 54, 0.8);
    }
    50% {
        transform: translateZ(0) scale(1.05);
        text-shadow: 0 0 40px rgba(244, 67, 54, 1);
    }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    /* Кнопки управления */
    .control-btn {
        width: 60px;
        height: 60px;
        top: 10px;
    }

    .green-btn {
        left: 10px;
    }

    .red-btn {
        right: 10px;
    }

    /* Сигнальные круги */
    .signal-circles {
        top: 10px;
        gap: 10px;
    }

    .signal-circle {
        width: 50px;
        height: 50px;
    }

    /* Контейнер пещеры */
    .cave-container {
        transform: scale(0.5);
    }

    /* Текст "Вы проиграли!" */
    .game-over-text {
        font-size: 48px;
        top: 30%;
    }

    /* Кнопка перезапуска */
    .restart-btn {
        bottom: 20px;
        padding: 12px 30px;
        font-size: 18px;
    }

    /* Кнопки магазинов */
    .shop-icon-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        border-width: 2px;
    }

    .students-shop-btn {
        right: 200px;
        bottom: 20px;
    }

    .students-lottery-btn {
        right: 140px;
        bottom: 20px;
    }

    .valera-shop-btn {
        left: 20px;
    }

    /* Модальные окна */
    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 20px;
        margin: 10px;
    }

    .modal-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 30px;
        height: 30px;
    }

    /* Прайс */
    .price-item {
        padding: 12px 15px;
        margin-bottom: 10px;
    }

    .price-name {
        font-size: 16px;
    }

    .price-value {
        font-size: 18px;
    }

    .confirm-purchase-btn {
        padding: 12px 20px;
        font-size: 16px;
        min-width: 120px;
    }

    /* Модальное окно с расчетом монет */
    #coinsModal {
        padding: 10px;
        align-items: flex-start;
        overflow-y: auto;
    }

    #coinsModal .modal-content {
        max-width: 95%;
        width: 95%;
        padding: 15px;
        margin: 5px;
        max-height: 95vh;
        overflow-y: auto;
    }

    #coinsModal .modal-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .coins-result {
        padding: 10px 0;
    }

    .coins-summary-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 5px;
    }

    .coins-card {
        padding: 15px;
        border-radius: 12px;
    }

    .coins-amount {
        font-size: 48px;
        margin-bottom: 8px;
    }

    .coins-card .coins-label {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .extra-point-checkbox {
        margin: 20px 0;
    }

    .extra-point-checkbox label {
        font-size: 16px;
        gap: 10px;
    }

    .extra-point-checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }

    .extra-point-checkbox input[type="checkbox"]:checked::after {
        font-size: 14px;
    }

    .submit-coins-btn {
        max-width: 100%;
        padding: 12px 20px;
        font-size: 18px;
        margin-top: 15px;
    }

    /* Магазин Валеры и лавка для учащихся */
    #shopModal,
    #studentsLotteryModal {
        padding-top: 5px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .shop-modal-content {
        max-width: 95%;
        width: 95%;
        padding: 15px;
        margin: 5px;
        max-height: 95vh;
        overflow-y: auto;
    }

    .shop-modal-content .modal-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .shop-grid {
        gap: 6px;
        margin: 10px 0;
        padding: 8px;
    }

    .shop-cell {
        min-height: 60px;
    }

    .shop-cell img {
        padding: 3px;
    }

    .shop-select-btn {
        padding: 10px 15px;
        font-size: 14px;
        margin-top: 10px;
        width: 100%;
    }

    .prize-result.show .prize-text {
        font-size: 32px;
        padding: 10px;
    }

    /* Результат приза */
    .prize-result {
        padding: 15px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .control-btn {
        width: 50px;
        height: 50px;
    }

    .signal-circle {
        width: 40px;
        height: 40px;
    }

    .signal-circles {
        gap: 8px;
    }

    .game-over-text {
        font-size: 36px;
    }

    .restart-btn {
        font-size: 16px;
        padding: 10px 25px;
    }

    .shop-icon-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .shop-grid {
        gap: 4px;
        padding: 6px;
        margin: 8px 0;
    }

    .shop-cell {
        min-height: 50px;
    }

    .shop-modal-content {
        padding: 12px;
        margin: 3px;
    }

    .shop-modal-content .modal-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .shop-select-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .prize-result.show .prize-text {
        font-size: 24px;
        padding: 8px;
    }

    /* Модальное окно с расчетом монет */
    #coinsModal .modal-content {
        padding: 12px;
        margin: 3px;
        max-height: 98vh;
    }

    #coinsModal .modal-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .coins-result {
        padding: 8px 0;
    }

    .coins-summary-grid {
        gap: 12px;
        margin-top: 5px;
    }

    .coins-card {
        padding: 12px;
        border-radius: 10px;
    }

    .coins-amount {
        font-size: 36px;
        margin-bottom: 6px;
    }

    .coins-card .coins-label {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .extra-point-checkbox {
        margin: 15px 0;
    }

    .extra-point-checkbox label {
        font-size: 14px;
        gap: 8px;
    }

    .extra-point-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .extra-point-checkbox input[type="checkbox"]:checked::after {
        font-size: 12px;
    }

    .submit-coins-btn {
        padding: 10px 15px;
        font-size: 16px;
        margin-top: 12px;
        border-radius: 8px;
        max-width: 100%;
    }
}

