:root {
  --bg: #0b1020;
  --panel: #151b2e;
  --accent: #ff4d4d;
  --text: #f4f6ff;
  --muted: #8b93ad;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  background: radial-gradient(circle at top, #1a2240, var(--bg));
  color: var(--text);
  min-height: 100vh;
}
.hidden { display: none !important; }
.panel, header, .slot, .grid > div {
  background: var(--panel);
  border-radius: 12px;
  padding: 16px;
  margin: 12px;
}
.login { max-width: 420px; margin: 10vh auto; }
label { display: block; margin: 8px 0; }
input, button {
  font: inherit;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #2a3354;
  background: #0f1426;
  color: var(--text);
}
button {
  background: var(--accent);
  border: 0;
  cursor: pointer;
  font-weight: 700;
  margin-right: 6px;
}
.muted { color: var(--muted); }
.error { color: #ff8a8a; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stage { text-align: center; padding: 24px; }
#mult { font-size: 72px; font-weight: 800; letter-spacing: -2px; }
#status { font-size: 20px; color: var(--accent); }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); }
ul { list-style: none; padding: 0; margin: 0; }
.log {
  margin: 12px;
  max-height: 180px;
  overflow: auto;
  background: #070b16;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
}
@media (max-width: 800px) {
  .controls, .grid { grid-template-columns: 1fr; }
  #mult { font-size: 48px; }
}
