:root {
  --bg: #f4f1eb;
  --surface: #fffdf8;
  --ink: #23211e;
  --muted: #756f67;
  --line: #e7dfd2;
  --blue: #315d7d;
  --green: #557464;
  --amber: #a56d28;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.clock-shell {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 18px;
}

.clock-card {
  width: min(100%, 480px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(52, 45, 35, 0.11);
}

.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 4px 0 8px;
  font-size: 2rem;
  line-height: 1.05;
}

.hint,
.result {
  color: var(--muted);
  line-height: 1.45;
}

label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 750;
}

select,
input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.clock-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.clock-actions button {
  min-height: 72px;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  color: #fffdf8;
  background: var(--blue);
  font-weight: 850;
}

.clock-actions button:nth-child(2) {
  background: var(--green);
}

.clock-actions button:nth-child(3),
.clock-actions button:nth-child(4) {
  background: var(--amber);
}

.result {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  font-weight: 700;
}

[hidden] {
  display: none !important;
}
