html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.tz {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: min(260px, 88vw);
  background: #0a4fe8;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.tz__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tz__cap {
  color: #fff7e6;
  font-size: 12px;
  font-weight: 500;
}

.tz__input {
  border: 0;
  border-radius: 12px;
  padding: 4px 8px;
  background: #fff7e6;
  color: #17141a;
  font-weight: 600;
  font-size: 14px;
}

.tz__input:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

.tz__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tz__card {
  --b: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
  padding: 8px 4px;
  background: hsl(224, 40%, calc(16% + var(--b) * 22%));
  transition: box-shadow 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tz__offset {
  color: #fff7e6;
  font-size: 10px;
  font-weight: 600;
}

.tz__time {
  color: #fff7e6;
  font-size: 13px;
  font-weight: 700;
}

.tz__readout {
  margin: 0;
  color: #fff7e6;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 340px) {
  .tz {
    padding: 12px;
    gap: 4px;
    width: min(220px, 84vw);
  }
  .tz__cap {
    font-size: 10px;
  }
  .tz__input {
    font-size: 12px;
  }
  .tz__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
  .tz__card {
    padding: 4px;
    gap: 4px;
  }
  .tz__offset {
    font-size: 9px;
  }
  .tz__time {
    font-size: 12px;
  }
  .tz__readout {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tz__card {
    transition: none;
  }
}
