body {
  font-family: 'Roboto', sans-serif;
  text-align: center;
  background: #f5f5f5;
  margin: 0;
  padding: 0;
}

h1 {
  margin: 2rem 0;
  font-size: 6vmin;
}

#settingsBtn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  font-size: 5vmin;
  background: #ffffffcc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  cursor: pointer;
  z-index: 11;
}

#settingsBox {
  position: fixed;
  bottom: 4.5rem;
  right: 1rem;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #ffffffcc;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  z-index: 10;
}

#settingsBox.show {
  display: flex;
}

label {
  font-size: 3.5vmin;
}

select,
button[type="checkbox"] {
  font-size: 3.5vmin;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
}

#clocks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3vmin;
  padding: 2rem;
}

.clock-container {
  flex: 0 1 30vmin;
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas {
  background: #fff;
  border: 2px solid #89c;
  border-radius: 50%;
  cursor: pointer;
  width: 100%;
  aspect-ratio: 1;
}

#message {
  margin-top: 1.5rem;
  font-size: 5vmin;
  font-weight: bold;
}

#scoreboard {
  margin-top: 2rem;
  font-size: 4vmin;
}

.high-contrast body,
body.high-contrast {
  background: #000;
  color: #fff;
}

@media (max-width: 500px) {
  .clock-container {
    flex: 0 1 45vmin;
  }
}
