* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #0f172a;
  color: #f8fafc;
}

/* ---------- Display page ---------- */

.display-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.board {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4vw;
  width: 100%;
}

.column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 45vw;
}

.label {
  font-size: clamp(1.5rem, 4vw, 3rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.number {
  font-size: clamp(6rem, 20vw, 16rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tutor .number {
  color: #38bdf8;
}

.ydw .number {
  color: #4ade80;
}

.divider {
  width: 2px;
  align-self: stretch;
  background: #1e293b;
  margin: 4vh 0;
}

.footer {
  position: fixed;
  bottom: 1.25rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  color: #64748b;
  font-size: 0.9rem;
}

.control-link {
  color: #64748b;
  text-decoration: none;
}

.control-link:hover {
  color: #f8fafc;
}

/* ---------- Control page ---------- */

.control-page {
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.control-page h1 {
  margin-bottom: 2rem;
}

.panels {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 700px;
}

.panel {
  background: #1e293b;
  border-radius: 12px;
  padding: 1.75rem;
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.panel h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5e1;
}

.current {
  font-size: 1.1rem;
  color: #94a3b8;
}

.current-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: #f8fafc;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
}

.increment-btn {
  width: 100%;
  background: #2563eb;
  color: white;
}

.increment-btn:hover {
  background: #1d4ed8;
}

.set-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.set-input {
  flex: 1;
  min-width: 0;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f8fafc;
  padding: 0.6rem 0.7rem;
  font-size: 1rem;
}

.set-btn {
  background: #475569;
  color: white;
}

.set-btn:hover {
  background: #334155;
}

.reset-btn {
  width: 100%;
  background: transparent;
  color: #94a3b8;
  border: 1px solid #334155;
}

.reset-btn:hover {
  color: #f87171;
  border-color: #f87171;
}
