:root {
  color-scheme: dark;
  --bg: #040816;
  --panel: rgba(9, 18, 40, 0.86);
  --panel-strong: rgba(14, 24, 49, 0.95);
  --text: #f4f7ff;
  --muted: #8ea0c4;
  --accent: #6ee7f9;
  --accent-2: #8b5cf6;
  --border: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(110, 231, 249, 0.14), transparent 20%), radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.16), transparent 22%), linear-gradient(180deg, #050a18 0%, #070f24 62%, #0b1836 100%);
  cursor: crosshair;
}

.background-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 25%),
    radial-gradient(circle, rgba(149, 217, 255, 0.16) 0%, transparent 18%),
    radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 20%);
  background-size: 3px 3px, 5px 5px, 12px 12px;
  background-position: 10% 20%, 40% 60%, 80% 15%;
  opacity: 0.55;
  filter: blur(0.8px);
}

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(110, 231, 249, 0.08), transparent 45%);
}

#web-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#rocket-trail {
  position: fixed;
  pointer-events: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #6ee7f9 50%, transparent 80%);
  opacity: 0;
  transform: translate(-50%, -50%);
  z-index: 1000;
  transition: width 0.15s ease, height 0.15s ease, filter 0.15s ease;
}

.desktop-shell { min-height: 100vh; padding: 28px; position: relative; z-index: 1; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.brand { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.toolbar-button { border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: var(--text); padding: 0.85rem 1rem; border-radius: 999px; font-weight: 600; cursor: pointer; transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.toolbar-button:hover { background: rgba(109, 229, 255, 0.14); transform: translateY(-1px); box-shadow: 0 10px 25px rgba(0,0,0,0.14); }
.status-pill { padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,0.05); color: var(--accent); font-size: 0.9rem; }
.feature-banner {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(110, 231, 249, 0.12);
  border: 1px solid rgba(110, 231, 249, 0.18);
  color: #e9f5ff;
  font-weight: 600;
  max-width: min(820px, 100%);
  line-height: 1.4;
  animation: fadeBanner 0.35s ease-out;
}
.feature-banner.hidden {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
@keyframes fadeBanner {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.desktop-area { position: relative; min-height: 70vh; }
.window {
  position: absolute;
  width: min(380px, 90vw);
  background: linear-gradient(180deg, rgba(6, 18, 50, 0.98), rgba(9, 20, 45, 0.92));
  border: 1px solid rgba(110, 231, 249, 0.18);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.window[data-window="clock"] { top: 24px; left: 24px; }
.window[data-window="launches"] { top: 120px; right: 48px; width: min(460px, 88vw); }
.window[data-window="notes"] { bottom: 24px; left: 30%; width: min(320px, 82vw); }
.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: grab;
  user-select: none;
}
.window-titlebar:active { cursor: grabbing; }
.window.dragging {
  transform: scale(1.01);
  border-color: rgba(110, 231, 249, 0.32);
}
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 8px; height: 8px; border-radius: 50%; display: inline-block; box-shadow: 0 0 10px rgba(255,255,255,0.08); }
.window-dots span:nth-child(1) { background: #ff8c69; }
.window-dots span:nth-child(2) { background: #ffd666; }
.window-dots span:nth-child(3) { background: #6de5ff; }
.clock-card, .launches-card, .notes-card { padding: 22px; }
.clock-card { display: flex; flex-direction: column; justify-content: center; min-height: 220px; }
.launches-card { max-height: 420px; overflow: auto; background: linear-gradient(180deg, rgba(8, 16, 43, 0.95), rgba(5, 10, 24, 0.95)); border-radius: 20px; border: 1px solid rgba(110, 231, 249, 0.08); }
.notes-card { line-height: 1.7; color: var(--muted); min-height: 170px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.eyebrow { margin: 0 0 8px; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.clock { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; letter-spacing: 0.08em; }
.date { margin-top: 10px; color: var(--muted); font-size: 1rem; }
.card-header { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 16px; }
.card-header h1 { margin: 0; font-size: 1.35rem; }
.status-text { color: var(--muted); font-size: 0.95rem; text-align: right; }
.launch-list { display: grid; gap: 12px; }
.launch-item { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--panel-strong); border: 1px solid rgba(255,255,255,0.08); }
.launch-name { font-weight: 600; font-size: 1.02rem; }
.launch-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 0.92rem; }
.launch-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.launch-link:hover { text-decoration: underline; }

.boost-active {
  background: radial-gradient(circle at center, rgba(110, 231, 249, 0.12), transparent 30%), linear-gradient(180deg, #020612 0%, #061024 100%);
}

.boost-active .window {
  border-color: rgba(110, 231, 249, 0.26);
}

@media (max-width: 900px) {
  .window[data-window="clock"] { top: 12px; left: 12px; }
  .window[data-window="launches"] { top: 280px; right: 12px; }
  .window[data-window="notes"] { bottom: 12px; left: 12px; width: calc(100% - 24px); }
}
