/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: #1a1a1a;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

/* Фон с canvas и градиентом */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff1a1a, #4d0000, #ffd700, #4d0000);
    background-size: 800%;
    animation: gradientPulse 30s ease infinite;
    opacity: 0.4;
}

@keyframes gradientPulse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Контейнер */
.main-container {
    width: 100%;
    margin: 0 auto;
    padding: 2%;
}

/* Шапка */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.92);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(255, 26, 26, 0.9);
    position: relative;
    z-index: 10;
    margin-bottom: 10px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #ff1a1a;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 26, 26, 1);
    animation: logoGlow 2s ease-in-out infinite, logoFloat 4s ease-in-out infinite;
}

@keyframes logoGlow {
    0% { text-shadow: 0 0 10px rgba(255, 26, 26, 1); }
    50% { text-shadow: 0 0 20px rgba(255, 26, 26, 1); }
    100% { text-shadow: 0 0 10px rgba(255, 26, 26, 1); }
}

@keyframes logoFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.balance {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    background: rgba(255, 26, 26, 0.35);
    padding: 8px 15px;
    border-radius: 10px;
    animation: balancePulse 3s ease-in-out infinite;
}

@keyframes balancePulse {
    0% { box-shadow: 0 0 5px rgba(255, 26, 26, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 26, 26, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 26, 26, 0.5); }
}

.coin-icon, .star-icon {
    margin-left: 8px;
    width: 15px;
    height: 15px;
    animation: coinSpin 2.5s linear infinite;
}

@keyframes coinSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.star-balance {
    margin-left: 10px;
}

/* Окна */
.window {
    background: rgba(0, 0, 0, 0.94);
    border-radius: 15px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 4px 20px rgba(255, 26, 26, 0.7);
    transition: transform 0.5s ease, opacity 0.5s ease;
    animation: windowSlide 0.5s ease-out;
}

@keyframes windowSlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.window.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

/* Сетка кейсов */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.case-card {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border: 2px solid #ff1a1a;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: caseFloat 3s ease-in-out infinite;
}

@keyframes caseFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0px); }
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 26, 26, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: caseGlow 2s ease-in-out infinite;
}

@keyframes caseGlow {
    0% { opacity: 0; }
    50% { opacity: 0.7; }
    100% { opacity: 0; }
}

.case-card:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 8px 25px rgba(255, 26, 26, 0.6), 0 0 20px rgba(255, 26, 26, 0.3);
    border-color: #ff6666;
}

.case-card:hover::before {
    opacity: 0.7;
}

.case-card img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.case-card:hover img {
    transform: scale(1.1) rotate(-1deg);
}

.case-card h3 {
    margin: 15px 0;
    font-size: 1.2rem;
    color: #ff1a1a;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.case-card p {
    color: #ff6666;
    font-size: 1rem;
    font-weight: 500;
}

/* Рулетка - Современный дизайн и длинная прокрутка */
.roulette-container {
    overflow: hidden;
    position: relative;
    margin: 20px 0;
    background: linear-gradient(145deg, #1a1a1a, #000);
    border-radius: 20px;
    border: 3px solid #ff1a1a;
    box-shadow: 0 8px 25px rgba(255, 26, 26, 0.3), inset 0 0 20px rgba(255, 26, 26, 0.1);
    animation: rouletteContainerGlow 3s ease-in-out infinite alternate;
    max-width: 100%;
    padding: 10px;
}

@keyframes rouletteContainerGlow {
    0% { box-shadow: 0 8px 25px rgba(255, 26, 26, 0.3), inset 0 0 20px rgba(255, 26, 26, 0.1); }
    100% { box-shadow: 0 8px 35px rgba(255, 26, 26, 0.5), inset 0 0 30px rgba(255, 26, 26, 0.2); }
}

.roulette-outer-frame {
    position: relative;
    width: 100%;
    height: 250px; /* Увеличена высота для более эффектного вида */
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.roulette {
    position: relative;
    width: 90%; /* Ограничиваем ширину рулетки для адаптивности */
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, rgba(255, 26, 26, 0.1) 0%, transparent 70%);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.roulette-track {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 26, 26, 0.05) 50%, transparent 100%);
    animation: trackShine 2s linear infinite;
}

@keyframes trackShine {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

.roulette-items {
    display: flex;
    transition: transform 6s cubic-bezier(0.1, 0.7, 0.2, 1);
    will-change: transform;
}

.roulette-item {
    flex: 0 0 180px; /* Увеличен размер для более эффектного вида */
    height: 180px;
    background: linear-gradient(145deg, #333, #2a2a2a);
    border: 2px solid #ff1a1a;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
    color: #fff;
    margin: 0 6px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: rotateX(0deg) translateZ(0);
    animation: itemWobble 3s ease-in-out infinite;
}

@keyframes itemWobble {
    0%, 100% { transform: rotateX(0deg) translateZ(0); }
    25% { transform: rotateX(5deg) translateZ(10px); }
    75% { transform: rotateX(-5deg) translateZ(10px); }
}

.roulette-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.roulette-item:hover::before {
    opacity: 1;
    animation: shineSweep 1.5s linear infinite;
}

@keyframes shineSweep {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.roulette-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.roulette-item.winning {
    background: linear-gradient(145deg, #ff6666, #ff1a1a);
    transform: scale(1.15) rotateX(10deg) translateZ(20px);
    box-shadow: 0 0 30px rgba(255, 26, 26, 1), inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: winPulse 1.5s ease-in-out infinite;
    border-color: #ffd700;
}

@keyframes winPulse {
    0% { transform: scale(1.15) rotateX(10deg) translateZ(20px); box-shadow: 0 0 30px rgba(255, 26, 26, 1); }
    50% { transform: scale(1.2) rotateX(15deg) translateZ(25px); box-shadow: 0 0 40px rgba(255, 26, 26, 1), inset 0 0 20px rgba(255, 255, 255, 0.3); }
    100% { transform: scale(1.15) rotateX(10deg) translateZ(20px); box-shadow: 0 0 30px rgba(255, 26, 26, 1); }
}

.roulette-pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%) rotate(0deg);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid #ff1a1a;
    z-index: 10;
    animation: pointerGlow 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 26, 26, 1));
}

@keyframes pointerGlow {
    0% { border-top-color: #ff1a1a; filter: drop-shadow(0 0 10px rgba(255, 26, 26, 1)); transform: translate(-50%, -100%) rotate(0deg); }
    50% { border-top-color: #ff6666; filter: drop-shadow(0 0 15px rgba(255, 102, 102, 1)); transform: translate(-50%, -100%) rotate(5deg); }
    100% { border-top-color: #ff1a1a; filter: drop-shadow(0 0 10px rgba(255, 26, 26, 1)); transform: translate(-50%, -100%) rotate(0deg); }
}

.roulette-glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 26, 26, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.roulette.spinning .roulette-glow-effect {
    opacity: 1;
    animation: glowRotate 4s linear infinite;
}

@keyframes glowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Кнопка спина */
.spin-button {
    display: block;
    margin: 20px auto;
    padding: 15px 30px;
    background: linear-gradient(145deg, #ff1a1a, #cc0000);
    color: #fff;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 26, 26, 0.3);
    animation: spinButtonPulse 2s ease-in-out infinite;
}

@keyframes spinButtonPulse {
    0% { box-shadow: 0 4px 15px rgba(255, 26, 26, 0.3); transform: scale(1); }
    50% { box-shadow: 0 6px 20px rgba(255, 26, 26, 0.5); transform: scale(1.02); }
    100% { box-shadow: 0 4px 15px rgba(255, 26, 26, 0.3); transform: scale(1); }
}

.spin-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateX(-100%);
}

.spin-button:hover::before {
    opacity: 1;
    animation: shineButton 1.5s linear infinite;
}

@keyframes shineButton {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.spin-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 26, 26, 0.5);
}

.spin-button:disabled {
    background: #555;
    cursor: not-allowed;
    animation: none;
}

.pulse {
    animation: buttonPulse 1.8s ease-in-out infinite;
}

@keyframes buttonPulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 26, 26, 0.7); }
    50% { transform: scale(1.03); box-shadow: 0 0 20px rgba(255, 26, 26, 1); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 26, 26, 0.7); }
}

/* Инвентарь */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.inventory-item {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border: 3px solid #ff1a1a;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    position: relative;
    animation: inventoryFloat 2s ease-in-out infinite;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@keyframes inventoryFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
    100% { transform: translateY(0px); }
}

.inventory-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 26, 26, 0.5), transparent);
    opacity: 0;
    animation: itemGlow 2.5s ease-in-out infinite;
}

@keyframes itemGlow {
    0% { opacity: 0; }
    50% { opacity: 0.6; }
    100% { opacity: 0; }
}

.inventory-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.sell-button {
    margin-top: 10px;
    padding: 8px 16px;
    background: linear-gradient(145deg, #ff1a1a, #cc0000);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255, 26, 26, 0.3);
}

.sell-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 26, 26, 0.5);
}

/* Пополнение баланса */
.deposit-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.deposit-option {
    padding: 15px;
    background: linear-gradient(145deg, #ff1a1a, #cc0000);
    color: #fff;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(255, 26, 26, 0.3);
}

.deposit-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateX(-100%);
}

.deposit-option:hover::before {
    opacity: 1;
    animation: shineSweep 1.5s linear infinite;
}

@keyframes shineSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.deposit-option:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(255, 26, 26, 0.5);
}

/* Кликер */
.clicker-container {
    text-align: center;
    padding: 20px;
}

.clicker-object {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    animation: clickerRotate 10s linear infinite;
}

@keyframes clickerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.clicker-star {
    width: 100%;
    height: 100%;
    animation: starPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.clicker-star.clicked {
    animation: starClick 0.3s ease;
}

@keyframes starPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
}

@keyframes starClick {
    0% { transform: scale(1.1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.1); }
}

.convert-button, .bonus-button {
    margin-top: 10px;
    padding: 10px 20px;
    background: linear-gradient(145deg, #ffd700, #ccac00);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.convert-button:hover, .bonus-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.5);
}

/* Нижняя навигация */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    justify-content: space-around;
    padding: 10px;
    box-shadow: 0 -2px 15px rgba(255, 26, 26, 0.9);
    flex-wrap: wrap;
    animation: navGlow 2s ease-in-out infinite alternate;
}

@keyframes navGlow {
    0% { box-shadow: 0 -2px 15px rgba(255, 26, 26, 0.9); }
    100% { box-shadow: 0 -2px 20px rgba(255, 26, 26, 1); }
}

.nav-button {
    padding: 10px 15px;
    background: linear-gradient(145deg, #ff1a1a, #cc0000);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin: 2px;
    flex: 1;
    max-width: 80px;
    position: relative;
    overflow: hidden;
}

.nav-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-button:hover::after {
    left: 100%;
}

.nav-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 26, 26, 1);
}

.nav-button:disabled {
    background: #555;
    cursor: not-allowed;
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(255, 26, 26, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: modalPop 0.6s ease;
    max-width: 90%;
    border: 2px solid #ff1a1a;
}

@keyframes modalPop {
    from { transform: scale(0.5) rotate(-5deg); opacity: 0; }
    to { transform: scale(1) rotate(0deg); opacity: 1; }
}

.modal-button {
    padding: 12px 25px;
    background: linear-gradient(145deg, #ff1a1a, #cc0000);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 26, 26, 0.3);
}

.modal-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(255, 26, 26, 0.5);
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.win-item-preview {
    margin: 20px auto;
    width: 120px;
    height: 120px;
    background: linear-gradient(145deg, #333, #2a2a2a);
    border: 3px solid #ff1a1a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: winItemGlow 1s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

@keyframes winItemGlow {
    0% { box-shadow: 0 0 10px rgba(255, 26, 26, 0.7), 0 4px 12px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 26, 26, 1), 0 4px 12px rgba(0, 0, 0, 0.5); }
    100% { box-shadow: 0 0 10px rgba(255, 26, 26, 0.7), 0 4px 12px rgba(0, 0, 0, 0.5); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-container {
        padding: 1%;
    }

    .header {
        padding: 10px;
        margin-bottom: 5px;
    }

    .logo {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .balance {
        font-size: 1rem;
        padding: 6px 10px;
    }

    .coin-icon, .star-icon {
        width: 12px;
        height: 12px;
    }

    .window {
        padding: 15px;
        margin: 5px 0;
    }

    .case-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .case-card {
        padding: 10px;
    }

    .case-card h3 {
        font-size: 1.1rem;
        margin: 10px 0;
    }

    .case-card p {
        font-size: 0.9rem;
    }

    .roulette-outer-frame {
        height: 200px;
    }

    .roulette-item {
        flex: 0 0 140px;
        height: 140px;
    }

    .roulette-item img {
        width: 80px;
        height: 80px;
    }

    .roulette-item span {
        font-size: 0.8rem;
    }

    .spin-button {
        padding: 12px 25px;
        font-size: 1.1rem;
        margin: 10px auto;
    }

    .inventory-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .inventory-item {
        padding: 10px;
    }

    .inventory-item img {
        width: 60px;
        height: 60px;
    }

    .sell-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .deposit-options {
        gap: 10px;
    }

    .deposit-option {
        padding: 12px;
        font-size: 0.9rem;
    }

    .clicker-container {
        padding: 15px;
    }

    .clicker-object {
        width: 120px;
        height: 120px;
    }

    .convert-button, .bonus-button {
        padding: 8px 15px;
        font-size: 0.8rem;
        margin: 5px;
    }

    .bottom-nav {
        padding: 8px;
    }

    .nav-button {
        padding: 8px 12px;
        font-size: 0.8rem;
        max-width: 60px;
    }

    .modal-content {
        padding: 20px;
        max-width: 95%;
    }

    .modal-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .modal-buttons {
        gap: 5px;
    }

    .win-item-preview {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 0.5%;
    }

    .header {
        padding: 8px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .balance {
        font-size: 0.9rem;
        padding: 4px 8px;
    }

    .window {
        padding: 10px;
        margin: 3px 0;
    }

    .case-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }

    .case-card {
        padding: 8px;
    }

    .case-card h3 {
        font-size: 1rem;
        margin: 5px 0;
    }

    .case-card p {
        font-size: 0.8rem;
    }

    .roulette-outer-frame {
        height: 150px;
    }

    .roulette-item {
        flex: 0 0 100px;
        height: 100px;
    }

    .roulette-item img {
        width: 60px;
        height: 60px;
    }

    .roulette-item span {
        font-size: 0.7rem;
    }

    .spin-button {
        padding: 10px 20px;
        font-size: 1rem;
        margin: 5px auto;
    }

    .inventory-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }

    .inventory-item {
        padding: 8px;
    }

    .inventory-item img {
        width: 50px;
        height: 50px;
    }

    .sell-button {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    .deposit-option {
        padding: 10px;
        font-size: 0.8rem;
    }

    .clicker-object {
        width: 100px;
        height: 100px;
    }

    .convert-button, .bonus-button {
        padding: 6px 12px;
        font-size: 0.7rem;
        margin: 3px;
    }

    .bottom-nav {
        padding: 5px;
    }

    .nav-button {
        padding: 6px 10px;
        font-size: 0.7rem;
        max-width: 50px;
    }

    .modal-content {
        padding: 15px;
        max-width: 98%;
    }

    .modal-button {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .win-item-preview {
        width: 80px;
        height: 80px;
    }
}

/* Дополнительные анимации */
.glow {
    animation: glow 1.8s ease-in-out infinite;
}

@keyframes glow {
    0% { box-shadow: 0 0 10px #ff1a1a; }
    50% { box-shadow: 0 0 20px #ff1a1a; }
    100% { box-shadow: 0 0 10px #ff1a1a; }
}