:root {
  --bg: #2a1a0f;
  --card: #271a11;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #22d3ee;
  --btn: #6425eb;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif, system-ui,
    -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(
    1200px 800px at 10% 10%,
    #b77e3d 0%,
    #1d260b 40%,
    #1c0f2a 100%
  );
  color: var(--text);
}

.container {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.card {
  width: min(560px, 92vw);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 28px 28px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

#greeting {
  margin: 0 0 12px;
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.time {
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: var(--muted);
}

.clock {
  font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 8vw, 56px);
  font-weight: 700;
  color: var(--text);
}

.day {
  font-size: clamp(14px, 2.5vw, 18px);
  opacity: 0.9;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.btn {
  margin-top: 18px;
  background: var(--btn);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn.primary {
  background: var(--accent);
  color: #04222a;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.6);
  padding: 24px;
}

.modal.hidden {
  display: none;
}

.modal-content {
  width: min(440px, 92vw);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f9fafb;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #475569;
  }
  body {
    background: radial-gradient(
      1200px 800px at 10% 10%,
      #f4f7fb 0%,
      #eaf0ff 40%,
      #f9fbff 100%
    );
  }
}
