:root {
  --bg-0: #0a0507;
  --bg-1: #170a10;
  --ink: #ece2e4;
  --muted: #9a878d;
  --faint: #6b585e;
  --wine: #7a1028;
  --red: #ff2d55;
  --red-deep: #c00a30;
  --green: #37c46a;
  --amber: #e0a83c;
  --blue: #4aa8ff;
  --grey: #6a5b60;
  --line: rgba(255, 255, 255, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--ui);
  background:
    radial-gradient(1200px 700px at 50% -10%, #2a0e1a 0%, transparent 60%),
    radial-gradient(900px 900px at 50% 120%, #1a0913 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  -webkit-font-smoothing: antialiased;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.65) 100%);
  z-index: 0;
}

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  padding: 54px 24px 72px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- header ---- */
.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--faint);
}
.eyebrow b { color: var(--muted); font-weight: 600; }

.title {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 8vw, 58px);
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: #f3e9ea;
  text-shadow: 0 2px 40px rgba(255, 45, 85, 0.18);
}

/* ---- countdown ---- */
.countdown { margin-bottom: 44px; }
.countdown-label,
.countdown-sub {
  display: block;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}
.clock {
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  font-size: clamp(46px, 13vw, 82px);
  line-height: 1.05;
  margin: 6px 0 8px;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 0 30px rgba(255, 45, 85, 0.25);
}
.countdown.is-over .clock { color: var(--red); animation: none; }

/* ---- rosa protagonista ---- */
.rose-hero {
  font-size: clamp(64px, 16vw, 108px);
  line-height: 1;
  margin: 10px 0 6px;
  filter: drop-shadow(0 10px 44px rgba(255, 45, 85, 0.38));
  animation: sway 6s ease-in-out infinite;
  transform-origin: 50% 88%;
}
@keyframes sway {
  0%, 100% { transform: rotate(-3.5deg); }
  50% { transform: rotate(3.5deg); }
}

/* ---- farewell state ---- */
.farewell {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 20px;
}
.farewell .rose { font-size: 46px; }
.farewell .fw-title { font-family: var(--serif); font-size: 30px; color: #f3e9ea; margin: 0; }
.farewell .fw-sub { font-size: 14px; color: var(--muted); margin: 0; }
body.is-fired .countdown,
body.is-fired .rose-hero { display: none; }
body.is-fired .farewell { display: flex; }

/* ---- services panel ---- */
.panel {
  margin-top: 40px;
  width: 100%;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(3px);
  overflow: hidden;
  text-align: left;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
}
.tag {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 4px;
}
.counts { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.counts b { color: var(--green); }

.services { list-style: none; margin: 0; padding: 6px 0; }
.services li.loading { padding: 18px 20px; color: var(--faint); font-style: italic; }
.svc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
}
.services li:last-child { border-bottom: none; }
.svc:hover { background: rgba(255, 255, 255, 0.02); }
.svc-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--grey);
  flex: 0 0 auto;
  box-shadow: 0 0 0 0 transparent;
}
.svc-name { flex: 1; font-size: 14.5px; color: #ddd0d3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-status { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.svc[data-state="online"] .svc-dot { background: var(--green); box-shadow: 0 0 10px 1px rgba(55, 196, 106, 0.6); }
.svc[data-state="online"] .svc-status { color: var(--green); }
.svc[data-state="pending"] .svc-dot { background: var(--blue); box-shadow: 0 0 10px 1px rgba(74, 168, 255, 0.5); animation: blink 1s steps(2) infinite; }
.svc[data-state="pending"] .svc-status { color: var(--blue); }
.svc[data-state="sleeping"] .svc-dot { background: var(--amber); }
.svc[data-state="sleeping"] .svc-status { color: var(--amber); }
.svc[data-state="error"] .svc-dot { background: var(--red); }
.svc[data-state="error"] .svc-status { color: var(--red); }
.svc[data-state="offline"] .svc-name { color: var(--faint); }

@keyframes blink { 50% { opacity: 0.3; } }

/* ---- youtube hidden ---- */
.yt-hidden { position: fixed; width: 1px; height: 1px; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .rose-hero, .svc-dot { animation: none !important; }
}
