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


html, body {
  background: linear-gradient(135deg, #eef2ff, #e0f2fe, #f3e8ff);
  font-family: "Handjet", cursive;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}


header {
  margin-top: 20px;
}

header h1 {
  font-size: 3.5em;
  color: #7c3aed;
  text-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}


#hud {
  margin-top: 10px;
  font-size: 1.8em;
  font-weight: 900;
  color: #5b21b6;
  letter-spacing: 2px;
}


#gameLayout {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  align-items: flex-start;
}



#instructions {
  width: 420px;
  min-height: 450px; 
  padding: 25px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffffdd, #f3e8ff);
  border: 4px solid #7c3aed;
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.25);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#instructions h2 {
  font-size: 2em;
  color: #6d28d9;
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 15px;
}


.instruction-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #ffffffaa;
  padding: 15px;
  border-radius: 14px;
  border: 2px solid #c4b5fd;
  font-size: 1.2em;
  box-shadow: 0 5px 10px rgba(0,0,0,0.05);
  transition: 0.2s ease;
}

.instruction-box:hover {
  transform: translateX(6px);
  background: #f5f3ff;
}

.instruction-box span {
  font-size: 1.6em;
}


.instruction-footer {
  text-align: center;
  font-size: 1.1em;
  font-weight: bold;
  color: #5b21b6;
}



#playSpace {
  width: 900px;
  height: 450px;
  background: linear-gradient(135deg, #c7d2fe, #a5b4fc, #f0abfc);
  border: 5px solid #7c3aed;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 25px rgba(124, 58, 237, 0.4),
    inset 0 0 60px rgba(255, 255, 255, 0.2);
}


.piece {
  width: 42px;
  height: 42px;
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


.hero {
  filter: drop-shadow(0 0 10px #ec4899) brightness(1.2);
}


.villain {
  filter: drop-shadow(0 0 10px #ef4444) brightness(1.2);
}


.feed {
  filter: drop-shadow(0 0 12px #1bb553) brightness(1.4);
}


.obstacle {
  filter: drop-shadow(0 0 8px #6366f1);
}