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

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #050811;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

#robot-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #0a1128 0%, #030611 100%);
}

#faceCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Balita HUD - Tombol Besar, Ramah Sentuhan */
#toddler-hud {
  position: absolute;
  bottom: 24px;
  display: flex;
  gap: 14px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 18px;
  border-radius: 40px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.game-btn {
  background: linear-gradient(135deg, #ff7675, #fab1a0);
  border: none;
  color: #2d3436;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 22px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.game-btn:nth-child(2) { background: linear-gradient(135deg, #74b9ff, #a29bfe); color: #fff; }
.game-btn:nth-child(3) { background: linear-gradient(135deg, #ffeaa7, #fdcb6e); color: #2d3436; }
.game-btn:nth-child(4) { background: linear-gradient(135deg, #55efc4, #00b894); color: #2d3436; }
.game-btn:nth-child(5) { background: linear-gradient(135deg, #636e72, #2d3436); color: #dfe6e9; }

.game-btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.game-btn:active {
  transform: translateY(2px) scale(0.97);
}

/* Subtitle / Speech Bubble */
#speech-bubble {
  position: absolute;
  top: 8%;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(0, 229, 255, 0.4);
  z-index: 20;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  max-width: 80%;
  text-align: center;
}

#speech-bubble.hidden {
  opacity: 0;
  transform: translateY(-20px);
}

/* Panel Kontrol Dev / Ortu */
#debug-panel {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(10, 15, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 12px;
  z-index: 30;
  font-size: 0.85rem;
  color: #c0caf5;
  backdrop-filter: blur(8px);
}

.panel-header {
  font-weight: bold;
  margin-bottom: 8px;
  text-align: center;
  color: #7aa2f7;
}

.panel-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.panel-buttons button {
  background: #1e2238;
  color: #e0e0e0;
  border: 1px solid #3b4261;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
}

.panel-buttons button:hover {
  background: #2f3558;
}

.mic-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mic-toggle button {
  background: #f7768e;
  border: none;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.75rem;
}

#mic-status {
  font-size: 0.75rem;
  color: #9ece6a;
}
