html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: linear-gradient(180deg, #aee7ff 0%, #ffd9ec 100%);
  overflow: hidden;
  font-family: "Trebuchet MS", "Comic Sans MS", "Segoe UI", sans-serif;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

#stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game {
  display: block;
  background: #bfe9ff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(80, 60, 120, 0.25);
}

#loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(180deg, #aee7ff 0%, #ffd9ec 100%);
  transition: opacity 0.4s ease;
  z-index: 10;
}
#loading.hidden { opacity: 0; pointer-events: none; }

#loading-title {
  font-size: 42px;
  font-weight: bold;
  color: #ff7eb6;
  text-shadow: 0 3px 0 #fff, 0 6px 12px rgba(255, 126, 182, 0.4);
  letter-spacing: 1px;
}

#loading-bar {
  width: 240px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 2px 6px rgba(120, 90, 140, 0.25);
  overflow: hidden;
}
#loading-fill {
  width: 0%;
  height: 100%;
  border-radius: 11px;
  background: linear-gradient(90deg, #7ed6ff, #ff9ecd);
  transition: width 0.15s ease;
}
#loading-text { color: #7a6a8a; font-size: 15px; }

#touch-ui { position: absolute; inset: 0; pointer-events: none; z-index: 5; display: none; }
#touch-ui.visible { display: block; }
#touch-ui button {
  position: absolute;
  pointer-events: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  font-size: 26px;
  color: #fff;
  background: rgba(255, 126, 182, 0.85);
  box-shadow: 0 4px 10px rgba(120, 60, 100, 0.3);
  transition: transform 0.08s ease;
}
#touch-ui button:active { transform: scale(0.86); }
#btn-special { right: 18px; bottom: 24px; }
#btn-mute { right: 18px; top: 18px; width: 44px; height: 44px; font-size: 18px; background: rgba(126, 178, 255, 0.85); }
