#start-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: radial-gradient(ellipse at center, #161b22 0%, #0d1117 100%);
}

.start-container {
  text-align: center;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 16px;
  padding: 50px 60px;
  box-shadow: 0 8px 40px rgba(35, 197, 94, 0.12);
  width: 400px;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.snake-animation {
  font-size: 4.5rem;
  display: inline-block;
  animation: bounce 1.4s infinite ease-in-out;
  margin-bottom: 12px;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0)     rotate(0deg);   }
  50%       { transform: translateY(-16px) rotate(10deg);  }
}

.start-container h1 {
  font-size: 2.2rem;
  color: #23c55e;
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.subtitle {
  color: #8b949e;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

#start-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#start-form label {
  font-size: 0.82rem;
  color: #8b949e;
  text-align: left;
  letter-spacing: 0.5px;
}

#player-name {
  padding: 12px 16px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  color: #e6edf3;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#player-name:focus {
  border-color: #23c55e;
  box-shadow: 0 0 0 3px rgba(35, 197, 94, 0.15);
}

/* ---- Mode Selector ---- */
.mode-label {
  font-size: 0.82rem;
  color: #8b949e;
  text-align: left;
  letter-spacing: 0.5px;
}

.mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Hide the real radio inputs */
.mode-selector input[type="radio"] {
  display: none;
}

.mode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  user-select: none;
}

.mode-card:hover {
  border-color: #23c55e88;
  background: #161b22;
  transform: translateY(-2px);
}

/* Checked state */
.mode-selector input[type="radio"]:checked + .mode-card {
  border-color: #23c55e;
  background: #0f2a1a;
  box-shadow: 0 0 0 2px #23c55e33;
}

.mode-icon  { font-size: 1.8rem; line-height: 1; }
.mode-title { font-size: 0.95rem; font-weight: 700; color: #e6edf3; }
.mode-desc  { font-size: 0.72rem; color: #8b949e; }

/* Kids card is fully selectable */
.mode-selector input[type="radio"]#mode-kids + .mode-card {
  opacity: 1;
  cursor: pointer;
}

#start-btn {
  padding: 13px;
  background: #23c55e;
  color: #0d1117;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 4px;
  width: 100%;
}

#start-btn:hover  { background: #1aab52; transform: translateY(-2px); }
#start-btn:active { transform: translateY(0); }
