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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a103c;
  font-family: 'Fredoka', 'Comic Sans MS', 'Chalkboard SE', system-ui, -apple-system, sans-serif;
  color: #fff;
}

.stage-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: none;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: none;
}

/* Top-Right Icon-Only Control Pod */
.control-pod {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(26, 14, 58, 0.78);
  backdrop-filter: blur(10px);
  border: 2.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: auto;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

body.toddler-locked .control-pod {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}

.pod-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 2px 6px 2px 2px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.15s ease;
}

.pod-item:hover {
  background: rgba(255, 255, 255, 0.16);
}

.pod-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #efeaff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.14s ease, color 0.14s ease;
}

.pod-icon-btn:hover {
  transform: scale(1.08);
  color: #ffe066;
}

.mute-slash.hidden {
  display: none;
}

.pod-slider {
  width: 58px;
  height: 5px;
  accent-color: #06d6a0;
  cursor: pointer;
  margin-right: 4px;
}

.pod-lock-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #b8fff0;
  background: linear-gradient(135deg, #06d6a0 0%, #00b4d8 100%);
  color: #072620;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(6, 214, 160, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pod-lock-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(6, 214, 160, 0.65);
}

/* Re-lock Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 9, 44, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  cursor: pointer;
}

.overlay.hidden {
  display: none;
}

.overlay-card {
  background: linear-gradient(180deg, #39207c 0%, #241252 100%);
  border: 4px solid #ffbe0b;
  border-radius: 32px;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
}

.giant-play-btn {
  width: 110px;
  height: 68px;
  color: #072a20;
  background: linear-gradient(135deg, #06d6a0 0%, #52f2c2 100%);
  border: 3.5px solid #fff;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(6, 214, 160, 0.45);
  transition: transform 0.15s ease;
}

.giant-play-btn:hover {
  transform: scale(1.06);
}

.parent-link-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #d5c7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.parent-link-btn:hover {
  background: rgba(255, 77, 141, 0.35);
  color: #fff;
}
