:root {
    --court-green: #064e3b;
    --active-gold: #facc15;
    --line-white: rgba(248, 250, 252, 0.9);
}

body {
    background-color: #020617;
    color: #f8fafc;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    /* Prevent double-tap zooming on mobile devices */
    touch-action: manipulation; 
}

/* Glassmorphism UI Elements */
.glass {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.score-tap {
    transition: background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.score-tap:active {
    background-color: rgba(255, 255, 255, 0.05);
}

.team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #0f172a;
    border-radius: 8px;
}

/* Scrollbar Hiding for Dashboard */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Court Visualization */
#court-svg {
    background-color: var(--court-green);
    border-radius: 12px;
    contain: content;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.4);
}

.court-line {
    stroke: var(--line-white);
    stroke-width: 3;
    fill: none;
    vector-effect: non-scaling-stroke;
}

.net-line {
    stroke: #fff;
    stroke-width: 6;
    stroke-dasharray: 8 4;
    opacity: 0.6;
}

.service-zone {
    fill: transparent;
    transition: fill 0.2s;
}

.service-zone.active {
    fill: rgba(250, 204, 21, 0.25);
    stroke: var(--active-gold);
    stroke-width: 4;
}

/* Player Nodes, Pills, and Animations */
.player-node {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.player-pill {
    fill: #0f172a;
    stroke: #334155;
    stroke-width: 2;
    transition: all 0.3s;
}

.server-highlight {
    fill: var(--active-gold) !important;
    stroke: #fff !important;
    filter: drop-shadow(0 0 10px var(--active-gold));
}

/* Match Point Pulsing Animation */
@keyframes pulse-red {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.5); 
        transform: scale(1); 
    }
    50% { 
        box-shadow: 0 0 25px rgba(239, 68, 68, 0.9); 
        transform: scale(1.05); 
    }
}

.animate-pulse-red {
    animation: pulse-red 1.5s infinite ease-in-out;
}