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

body {
  background: #0d1117;
  color: #e5e7eb;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 680px;
  padding: 20px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.title {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats {
  display: flex;
  gap: 16px;
}

.stat {
  text-align: right;
}

.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6366f1;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.stat-value.green { color: #22c55e; }
.stat-value.blue { color: #0ea5e9; }
.stat-value.active { animation: pulse 1.5s ease-in-out infinite; }

.game-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.1), 0 0 80px rgba(34, 197, 94, 0.05);
  border: 1px solid #21262d;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #161b22;
}

.status-bar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #161b22;
  border-radius: 8px;
  border: 1px solid #21262d;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8b949e;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

.status-dot.warning { background: #fbbf24; }
.status-dot.error { background: #ef4444; }

#status-text {
  font-family: 'Courier New', monospace;
  color: #6b7280;
}

.game-count {
  font-size: 12px;
  color: #6366f1;
}

.footer {
  margin-top: 16px;
  text-align: center;
}

.footer a {
  color: #0ea5e9;
  text-decoration: none;
  font-size: 12px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer a:hover { opacity: 1; }

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
