/* =====================================================
   CSS: FLORA & FAUNA VERSI BARU
   Game "Catch Falling Items"
   ===================================================== */
#screen-flora.ff2-container {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: transparent;
  color: #fff;
  user-select: none;
  touch-action: none;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
}

#ff2-sky {
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/backgrounds/bg-budaya.webp");
  background-size: cover;
  background-position: center;
  transition: background 1.2s ease;
  z-index: 0;
}

.ff2-bokeh {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), rgba(255,255,255,0) 70%);
  pointer-events: none;
}

#ff2-app {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.ff2-topbar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  font-weight: 700;
  z-index: 5;
}

.ff2-quit-btn {
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ff2-quit-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.3));
}

.ff2-btn-3d {
  background: linear-gradient(180deg, #ff9800, #f57c00);
  border: none;
  border-bottom: 5px solid #e65100;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  color: white;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.1s, border-bottom-width 0.1s, background 0.1s;
  text-shadow: 1px 2px 2px rgba(0,0,0,0.3);
  font-family: 'Baloo 2', sans-serif;
  padding: 0;
}
.ff2-btn-3d:active {
  transform: translateY(3px);
  border-bottom-width: 2px;
  background: linear-gradient(180deg, #f57c00, #ef6c00);
}

.ff2-pill {
  background: #ffffff;
  color: #333333;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

#ff2-lives {
  color: #ff8a80;
  letter-spacing: 2px;
}

#ff2-comboWrap {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 800;
  color: #ffeb3b;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 5;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
#ff2-comboWrap.show { opacity: 1; }

.ff2-falling {
  position: absolute;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  cursor: grab;
  touch-action: none;
  will-change: transform;
  z-index: 3;
}
.ff2-falling img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  pointer-events: none;
}
.ff2-falling:active { cursor: grabbing; }
.ff2-falling.dragging { z-index: 10; box-shadow: 0 14px 30px rgba(0,0,0,0.5); }

.ff2-basket {
  position: absolute;
  bottom: 0;
  width: 38%;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 14px;
  font-weight: 800;
  font-size: 15px;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  transition: transform 0.12s, filter 0.12s;
  z-index: 2;
}

#ff2-basketFlora {
  left: 0;
  background: linear-gradient(180deg, rgba(67,160,71,0) 0%, rgba(67,160,71,0.35) 60%, rgba(67,160,71,0.55) 100%);
  border: 2px solid rgba(105,240,174,0.5);
  border-bottom: none;
}

#ff2-basketFauna {
  right: 0;
  background: linear-gradient(180deg, rgba(251,140,0,0) 0%, rgba(251,140,0,0.35) 60%, rgba(251,140,0,0.55) 100%);
  border: 2px solid rgba(255,209,128,0.5);
  border-bottom: none;
}

.ff2-basket .ff2-big { font-size: 26px; margin-bottom: 2px; }
.ff2-basket.active { transform: scale(1.05); filter: brightness(1.4); }

#ff2-groundLine {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.06);
  z-index: 1;
}

.ff2-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 6;
}

.ff2-floatText {
  position: absolute;
  font-weight: 900;
  font-size: 20px;
  pointer-events: none;
  z-index: 8;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.ff2-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.ff2-popup {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  border: 4px solid #4a90e2;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 0 15px rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 90%;
  width: 400px;
  animation: ff2-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ff2-pop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.ff2-popup h1 { font-size: 28px; margin-bottom: 4px; color: #fff; }
.ff2-popup p { color: #e3f2fd; font-size: 14.5px; line-height: 1.55; max-width: 340px; }

.ff2-btn {
  margin-top: 18px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #ffeb3b, #ffc400);
  color: #3e2723;
  border: none;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255,196,0,0.4);
}
.ff2-btn:active { transform: scale(0.97); }

.ff2-legend {
  display: flex;
  gap: 24px;
  margin-top: 18px;
  font-size: 26px;
}
.ff2-legend .ff2-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #cfd8dc;
}
.ff2-popup .ff2-legend .ff2-row { color: #e3f2fd; }

.ff2-hidden { display: none !important; }

@keyframes ff2-shake {
  0%, 100% { transform: translate(0,0); }
  20% { transform: translate(-6px, 3px); }
  40% { transform: translate(6px, -3px); }
  60% { transform: translate(-4px, 2px); }
  80% { transform: translate(4px, -2px); }
}
.ff2-shake { animation: ff2-shake 0.35s; }