body {
  margin: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #000;
}

#instructions {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  cursor: pointer;
  z-index: 100;
}

/* UI Container - Skewed as per Reference */
#ui-container {
  position: absolute;
  top: 4vh;
  right: 4vw;
  width: 25vw;
  min-width: 180px;
  max-width: 320px;
  z-index: 50;
  pointer-events: none;
  transform: skewX(-15deg);
}

#ui-container::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -8px;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

#powerups-header {
  background: #4a4a4a;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 0.2rem 1rem;
  text-align: right;
  letter-spacing: 0.2rem;
}

#powerup-list {
  background: rgba(20, 20, 20, 0.85);
  padding: 0.8rem 1.2rem;
  border-top: 3px solid #000;
}

.powerup-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.5rem 0;
}

.powerup-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.powerup-name {
  color: #ff0000;
  font-weight: 900;
  font-style: italic;
  font-size: 1.2rem;
  text-transform: uppercase;
}

/* Progress bar under the name */
.powerup-progress-bg {
  width: 90%;
  height: 3px;
  background: rgba(255, 0, 0, 0.1);
}

.powerup-progress-bar {
  height: 100%;
  background: #ff0000;
  transition: width 0.1s linear;
}

.powerup-timer {
  color: #ff0000;
  font-family: "Courier New", Courier, monospace;
  font-weight: 900;
  font-size: 1.2rem;
  margin-top: -2px;
}
