body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(115,58,255,0.45), transparent 55%),
              #01010d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Chakra Petch', system-ui, sans-serif;
  color: #f5f5ff;
}

.frame {
  width: min(520px, 95vw);
  background: rgba(7,7,25,0.9);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

header {
  text-align: center;
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 6px;
  letter-spacing: 0.1em;
}

p {
  margin: 4px 0 12px;
  color: rgba(245,245,255,0.7);
}

button {
  border: none;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #0b0417;
  padding: 10px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 20px rgba(250,204,21,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-2px);
}

.scoreboard {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.95rem;
}

canvas {
  width: 100%;
  height: auto;
  background: radial-gradient(circle, rgba(15,23,42,0.8), rgba(2,6,23,0.95));
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  touch-action: none;
}

.leaderboard-panel {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.leaderboard-panel h2 {
  margin: 0;
  letter-spacing: 0.08em;
}

.submit-card,
.board-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.submit-card label {
  font-size: 0.85rem;
  color: rgba(245,245,255,0.7);
}

.submit-card input {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 14px;
  background: rgba(1,1,13,0.6);
  color: #fff;
  font-size: 1rem;
}

.submit-card small {
  color: rgba(245,245,255,0.6);
  font-size: 0.8rem;
}

.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

button.ghost {
  background: transparent;
  color: #facc15;
  border: 1px solid rgba(250,204,21,0.6);
  box-shadow: none;
}

#leaderboardList {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#leaderboardList li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(245,245,255,0.9);
}

footer {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(245,245,255,0.6);
}
