/* Mobile-first styles */

/* Prevent text selection on interactive elements */
.no-select { -webkit-user-select: none; user-select: none; }

/* Prevent overscroll / pull-to-refresh globally */
html, body { overscroll-behavior: none; }

/* Smooth scrolling */
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

/* Pulse animation for live indicators */
@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.animate-pulse-live {
    animation: pulse-live 1.5s ease-in-out infinite;
}

/* Score number animation */
@keyframes score-bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.score-bump {
    animation: score-bump 0.2s ease-out;
}

/* Toast notifications - above bottom nav */
.toast {
    position: fixed;
    bottom: 5rem;
    left: 1rem;
    right: 1rem;
    z-index: 9999;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.25s ease;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast-success { background-color: #16a34a; }
.toast-error { background-color: #dc2626; }
.toast-info { background-color: #2563eb; }

/* Active press feedback */
.touch-btn {
    transition: transform 0.1s ease, opacity 0.1s ease;
}
.touch-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* Safe areas for notch/home indicator */
.safe-bottom {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}
.safe-top {
    padding-top: env(safe-area-inset-top);
}

/* Hide scrollbar but keep scroll */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Tabular numbers for scores */
.tabular { font-variant-numeric: tabular-nums; }
