:root {
  --bg-top: #f9efe2;
  --bg-bottom: #d9e8f6;
  --panel: rgba(255, 252, 247, 0.84);
  --text: #18222f;
  --muted: #586577;
  --accent: #d8572a;
  --accent-soft: rgba(216, 87, 42, 0.12);
  --accent-strong: #9f3714;
  --current: #2d6ea3;
  --bar: rgba(24, 34, 47, 0.1);
  --line: rgba(24, 34, 47, 0.1);
  --shadow: 0 20px 60px rgba(46, 68, 92, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 30%),
    radial-gradient(circle at right 20%, rgba(216, 87, 42, 0.15), transparent 24%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(12px);
}

body::before {
  width: 16rem;
  height: 16rem;
  top: -5rem;
  right: -4rem;
  background: rgba(216, 87, 42, 0.12);
}

body::after {
  width: 18rem;
  height: 18rem;
  bottom: -7rem;
  left: -6rem;
  background: rgba(77, 127, 184, 0.12);
}

.page-shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.timeline-panel {
  padding: 1.5rem;
}

.page-title {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  font-family: "Bahnschrift", "Aptos", sans-serif;
}

.timeline-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.timeline-zone,
.timeline-countdown {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-zone {
  color: var(--accent-strong);
}

.timeline-status {
  display: grid;
  gap: 0.35rem;
}

.timeline-countdown {
  color: var(--accent-strong);
  text-align: right;
}

.timeline-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-left: 10rem;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

.timeline-scale span:last-child {
  text-align: right;
}

.timeline-days {
  display: grid;
  gap: 1rem;
}

.day-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  align-items: center;
}

.day-label {
  display: grid;
  gap: 0.2rem;
}

.day-name,
.day-date {
  margin: 0;
}

.day-name {
  font-size: 1rem;
  font-weight: 700;
}

.day-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.day-track-wrap {
  position: relative;
  padding: 1.4rem 0 1.5rem;
}

.day-track {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(24, 34, 47, 0.05) 0,
      rgba(24, 34, 47, 0.05) calc(25% - 1px),
      rgba(255, 255, 255, 0.55) calc(25% - 1px),
      rgba(255, 255, 255, 0.55) 25%
    ),
    var(--bar);
  border: 1px solid rgba(24, 34, 47, 0.07);
}

.reset-marker,
.now-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.reset-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(216, 87, 42, 0.22);
}

.reset-marker.next {
  width: 18px;
  height: 18px;
  background: var(--accent-strong);
  box-shadow: 0 0 0 8px rgba(216, 87, 42, 0.12);
}

.reset-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.65rem);
  transform: translateX(-50%);
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 248, 242, 0.96);
  border: 1px solid rgba(216, 87, 42, 0.18);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.72rem;
  color: var(--accent-strong);
  white-space: nowrap;
}

.reset-time {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.55rem);
  transform: translateX(-50%);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.now-marker {
  width: 3px;
  height: 44px;
  border-radius: 999px;
  background: var(--current);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.now-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.55rem);
  transform: translateX(-50%);
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: rgba(234, 244, 252, 0.96);
  border: 1px solid rgba(45, 110, 163, 0.18);
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.72rem;
  color: var(--current);
  white-space: nowrap;
}

.empty-day {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 1.1rem, 1100px);
    padding-top: 1.4rem;
  }

  .timeline-panel {
    padding: 1rem;
  }

  .timeline-topline,
  .day-row {
    grid-template-columns: 1fr;
  }

  .timeline-countdown {
    text-align: left;
  }

  .timeline-scale {
    padding-left: 0;
    font-size: 0.72rem;
  }

  .day-track-wrap {
    padding-top: 1.6rem;
  }
}
