:root {
    --bg-color: #0f172a;
    --panel-bg: rgba(30, 41, 59, 0.7);
    --panel-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #fbbf24; /* duck yellow */
    --accent-hover: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.background-animation {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 400px; height: 400px;
    background: #4338ca;
    top: -100px; left: -100px;
}

.blob-2 {
    width: 300px; height: 300px;
    background: #b45309;
    bottom: -50px; right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.container {
    width: 90%;
    max-width: 400px;
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

header {
    margin-bottom: 2.5rem;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.2);
}

.status .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background-color: var(--text-secondary);
}

.status.connected .dot { background-color: var(--success); box-shadow: 0 0 8px var(--success); }
.status.disconnected .dot { background-color: var(--danger); box-shadow: 0 0 8px var(--danger); }

.primary-btn {
    background: var(--accent-color);
    color: #1e293b;
    border: none;
    border-radius: 100px;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.3);
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(251, 191, 36, 0.4);
    background: var(--accent-hover);
}

.primary-btn:active:not(:disabled) {
    transform: translateY(1px) scale(0.98);
}

.primary-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.primary-btn .icon {
    font-size: 1.5rem;
}

.hidden {
    display: none !important;
}

.audio-controls {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--panel-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.audio-controls p {
    color: var(--success);
    font-weight: 500;
    margin-top: 1rem;
}

.pulse-ring {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--success);
    animation: pulsate 2s infinite ease-out;
}

@keyframes pulsate {
    0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.soundboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin-top: 2rem;
}

.sound-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 10px;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: all 0.2s ease;
    aspect-ratio: 1;
}

.sound-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.sound-btn:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.sound-btn.dragging {
    opacity: 0.5;
}

.sound-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.sound-label {
    font-size: 0.75rem;
    word-break: break-all;
    text-align: center;
    line-height: 1.2;
}
