.tm {
  --line: rgba(255, 255, 255, 0.08);
  --surface: rgba(255, 255, 255, 0.035);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --green: #30d158;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;

  position: relative;
  width: 100%;
  max-width: 1180px;
  min-height: 72vh;
  margin: 0 auto !important;
  padding: 40px 28px 72px !important;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tm::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(50% 55% at 50% 48%, rgba(48, 209, 88, 0.10), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(60% 65% at 50% 48%, #000 30%, transparent 75%);
  mask-image: radial-gradient(60% 65% at 50% 48%, #000 30%, transparent 75%);
}

/* ---------- top bar ---------- */

.tm-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tm-prompt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
}

.tm-prompt-sym { color: var(--green); margin-right: 4px; }

.tm-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}

.tm-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: tm-breathe 2.8s ease-in-out infinite;
}

@keyframes tm-breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

/* ---------- hero ---------- */

.tm-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 64px 0;
  text-align: center;
}

.tm-date {
  font-family: var(--mono);
  font-size: clamp(1rem, 2.6vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

.tm-clock {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: clamp(3.6rem, 18vw, 15rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tm-clock #tmClock {
  background: linear-gradient(180deg, #ffffff 30%, #8e8e93 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tm-caret {
  display: inline-block;
  width: 0.07em;
  height: 0.78em;
  margin-left: 0.1em;
  vertical-align: -0.02em;
  border-radius: 3px;
  background: var(--green);
  animation: tm-caret 1.1s steps(1) infinite;
}

@keyframes tm-caret { 50% { opacity: 0; } }

.tm-tick {
  width: min(420px, 60%);
  height: 2px;
  margin-top: 40px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.tm-tick span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 2px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(48, 209, 88, 0.6);
  transform-origin: left center;
  transform: scaleX(0);
}

/* ---------- responsive ---------- */

@media (max-width: 560px) {
  .tm { padding: 28px 16px 56px !important; min-height: 64vh; }
  .tm-hero { padding: 48px 0; }
  .tm-tick { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .tm-caret, .tm-pill-dot { animation: none; }
}
