*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #0f0f13;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

#event-name {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
  width: 100%;
  max-width: 400px;
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}

.unit {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #222;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color 0.2s;
}

.unit { cursor: pointer; }
.unit:hover { border-color: #7c6af7; }

.next-round {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  opacity: 0.65;
  font-variant-numeric: tabular-nums;
}

.next-round:not(:empty) {
  margin-top: 0.5rem;
}

.value {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.label {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
}

.unit.primary .value { color: #7c6af7; }
.unit.primary { border-color: #2d2847; }

#no-ts {
  text-align: center;
  max-width: 480px;
}

#no-ts h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #ccc;
}

#no-ts p {
  opacity: 0.5;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

#picker {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem auto 0;
  width: 100%;
  max-width: 320px;
}

.picker-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
}

.picker-label span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}

#n-input,
#dt-input {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.4);
  background: rgba(255, 255, 255, 0.15);
  color: inherit;
  width: 100%;
}

#c-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  padding: 0;
  background: transparent;
}

#c-input::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 6px;
  background: var(--c-gradient);
}

#c-input::-moz-range-track {
  height: 12px;
  border-radius: 6px;
  background: var(--c-gradient);
}

#c-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  margin-top: -5px;
}

#c-input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  box-sizing: border-box;
}

#dt-go {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: inherit;
  cursor: pointer;
  margin-top: 0.25rem;
}

#dt-go:hover { background: rgba(255, 255, 255, 0.35); }

footer {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: #333;
}
