:root {
    --primary: #2563eb;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --dark: #0f172a;
    --light: #f8fafc;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark);
    color: var(--light);
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

/* Neon Glow Effects */
.neon-text {
    text-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary), 0 0 15px var(--primary);
    animation: neon-pulse 1.5s infinite alternate;
}

.neon-border {
    box-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary), 0 0 15px var(--primary);
    animation: neon-pulse 2s infinite alternate;
}

.neon-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
}

.neon-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--primary), 0 0 30px var(--primary);
}

.neon-button:active {
    transform: translateY(0);
}

.neon-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 60%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

/* Animations */
@keyframes neon-pulse {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

@keyframes shine {
    0% { transform: rotate(30deg) translate(-30%, -30%); }
    100% { transform: rotate(30deg) translate(30%, 30%); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Game Card Effects */
.game-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #1e293b, #0f172a);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.game-card:active {
    transform: scale(0.98);
}

/* Progress Bar */
.progress-bar {
    height: 10px;
    background: #1e293b;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

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

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

/* Countdown Timer */
.countdown-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.7);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 60px;
}

.countdown-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
}

.countdown-period {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--light);
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Input Styles */
.input-field {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Bottom Navigation */
.bottom-nav {
    background: linear-gradient(to top, #1e293b, #0f172a);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
    position: relative;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: var(--accent);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 5px var(--accent);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Floating Coins */
.floating-coins {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.coin {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #f59e0b, #b45309);
    border-radius: 50%;
    box-shadow: 0 0 5px #f59e0b;
    animation: float 3s infinite ease-in-out;
}

/* Swiper Custom Styles */
.swiper {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6));
}

.swiper-pagination-bullet {
    background: var(--light);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1;
    box-shadow: 0 0 5px var(--accent);
}