* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 20px;
  background: #000;
  font-family: 'Helvetica Neue', sans-serif;
}

#grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;              
  align-items: flex-start;
  line-height: 1;         
}

.year-btn, .trend-word {
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.year-btn {
  background: none;
  border: 1px solid white;
  color: white;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.8rem;      
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.year-btn:hover {
  background: white;
  color: black;
}

.trend-word {
  font-size: 0.75rem;     
  opacity: 1;
  transform: translateX(0);
  transition: none;
  padding: 1px 3px;      
  border-radius: 2px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.03); 
}

#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}

canvas {
  display: block;
}

#lipstick-mask {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px; 
  z-index: 5;  
  pointer-events: none;
}


#intro-overlay {
  position: fixed;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 13px;
  text-align: center;
  padding: 20px 16px;
  border-radius: 10px;
  z-index: 10;
  display: none;
  max-width: 175px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

#intro-overlay.fade-in {
  display: flex;
  opacity: 1;
}
