#faceVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  z-index: 1;
  display: none;
  border-radius: 10px;
}
#gameCanvas {
  position: relative;
  z-index: 2;
}
.game-hud {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
}
.stage-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
}
.stage-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.reaction-consent {
  width: 100%;
  max-width: 340px;
  position: relative;
  text-align: center;
  margin: 14px auto 8px;
}
.stage-overlay .reaction-enable {
  margin-top: 8px;
  min-height: 46px;
  width: 100%;
  background: #36442e;
  border: 1px solid #7e9069;
  color: #f4f0e6;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.stage-overlay .reaction-enable:hover {
  background: #465a3d;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.stage-overlay .reaction-enable:disabled {
  opacity: 0.7;
  cursor: wait;
}
#cameraStatus {
  font-size: 12px;
  line-height: 1.45;
  margin-top: 9px;
  color: #4a5a41;
}

.stage-overlay.balloon-intro h3 {
  font-size: 34px;
  margin-top: 8px !important;
}
.stage-overlay.balloon-intro > p {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 9px;
}
.stage-overlay.balloon-intro > #startGame {
  margin-top: 14px;
  min-height: 46px;
  font-size: 15px;
  font-weight: 800;
}
.stage-overlay.balloon-intro > .result-small {
  margin-top: 8px;
}

.reaction-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 9px;
  gap: 5px;
  font-size: 12px;
  color: #46563d;
}
.stage-overlay .reaction-result .btn {
  margin: 0;
  min-height: 42px;
  font-size: 13px;
}
.stage-overlay:has(.reaction-result) {
  padding: 16px 12px;
}
.stage-overlay:has(.reaction-result) .result-score {
  font-size: 66px;
  margin-top: 10px;
}
.stage-overlay:has(.reaction-result) h3 {
  font-size: 30px;
  margin-top: 8px !important;
}
.stage-overlay:has(.reaction-result) .result-reward {
  margin-top: 10px;
  font-size: 12px;
  padding: 7px 10px;
}
.stage-overlay:has(.reaction-result) .result-small {
  margin-top: 8px;
}
.stage-overlay:has(.reaction-result) .result-actions .btn {
  font-size: 12px;
  padding: 10px 12px;
  margin-top: 10px;
  gap: 6px;
}
.stage-overlay:has(.reaction-result) .result-bottom {
  margin-top: 4px;
}
.reaction-playback {
  display: block;
  width: min(100%, 260px);
  height: auto;
  max-height: 460px;
  aspect-ratio: 9/16;
  object-fit: contain;
  margin: 18px auto;
  background: #172319;
  border-radius: 12px;
}
.reaction-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.reaction-share-actions .btn {
  flex: 1;
}
.danger {
  color: #f5c0aa;
  border-color: #a06d54;
}
@media (max-width: 720px) {
  .stage-overlay.balloon-intro {
    padding: 18px;
  }
  .stage-overlay.balloon-intro h3 {
    font-size: 29px;
  }
  .stage-overlay:has(.reaction-result) .result-score {
    font-size: 62px;
  }
  .reaction-playback {
    max-height: 390px;
  }
}
