:root {
    --primary-color: #0098EA;
    --secondary-color: #F7F9FB;
    --bg-color: #1E2337;
    --text-color: #1E2337;
    --accent-color: #1AC9FF;
    --progress-bg: #F7F9FB;
    --gift-border: rgba(0, 152, 234, 0.3);
    --error-color: #e74c3c;
    --success-color: #2ecc71;
}

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

@font-face {
    font-family: 'Inter';
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');
    font-display: swap;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #2D83EC 0%, #1AC9FF 100%);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    overflow: hidden;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 152, 234, 0.1);
    margin-top: 50px;
}

.title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 152, 234, 0.2);
}

.star-container {
    position: relative;
    margin-bottom: 30px;
}

.star {
    font-size: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 152, 234, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.star:hover .star-img {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 152, 234, 0.4));
}

.star:active .star-img {
    transform: scale(0.95);
}

.star-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0;
    z-index: 0;
    transform: scale(0);
}

.star.active .star-pulse {
    animation: pulse 1s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.click-effect {
    position: absolute;
    animation: rise 1s ease forwards;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
    pointer-events: none;
    z-index: 10;
}

@keyframes rise {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-80px) scale(1.5);
    }
}

.progress-container {
    width: 100%;
    max-width: 400px;
    height: 20px;
    background: var(--progress-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 100%;
    transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0.2) 100%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 2;
}

/* Стили для состояния ожидания */
.star[style*="pointer-events: none"]~.progress-container .progress-bar {
    background: linear-gradient(90deg, #666, #999);
}

.star[style*="pointer-events: none"]~.progress-container .progress-text {
    color: #666;
    font-weight: 600;
}

.footer {
    display: flex;
    gap: 25px;
    padding: 15px;
    background: white;
    width: 100%;
    justify-content: center;
    border-top: 1px solid rgba(0, 152, 234, 0.2);
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0, 152, 234, 0.05);
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.footer a:hover {
    background: rgba(0, 152, 234, 0.1);
    transform: translateY(-2px);
}

.footer a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 152, 234, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 152, 234, 0.1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.roulette-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px;
    overflow: hidden;
}

.roulette {
    display: flex;
    overflow: hidden;
    width: 100%;
    height: 180px;
    background: white;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 152, 234, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 152, 234, 0.2);
}

.roulette-track {
    display: flex;
    height: 100%;
    align-items: center;
    position: relative;
    left: 0;
    transition: none;
    padding: 0 150px;
}

.gift {
    flex: 0 0 100px;
    margin: 0 5px;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    border: 2px solid var(--gift-border);
    border-radius: 10px;
    padding: 5px;
    background: rgba(240, 248, 255, 0.5);
}

.gift-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.gift-name {
    font-size: 12px;
    margin-top: 5px;
    color: var(--text-color);
    font-weight: 500;
}

.roulette-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    width: 40px;
    height: 40px;
    z-index: 10;
    display: flex;
    justify-content: center;
}

.roulette-pointer::before {
    content: '';
    position: absolute;
    top: 15px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid var(--primary-color);
    filter: drop-shadow(0 0 5px rgba(0, 152, 234, 0.5));
}

.button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 152, 234, 0.3);
    margin-top: 20px;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 152, 234, 0.4);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 152, 234, 0.3);
}

.prize-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.prize-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 15px;
    border: 3px solid var(--primary-color);
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 152, 234, 0.2);
    padding: 10px;
    background: rgba(240, 248, 255, 0.5);
}

.prize-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.prize-description {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-color);
    opacity: 0.8;
}

.gift-cost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
}

.currency-icon {
    font-size: 16px;
}

.cost-value {
    font-size: 14px;
}

/* .winning-gift {
    border: 2px solid #f1c40f;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.5);
    transform: scale(1.05);
    transition: all 0.3s ease;
} */

.prize-cost {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
    color: #f1c40f;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    opacity: 0;
    z-index: 1001;
}

.waiting-message {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 152, 234, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 152, 234, 0.2);
}

.waiting-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.hint-text {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 0;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid rgba(0, 152, 234, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error-title {
    color: var(--error-color) !important;
    font-size: 28px;
    margin-bottom: 25px;
}

.error-container {
    text-align: center;
    padding: 35px;
    background: rgba(231, 76, 60, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(231, 76, 60, 0.1);
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
    position: relative;
    margin: 0;
}

.error-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.2);
    animation: pulse 2s infinite;
}

.error-message {
    font-size: 20px;
    color: var(--text-color);
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.error-hint {
    font-size: 15px;
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.6;
    max-width: 400px;
    margin: 0;
}

.error-hint p {
    margin: 0 0 12px 0;
    font-weight: 500;
}

.error-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.error-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}

.error-list li:last-child {
    margin-bottom: 0;
}

.error-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--error-color);
    font-size: 18px;
    line-height: 1;
}

.error-button {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    margin: 10px 0 0 0 !important;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3) !important;
    border: none !important;
    transition: all 0.3s ease !important;
    min-width: 200px;
}

.error-button:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4) !important;
}

.error-button:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3) !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hidden-button {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
    pointer-events: none;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .star {
        font-size: 70px;
    }

    /* .gift {
        flex: 0 0 80px;
        margin: 0 5px;
    }

    .gift-img {
        width: 60px;
        height: 60px;
    } */

    .roulette {
        height: 150px;
    }

    .button {
        padding: 10px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    /* Уменьшаем размеры элементов рулетки */
    .roulette {
        height: 170px;
    }

    /* .gift {
        flex: 0 0 70px;
        margin: 0 3px;
    }

    .gift-img {
        width: 50px;
        height: 50px;
    } */

    /* Уменьшаем отступы для модальных окон */
    .modal-content {
        padding: 15px;
        width: 95%;
    }

    /* Увеличиваем область нажатия для звезды */
    .star-container {
        padding: 20px;
    }

    /* Улучшаем отображение текста */
    .waiting-text {
        font-size: 16px;
    }

    .hint-text {
        font-size: 13px;
    }

    /* Корректируем прогресс-бар */
    .progress-container {
        height: 16px;
    }

    .progress-text {
        font-size: 12px;
    }

    .error-container {
        padding: 25px 20px;
        gap: 15px;
    }

    .error-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .error-message {
        font-size: 18px;
    }

    .error-hint {
        font-size: 14px;
    }

    .error-button {
        padding: 12px 24px !important;
        font-size: 14px !important;
        min-width: 180px;
    }

    .error-list li {
        padding-left: 20px;
        margin-bottom: 8px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {

    /* Дополнительные правки для очень маленьких экранов */
    /* .gift {
        flex: 0 0 60px;
    }

    .gift-img {
        width: 40px;
        height: 40px;
    } */

    .title {
        font-size: 18px;
    }

    .button {
        padding: 8px 20px;
        font-size: 13px;
    }
}

@media (max-height: 480px) and (orientation: landscape) {
    .main {
        padding: 10px;
        margin-top: 10px;
    }

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

    .star {
        font-size: 50px;
    }

    .progress-container {
        margin-top: 10px;
    }

    .footer {
        padding: 8px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }

    .roulette {
        height: 100px;
    }
}

/* Отключаем анимации для устройств с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .progress-bar {
        transition: none !important;
    }

    .roulette-track {
        transition: none !important;
    }
}

/* Оптимизация для iOS */
@supports (-webkit-touch-callout: none) {
    .star {
        -webkit-tap-highlight-color: transparent;
    }

    .button {
        -webkit-tap-highlight-color: rgba(0, 152, 234, 0.3);
    }
}

/* Увеличиваем область клика для интерактивных элементов */
.star-container {
    padding: 15px;
    cursor: pointer;
}

.button,
.footer a {
    min-height: 44px;
    /* Рекомендуемый минимальный размер для touch */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Предотвращаем масштабирование при двойном тапе */
button,
a {
    touch-action: manipulation;
}

.star.touch-active {
    transform: scale(0.95);
    opacity: 0.8;
}

.loading-container {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 152, 234, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 152, 234, 0.2);
}

.loading-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 15px;
    transition: opacity 0.3s ease;
}

.space-scene {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 20px 0;
    overflow: hidden;
    background: linear-gradient(to bottom, #000428, #004e92);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQBAMAAABykSv/AAAAG1BMVEUAAAD///8fHx8/Pz9fX1+fn5+/v7/f39////9TklWwAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF0WlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNy4yLWMwMDAgNzkuMWI2NWE3OWI0LCAyMDIyLzA2LzEzLTIyOjAxOjAxICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjQuMCAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjQtMDItMTVUMTU6NDc6NDctMDg6MDAiIHhtcDpNZXRhZGF0YURhdGU9IjIwMjQtMDItMTVUMTU6NDc6NDctMDg6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDI0LTAyLTE1VDE1OjQ3OjQ3LTA4OjAwIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjQ5YzFiOWM1LTM4ZTAtNDZiZC1hMzA1LTNkYzM5ZjM5ZjM5ZiIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjQ5YzFiOWM1LTM4ZTAtNDZiZC1hMzA1LTNkYzM5ZjM5ZjM5ZiIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOjQ5YzFiOWM1LTM4ZTAtNDZiZC1hMzA1LTNkYzM5ZjM5ZjM5ZiIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiPiA8eG1wTU06SGlzdG9yeT4gPHJkZjpTZXE+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJjcmVhdGVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjQ5YzFiOWM1LTM4ZTAtNDZiZC1hMzA1LTNkYzM5ZjM5ZjM5ZiIgc3RFdnQ6d2hlbj0iMjAyNC0wMi0xNVQxNTo0Nzo0Ny0wODowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDI0LjAgKE1hY2ludG9zaCkiLz4gPC9yZGY6U2VxPiA8L3htcE1NOkhpc3Rvcnk+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+');
    animation: twinkle 200s linear infinite;
}

.twinkling {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    animation: twinkle 200s linear infinite;
}

.rocket-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 200px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.rocket {
    position: relative;
    width: 100%;
    height: 100%;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.rocket-body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 120px;
}

.body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 120px;
    background: linear-gradient(to bottom, #ff4d4d, #ff0000);
    border-radius: 20px 20px 0 0;
}

.fin {
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 40px;
    background: #ff4d4d;
}

.fin-left {
    left: -15px;
    transform: skew(30deg);
}

.fin-right {
    right: -15px;
    transform: skew(-30deg);
}

.window {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #87CEEB;
    border-radius: 50%;
    border: 2px solid #fff;
}

.exhaust-flame {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 40px;
    background: linear-gradient(to bottom, #ff4d4d, transparent);
    border-radius: 0 0 10px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rocket:hover {
    transform: translateY(-10px);
}

.rocket:hover .exhaust-flame {
    opacity: 1;
}

.rocket.active {
    animation: launch 2s ease-out forwards;
}

.target-star {
    position: absolute;
    top: 50px;
    right: 50px;
    font-size: 40px;
    animation: twinkle 1s ease-in-out infinite alternate;
}

@keyframes launch {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-300px);
    }
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.last-gift-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 152, 234, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 152, 234, 0.2);
}

.last-gift-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    text-align: center;
}

.last-gift-details {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.last-gift-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 5px;
}

.last-gift-text {
    flex: 1;
}

.last-gift-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 5px 0;
}

.last-gift-cost {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.live-ticker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 0;
    display: flex;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.live-badge {
    background: #ff0000;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin: 0 15px;
    animation: pulse 1s infinite;
}

.ticker-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    transition: transform 0.1s linear;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.ticker-gift-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 4px;
}

.ticker-gift-info {
    display: flex;
    flex-direction: column;
}

.ticker-gift-name {
    font-size: 12px;
    color: white;
    font-weight: 500;
}

.ticker-gift-cost {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.ton-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0088CC;
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.star-currency {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #ffe066;
    margin-left: 4px;
    margin-right: 0;
    vertical-align: middle;
}

.prize-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.prize-content {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalAppear 0.3s ease-out;
}

.prize-title {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.prize-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 0 auto 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
}

.prize-name {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.prize-cost {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.prize-button {
    background: linear-gradient(135deg, #0088CC, #006699);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.prize-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.4);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.instruction-content {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.instruction-image {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.instruction-content h2 {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.instruction-content p {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.live-line {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.live-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
    min-width: 120px;
    justify-content: space-between;
}

.live-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.live-item .price {
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-item .price img {
    width: 16px;
    height: 16px;
    margin: 0;
}

@media (max-width: 600px) {
    .ticker-track {
        gap: 6px;
    }

    .ticker-item {
        padding: 3px 6px;
        min-width: 125px;
    }

    .ticker-gift-name,
    .ticker-gift-cost {
        font-size: 10px;
    }

    .ticker-gift-img {
        width: 24px;
        height: 24px;
    }
}