@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Bebas+Neue&family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,400&family=Oswald:wght@300;400;700&family=VT323&family=Creepster&family=Russo+One&family=Press+Start+2P&family=Rubik+Glitch&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #09090b;
    color: #f8fafc;
}

.font-mono { font-family: 'Space Mono', monospace; }

.canvas-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(217, 70, 239, 0.15);
    background: #000;
    border: 1px solid #27272a;
}

canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.recording-pulse { animation: pulse 1.5s infinite; }
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #18181b; }
::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #52525b; }

input[type=range] { -webkit-appearance: none; background: transparent; }
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; height: 14px; width: 14px; border-radius: 50%;
    background: #d946ef; cursor: pointer; margin-top: -5px;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 4px; cursor: pointer; background: #3f3f46; border-radius: 2px;
}

.glitch-active { animation: flash-border 0.2s infinite; }
@keyframes flash-border {
    0%, 100% { border-color: #27272a; }
    50% { border-color: #ef4444; }
}

.range-audio::-webkit-slider-thumb { background: #a855f7; }
.range-glitch::-webkit-slider-thumb { background: #ef4444; }
.range-speed::-webkit-slider-thumb { background: #3b82f6; }
.range-words::-webkit-slider-thumb { background: #10b981; }

#appToast.hidden { display: none; }
#appToast { transition: opacity 0.3s ease, transform 0.3s ease; }
#appToast.fade-out { opacity: 0; transform: translateX(-10px); }

@keyframes slide-right {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
.animate-in { animation: slide-right 0.5s ease-out forwards; }



.donation-highlight { 
    animation: donation-pulse 2s infinite; 
    border-color: rgba(234, 179, 8, 0.8) !important;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
}

@keyframes donation-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background-color: rgba(234, 179, 8, 0.2); }
    100% { transform: scale(1); }
}


