* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Arial Narrow", "Roboto Condensed", "Liberation Sans Narrow", Inter, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-stretch: condensed;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
}

.app {
  width: min(560px, 92vw);
  text-align: center;
}

.title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.clock {
  margin: 0.4rem 0 2rem;
  font-size: clamp(3rem, 12vw, 7.2rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.controls-shell {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  width: min(440px, calc(100vw - 2rem));
  text-align: left;
  z-index: 20;
}

.controls-panel {
  margin-top: 0.55rem;
  background: #050505;
  border: 1px solid #303030;
  border-radius: 0.6rem;
  padding: 0.75rem;
}

.hour-offset-controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.hour-offset-label {
  margin: 0;
  min-width: 6.5rem;
}

.alarms h2 {
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
}

.alarm-form {
  display: flex;
  gap: 0.7rem;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

input,
button {
  background: #111;
  border: 1px solid #fff;
  color: #fff;
  padding: 0.55rem 0.7rem;
  border-radius: 0.45rem;
  font-size: 1.05rem;
}

button {
  cursor: pointer;
}

button:hover {
  background: #1c1c1c;
}

.alarm-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.alarm-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid #303030;
  border-radius: 0.45rem;
  padding: 0.55rem 0.7rem;
}

.alarm-dialog {
  border: 1px solid #fff;
  border-radius: 0.6rem;
  background: #050505;
  color: #fff;
  text-align: center;
  padding: 1rem 1.2rem;
}

.alarm-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}