* {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

body {
  margin: 0;
  padding: 16px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #064e3b 100%);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.top-bar {
  width: 100%;
  max-width: 680px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

.btn-back {
  text-decoration: none;
  background: rgba(15, 23, 42, 0.85);
  color: #34d399;
  border: 2px solid #10b981;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

.badge-it {
  background: #020617;
  color: #38bdf8;
  font-family: monospace;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  border: 1px solid #1e293b;
}

.game-card {
  width: 100%;
  max-width: 680px;
  background: rgba(15, 23, 42, 0.92);
  border-radius: 20px;
  padding: 18px;
  border: 2px solid #10b981;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  text-align: center;
}

h1 {
  margin: 0 0 6px 0;
  font-size: 1.45rem;
  color: #34d399;
}

.subtitle {
  margin: 0 0 14px 0;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #020617;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 10px 6px;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 0.88rem;
}

.status-banner {
  min-height: 28px;
  margin-bottom: 12px;
  font-family: monospace;
  font-size: 0.92rem;
  color: #fbbf24;
  font-weight: 700;
}

.kanban-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 440px;
  margin: 0 auto 16px auto;
}

.slot {
  aspect-ratio: 1 / 1;
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
}

.slot:active {
  transform: scale(0.94);
}

.slot-label {
  font-size: 0.72rem;
  font-family: monospace;
  margin-top: 4px;
  font-weight: 700;
  color: #e2e8f0;
}

.slot.bug {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
}

.slot.safe {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
}

.slot.bonus {
  background: rgba(244, 114, 182, 0.25);
  border-color: #f472b6;
}

.btn-start {
  background: #10b981;
  color: #020617;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

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

.legend {
  margin-top: 14px;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
}
