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

html, body {
  height: 100%;
  overflow: hidden;
  background: #0a0a0f;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
}

/* Starry sky canvas - behind everything */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Main content - centered */
main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 120px);
  padding: 20px;
}

/* Title row with tumbleweed and ASCII */
#title-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Tumbleweed mascot */
#tumbleweed {
  font-size: clamp(0.5rem, 1.5vw, 1rem);
  line-height: 1.2;
  white-space: pre;
  color: #b8860b;
}

#tumbleweed.hidden {
  visibility: hidden;
}

#tumbleweed.pulsing {
  animation: tumbleweedPulse 0.4s ease-out;
}

@keyframes tumbleweedPulse {
  0% { color: #f0c040; text-shadow: 0 0 20px rgba(240, 192, 64, 0.8); }
  100% { color: #b8860b; text-shadow: none; }
}

/* ASCII art with gold gradient */
#ascii {
  font-size: clamp(0.4rem, 1.5vw, 1rem);
  line-height: 1.2;
  text-align: center;
  white-space: pre;
  background: linear-gradient(180deg, #f0c040 0%, #c49a30 50%, #4a3010 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(240, 192, 64, 0.3);
  transition: opacity 500ms ease-in-out;
}

#ascii.hidden {
  opacity: 0;
}

/* Install command */
#install {
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  position: relative;
}

#install.hidden {
  visibility: hidden;
  pointer-events: none;
}

#install.visible {
  background: rgba(26, 26, 26, 0.8);
}

#install:hover {
  background: rgba(40, 40, 40, 0.9);
}

#install code {
  color: #888;
  font-size: 1rem;
}

#install:hover code {
  color: #aaa;
}

#copied {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #2a2a2a;
  color: #5fa33a;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

#copied.show {
  opacity: 1;
}

/* GitHub link */
#github-link {
  display: block;
  margin-top: 2rem;
  cursor: pointer;
}

#github-link.hidden {
  visibility: hidden;
  pointer-events: none;
}


#github-logo {
  display: block;
  width: 85px;
  height: 85px;
}

/* Landscape footer */
#landscape {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 120px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-size: clamp(0.6rem, 1.2vw, 0.9rem);
  line-height: 1;
  overflow: hidden;
}

.landscape-row {
  white-space: pre;
  width: 100%;
  overflow: hidden;
}

.cactus {
  color: #4a9030;
}

.ground {
  color: #C2B280;
}

.ground-dim {
  color: #C2B280;
  opacity: 0.4;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  #title-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  #tumbleweed {
    font-size: 0.4rem;
  }

  #ascii {
    font-size: 0.35rem;
  }

  #install {
    padding: 0.5rem 1rem;
  }

  #install code {
    font-size: 0.85rem;
  }

  #landscape {
    height: 80px;
  }
}
