* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-user-select: none;
    user-select: none;
}

.container {
    text-align: center;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
}

.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hidden {
    display: none !important;
}

/* Auth screen */
#pin-input {
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
    width: 200px;
    text-align: center;
    border: 2px solid #444;
    border-radius: 8px;
    background: #2a2a4a;
    color: #fff;
    outline: none;
}

#pin-input:focus {
    border-color: #667eea;
}

.btn {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    background: #667eea;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #5a6fd6;
}

.btn:disabled {
    background: #444;
    cursor: not-allowed;
}

.error {
    color: #ff6b6b;
}

/* Main screen */
#status {
    font-size: 1.2rem;
    min-height: 1.5em;
}

#status.recording {
    color: #ff6b6b;
}

#status.sending {
    color: #ffd93d;
}

#status.success {
    color: #6bcb77;
}

#status.error {
    color: #ff6b6b;
}

.ptt-btn {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid #667eea;
    background: linear-gradient(145deg, #2a2a4a, #1a1a2e);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ptt-btn:hover {
    border-color: #8b9cff;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.ptt-btn:active,
.ptt-btn.recording {
    transform: scale(0.95);
    background: linear-gradient(145deg, #ff6b6b, #cc5555);
    border-color: #ff6b6b;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
}

.ptt-icon {
    font-weight: 600;
}

.hint {
    font-size: 0.9rem;
    color: #888;
    max-width: 250px;
}

.sound-btn {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #6bcb77;
    border-radius: 8px;
    background: transparent;
    color: #6bcb77;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.sound-btn:hover {
    background: #6bcb77;
    color: #1a1a2e;
}

.sound-btn:active {
    transform: scale(0.95);
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .ptt-btn {
        width: 200px;
        height: 200px;
    }
}

/* Prevent pull-to-refresh on mobile */
html, body {
    overscroll-behavior: none;
}
