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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.player {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

/* White overlays to cover black sides of video */
.side-overlay {
  position: absolute;
  top: 0;
  height: 100%;
  width: calc((100vw - (100vh * 607 / 913)) / 2);
  background: #fff;
  z-index: 5;
  pointer-events: none;
}

.side-overlay.left {
  left: 0;
  width: calc((100vw - (100vh * 607 / 913)) / 2 + 2px);
}

.side-overlay.right {
  right: 0;
}

/* Click area overlay - constrained to video area */
.click-area {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vh * 607 / 913);
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

/* Left side controls */
.left-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 30;
}

/* Fullscreen button */
.fullscreen-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background:
    linear-gradient(to right, #43B6CD 0 35%, transparent 35% 65%, #43B6CD 65% 100%) top / 100% 3px no-repeat,
    linear-gradient(to right, #43B6CD 0 35%, transparent 35% 65%, #43B6CD 65% 100%) bottom / 100% 3px no-repeat,
    linear-gradient(to bottom, #43B6CD 0 35%, transparent 35% 65%, #43B6CD 65% 100%) left / 3px 100% no-repeat,
    linear-gradient(to bottom, #43B6CD 0 35%, transparent 35% 65%, #43B6CD 65% 100%) right / 3px 100% no-repeat,
    transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.8;
}

.fullscreen-btn:hover {
  opacity: 1;
}

/* Volume slider */
.volume-wrap {
  display: none;
  width: 120px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 10px;
}

.volume-wrap.show {
  display: block;
}

.volume-wrap input[type="range"] {
  width: 100%;
  accent-color: #43B6CD;
}

/* Right side controls */
.right-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
  z-index: 30;
}

/* Coin display */
.coin-display {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(67, 182, 205, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

.coin-display.show {
  display: flex;
}

.coin-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.coin-count {
  font-size: 24px;
  font-weight: 700;
  color: #43B6CD;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-width: 40px;
}

/* Next scene button */
.next-scene-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #43B6CD;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 15px rgba(67, 182, 205, 0.3);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  animation: btn-glow 2s ease-in-out infinite alternate;
}

.next-scene-btn .next-scene-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.next-scene-price {
  font-size: 18px;
  font-weight: 700;
  color: #43B6CD;
}

.next-scene-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(67, 182, 205, 0.5);
}

.next-scene-btn:active {
  transform: scale(0.95);
}

.next-scene-btn.hidden {
  display: none;
}

.next-scene-btn.locked {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(80%);
}

.next-scene-btn.locked:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(67, 182, 205, 0.3);
}

@keyframes btn-glow {
  from {
    box-shadow: 0 4px 15px rgba(67, 182, 205, 0.3);
  }

  to {
    box-shadow: 0 4px 25px rgba(67, 182, 205, 0.6), 0 0 10px rgba(67, 182, 205, 0.2);
  }
}

/* Multiplier indicator */
.multiplier-indicator {
  font-size: 18px;
  font-weight: 800;
  color: #43B6CD;
  text-shadow: 0 0 10px #43B6CD, 0 0 20px #43B6CD;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  display: none;
}

.multiplier-indicator.active {
  display: inline;
  opacity: 1;
  transform: scale(1);
  animation: pulse-glow 0.5s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  from {
    text-shadow: 0 0 10px #43B6CD, 0 0 20px #43B6CD;
  }

  to {
    text-shadow: 0 0 20px #43B6CD, 0 0 40px #43B6CD, 0 0 60px #43B6CD;
  }
}

/* Gum bar */
.gum-bar {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 500px;
  height: 20px;
  background: rgba(67, 182, 205, 0.2);
  border-radius: 10px;
  overflow: hidden;
  z-index: 30;
  display: none;
  border: 2px solid rgba(67, 182, 205, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gum-bar.show {
  display: block;
}

.gum-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg,
      #8AD4E2 0%,
      #43B6CD 25%,
      #fff 50%,
      #43B6CD 75%,
      #8AD4E2 100%);
  background-size: 200% 100%;
  border-radius: 8px;
  transition: width 0.1s ease-out;
  animation: shimmer 2s linear infinite;
}

.gum-fill.full {
  animation: shimmer 1s linear infinite, glow-pulse 0.3s ease-in-out infinite alternate;
  box-shadow: 0 0 15px #43B6CD, 0 0 30px #43B6CD;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

@keyframes glow-pulse {
  from {
    box-shadow: 0 0 10px #43B6CD, 0 0 20px #43B6CD;
  }

  to {
    box-shadow: 0 0 20px #43B6CD, 0 0 40px #43B6CD;
  }
}

/* Start hint */
.start-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 500;
  color: #43B6CD;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #43B6CD;
  border-radius: 12px;
  z-index: 50;
  pointer-events: none;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

.start-hint.hide {
  display: none;
}