/* Touchline360 Offline & Standalone System Stylesheet */
/* Ensures 100% pixel-perfect styling even with zero internet or cellular connectivity on the pitch */

@charset "UTF-8";

/* High-Quality Offline System Font Fallbacks */
body {
  font-family: 'Sora', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #050906;
  color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-mono {
  font-family: 'IBM Plex Mono', 'Cascadia Code', 'Consolas', 'SF Mono', 'Courier New', monospace !important;
}

.font-poppins {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Offline Pitch Banner */
.touchline-offline-badge {
  position: fixed;
  bottom: 12px;
  right: 12px;
  background-color: rgba(16, 37, 23, 0.9);
  border: 1px solid #7CFF00;
  color: #7CFF00;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 9999;
  pointer-events: none;
}

.touchline-offline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #7CFF00;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* Custom Tactical Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #08100C;
}
::-webkit-scrollbar-thumb {
  background: #1E3B2B;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7CFF00;
}

/* Pitch Canvas Reset */
canvas {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
