#desktop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 900px 700px at 15% 20%, rgba(139,122,168,0.20), transparent 60%),
    radial-gradient(ellipse 800px 700px at 85% 75%, rgba(217,165,160,0.16), transparent 60%),
    radial-gradient(ellipse 1000px 900px at 50% 100%, rgba(201,168,117,0.10), transparent 65%),
    var(--bg);
  animation: driftBg 40s ease-in-out infinite alternate;
}

@keyframes driftBg {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 40px -30px, -30px 20px, 0 -20px; }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.05;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Menu bar */
.menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: rgba(18,15,24,0.35);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.menubar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
  text-transform: uppercase;
  font-weight: 500;
}

.menubar .brand .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.menubar .status {
  color: var(--muted);
  display: flex;
  gap: 18px;
}

/* Hero */
.hero {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 5;
  pointer-events: none;
  padding-top: 20px;
  perspective: 1000px;
}

.orb-wrap {
  pointer-events: auto;
  width: 230px;
  height: 230px;
  margin-bottom: 34px;
  transform-style: preserve-3d;
  transition: transform .15s ease-out;
}

.orb-shell {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 90px 6px rgba(201,168,117,0.22), inset 18px 18px 40px rgba(255,255,255,0.10), inset -22px -22px 55px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
}

.orb-core {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #c9a875, #d9a5a0 30%, #6f5f92 55%, #c9a875 80%, #d9a5a0);
  animation: spinOrb 26s linear infinite;
  filter: blur(0.5px);
}

.orb-shine {
  position: absolute;
  top: 8%;
  left: 14%;
  width: 46%;
  height: 34%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.65), transparent 70%);
  filter: blur(2px);
}

@keyframes spinOrb { to { transform: rotate(360deg); } }

.hero-text {
  text-align: center;
  pointer-events: auto;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1.name {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(40px, 7vw, 86px);
  margin: 0;
  line-height: 1;
  color: var(--ivory);
  letter-spacing: -0.01em;
}

h1.name em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-bright);
}

.tagline {
  max-width: 480px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
}

.hint {
  margin-top: 30px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.15em;
  opacity: 0.75;
  text-transform: uppercase;
}

/* Desktop icons */
.icons {
  position: absolute;
  inset: 0;
  z-index: 6;
}

.icon {
  position: absolute;
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  user-select: none;
  touch-action: none;
}

.icon:hover, .icon:focus-visible {
  background: rgba(255,255,255,0.045);
}

.icon .glyph {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
}

.icon .glyph svg {
  width: 100%;
  height: 100%;
}

.icon .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ivory);
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  letter-spacing: 0.02em;
}

.icon.dragging {
  opacity: 0.8;
  z-index: 600;
}

.credit {
  position: absolute;
  bottom: 14px;
  right: 22px;
  z-index: 40;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  opacity: 0.5;
  letter-spacing: 0.04em;
}