html, body {
  touch-action: manipulation;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Press Start 2P', monospace, Arial, sans-serif;
  color: #ffcc00;
}

.screen {
  background: #000022;
  background-image:
    radial-gradient(circle, rgba(255,255,0,0.1) 2px, transparent 2px),
    linear-gradient(#001144 1px, transparent 1px),
    linear-gradient(90deg, #001144 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 40px 40px;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.code-container {
  z-index: 8;
}

h2 {
  color: #00ffff;
  margin-bottom: 1rem;
  text-shadow: 0 0 5px #00ffff, 0 0 15px #00ffff;
}

.blauw_spookje {
  position: absolute;
  bottom: 15%;
  left: 20px;
  width: 20%;
  height: auto;
  z-index: 1;
}

.geel_spookje {
  position: absolute;
  bottom: 40%;
  right: 5%;
  width: 20%;
  height: auto;
  z-index: 1;
  transform: scaleX(-1);
}

.arrow {
  position: absolute;
  width: 100px;
  height: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pac-shape {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fbff20, #ffcc00);
  clip-path: polygon(100% 0, 50% 50%, 100% 100%, 0% 100%, 0% 0%);
  transition: transform 0.1s ease;
}

.arrow:active .pac-shape {
  transform: scale(0.9);
  background: #fff000;
}

.up { 
  transform: rotate(-90deg); 
  top: 12%;
  left: 15%;
}
.down { 
  transform: rotate(90deg); 
  bottom: 10%;
  right: 15%;
}
.left { 
  transform: rotate(180deg); 
  top: 40%;
  left: 4%;
}
.right { 
  transform: rotate(0deg); 
  top: 40%;
  right: 4%;  
}

.tekst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: knipperen 2.2s infinite;
  color: white;
}

@keyframes knipperen {
  0%,50%,100% { opacity:1; }
  20%,75% { opacity:0; }
}

.score {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  color: white;
}

.hearts {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  height: 40px;
}

input {
  padding: 10px;
  font-size: 1rem;
  background: black;
  border: 2px solid #ffcc00;
  color: #ffcc00;
  text-align: center;
}

button {
  margin-top: 10px;
  padding: 8px 16px;
  background: #ffcc00;
  border: none;
  color: black;
  cursor: pointer;
  font-weight: bold;
}
