@tailwind base;
@tailwind components;
@tailwind utilities;

body {
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
}

.shadow-neon-green {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5), 0 0 30px rgba(0, 255, 0, 0.3);
}

.shadow-neon-blue {
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.5), 0 0 30px rgba(0, 150, 255, 0.3);
}

.shadow-neon-yellow {
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5), 0 0 30px rgba(255, 204, 0, 0.3);
}

.price {
    transition: color 0.8s ease, text-shadow 0.8s ease;
}

.price.up {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

.price.down {
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
}

.timer {
    animation: pulse 2s infinite;
}

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

.timer.near-block {
    animation: flash 0.8s infinite;
}

@keyframes flash {
    0% { color: #ffcc00; text-shadow: 0 0 10px rgba(255, 204, 0, 0.7); }
    50% { color: #ff0000; text-shadow: 0 0 10px rgba(255, 0, 0, 0.7); }
    100% { color: #ffcc00; text-shadow: 0 0 10px rgba(255, 204, 0, 0.7); }
}

canvas {
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

@media (min-width: 1024px) {
    .dashboard {
        grid-template-columns: 3fr 2fr 2fr;
        gap: 8px;
        padding: 8px;
        height: calc(100vh - 16px);
    }
    .price-ticker, .bitaxe-stats, .lottery {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 12px;
    }
    .price {
        font-size: 3.5em;
    }
    .timer {
        font-size: 1.5em;
    }
    #stats p, .lottery div {
        font-size: 0.85em;
        margin: 4px 0;
    }
    input, button {
        font-size: 0.9em;
        padding: 6px;
    }
    canvas {
        max-height: 120px;
    }
}

@media (max-width: 1023px) {
    .dashboard {
        grid-template-columns: 1fr;
        height: auto;
    }
    .price {
        font-size: 2.5em;
    }
    .timer {
        font-size: 1.2em;
    }
    canvas {
        max-height: 100px;
    }
}
