@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --glass: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-hover: rgba(255, 255, 255, 0.11);
  --accent: #00e5b0;
  --accent2: #7c6cfa;
  --text: #f0f0f0;
  --muted: rgba(240, 240, 240, 0.45);
  --danger: #ff5f57;
  --warn: #ffbd2e;
  --ok: #28c840;
  --font: 'Syne', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 14px;
  --titlebar: 36px;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  color: var(--text);
  user-select: none;
  background: #060612;
}

/* ── Background ──────────────────────────────────── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-layer canvas {
  width: 100%;
  height: 100%;
}

/* ── Desktop ─────────────────────────────────────── */
#desktop {
  position: fixed;
  inset: 0;
  z-index: 1;
  padding-bottom: 80px;
}

/* ── Desktop clock widget ────────────────────────── */
#desktop-clock {
  position: absolute;
  top: 28px;
  right: 36px;
  text-align: right;
  pointer-events: none;
}

#desktop-clock .dc-time {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 40%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#desktop-clock .dc-date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Dock ────────────────────────────────────────── */
#dock {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-item:hover {
  transform: translateY(-10px) scale(1.15);
}

.dock-item:active {
  transform: translateY(-6px) scale(1.05);
}

.dock-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.dock-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), transparent 60%);
}

.dock-label {
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.15s;
}

.dock-item:hover .dock-label {
  opacity: 1;
}

.dock-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: -2px;
  display: none;
}

.dock-item.open .dock-dot {
  display: block;
}

/* ── Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

@keyframes winOpen {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
