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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, sans-serif;
  background: #0f0f1a;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

main {
  text-align: center;
  padding: 2rem;
  max-width: 700px;
  width: 100%;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #667eea, #e94560);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.version {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 2rem;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

canvas {
  border-radius: 12px;
  background: #1a1a2e;
  width: 100%;
  max-width: 600px;
  height: auto;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.status {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: opacity 0.3s;
}

.status.active {
  background: rgba(0, 200, 83, 0.12);
  color: #00c853;
  border: 1px solid rgba(0, 200, 83, 0.25);
}

.error {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: rgba(255, 23, 68, 0.12);
  color: #ff1744;
  border: 1px solid rgba(255, 23, 68, 0.25);
  font-size: 0.9rem;
  max-width: 500px;
  line-height: 1.4;
}

.hidden {
  display: none;
}

.btn {
  padding: 0.8rem 2.5rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
