html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; 
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  cursor: pointer;
  background-color: #1a1a1a; /* Latar belakang gelap estetis untuk PC */
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  position: relative;
}

/* --- BAGIAN UTAMA YANG DIUBAH --- */
#game {
  width: 100%;
  height: 100%;
  display: block;
  background-color: #fff;
}
  
  /* Di Desktop: Membatasi ukuran maksimal agar tidak memenuhi monitor PC */
  max-width: 480px; 
  max-height: 850px; /* Standar rasio layar HP portrait modern */
  
  /* Menjaga aspek rasio game tetap konsisten (tidak melar/distorsi) */
  aspect-ratio: 9 / 16; 
  object-fit: contain; 
  
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Efek bayangan keren di PC */
}

#score {
  position: absolute;
  top: 40px; /* Diturunkan sedikit agar tidak mepet notch HP */
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5em;
  font-weight: 900;
  z-index: 10;
  color: #333;
}

#introduction {
  width: 80%;
  max-width: 250px;
  position: absolute;
  top: 35%; 
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
  font-size: 1em;
  text-align: center;
  transition: opacity 2s;
  z-index: 10;
  pointer-events: none; 
}

#restart {
  width: 100px;
  height: 100px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: white;
  background-color: red;
  border: none;
  font-weight: 700;
  font-size: 1.2em;
  display: none;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#perfect {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
  color: #ff3366;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 10;
}

/* Menyembunyikan elemen YouTube di semua perangkat agar fokus bermain */
#youtube,
#youtube-card {
  display: none !important;
}