/* Leaf Catcher */
.hud .btn { min-height: 40px; padding: 6px 14px; }
.lives { display: inline-flex; gap: 2px; vertical-align: middle; }
.lives .leaf-icon { width: 18px; height: 18px; }
.lives .lost { opacity: .2; filter: grayscale(1); }

.stage {
  --label-h: 58px;
  position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  height: clamp(440px, 64vh, 620px);
  border-radius: 18px; border: 1px solid var(--border);
  background: linear-gradient(180deg, #cfe0f7 0%, #e8f0fb 55%, #f6eedb 100%);
  box-shadow: var(--shadow);
}
.sun { position: absolute; top: 26px; right: 34px; width: 64px; height: 64px; border-radius: 50%; background: #ffd66b; box-shadow: 0 0 0 14px rgba(255, 214, 107, .25); }
.hill { position: absolute; left: -10%; right: -10%; bottom: calc(var(--label-h) - 30px); height: 120px; background: #e9d9ae; border-radius: 50% 50% 0 0; }

.lanes { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.lane { position: relative; border-left: 2px dashed rgba(33, 26, 82, .12); transition: background .15s; }
.lane:first-child { border-left: 0; }
.lane.active { background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--c) 18%, transparent) 100%); }
.lane-label {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--label-h);
  background: var(--cb); border-top: 4px solid var(--c);
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.lane-label .lvl { background: #fff; font-size: .8rem; }
.lane-label .short { display: none; }
@media (max-width: 760px) {
  .lane-label .full { display: none; }
  .lane-label .short { display: inline-flex; }
  .lane-label .lvl {
    flex-direction: column; gap: 1px; padding: 3px 5px; border-radius: 10px;
    font-size: .66rem; line-height: 1.1; text-align: center; white-space: normal;
  }
  .lane-label .lvl .n { width: 20px; height: 20px; font-size: .72rem; }
}

.player {
  position: absolute; bottom: calc(var(--label-h) - 6px); left: 12.5%;
  width: min(22%, 120px); transform: translateX(-50%);
  transition: left .14s ease-out; z-index: 2; pointer-events: none;
}

.leaf { position: absolute; top: 0; left: 50%; width: min(300px, 78%); z-index: 3; pointer-events: none; will-change: transform; }
.leaf-body {
  display: flex; gap: 10px; align-items: center;
  background: #fff; border: 2px solid #5c9a3c; border-radius: 22px 6px 22px 6px;
  padding: 10px 14px; box-shadow: 0 8px 18px rgba(33, 26, 82, .16);
  font-weight: 650; line-height: 1.3; font-size: clamp(.9rem, .5vw + .8rem, 1.02rem);
}
.leaf-body .leaf-icon { width: 26px; height: 26px; }
.leaf-body .mixed-tag { display: block; font-size: .65rem; font-weight: 800; letter-spacing: .06em; color: var(--blue-600); }
.leaf-body.gulp { animation: gulp .35s ease forwards; }
.leaf-body.wilt { animation: wilt .45s ease forwards; }
@keyframes gulp { to { transform: scale(.15); opacity: 0; } }
@keyframes wilt { to { transform: translateY(30px) rotate(12deg); opacity: .15; filter: grayscale(1); } }

.pop { position: absolute; z-index: 4; font-weight: 800; font-size: 1.3rem; color: var(--good); pointer-events: none; opacity: 0; transform: translateX(-50%); }
.pop.show { animation: pop .8s ease forwards; }
@keyframes pop { 0% { opacity: 0; translate: 0 10px; } 20% { opacity: 1; } 100% { opacity: 0; translate: 0 -40px; } }

.overlay { position: absolute; inset: 0; z-index: 10; background: rgba(244, 246, 251, .82); display: grid; place-items: center; padding: 16px; }
.overlay-card { max-width: 440px; width: 100%; }
.overlay-card h2 { margin-top: 0; }

.controls { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.controls .btn { min-width: 64px; min-height: 52px; font-size: 1.1rem; }
.ticker { text-align: center; color: var(--muted); min-height: 1.5em; margin: 10px 0 0; }
