/* AdSense H5 Ads & Live HUD Styling for Pizza Tower */

#pizza-ads-ui {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: auto;
  font-family: 'Arial Black', Impact, 'Segoe UI Black', sans-serif;
  user-select: none;
}

/* Live In-Game Stats HUD */
#hud-stats-bar {
  display: flex;
  gap: 12px;
  background: rgba(15, 15, 15, 0.9);
  border: 2px solid #ffcc00;
  border-radius: 6px;
  padding: 6px 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
  font-size: 13px;
  text-shadow: 1px 1px 0 #000;
}

.hud-stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-label {
  color: #ffcc00;
  font-weight: 900;
}

.hud-value {
  color: #ffffff;
  font-weight: 900;
}

/* Actions Bar */
#hud-actions-bar {
  display: flex;
  gap: 8px;
}

.arcade-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  border: 3px solid #000;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-shadow: 2px 2px 0px #000, -1px -1px 0px #000;
  box-shadow: 0 4px 0 #000, 0 6px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.1s ease, filter 0.15s ease, box-shadow 0.1s ease;
  outline: none;
}

.arcade-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #000, 0 8px 16px rgba(0, 0, 0, 0.7);
}

.arcade-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #000, 0 3px 6px rgba(0, 0, 0, 0.5);
}

.arcade-btn-reward {
  background: linear-gradient(180deg, #ffcc00 0%, #ff8800 50%, #d83a00 100%);
}

.arcade-btn-reward .btn-icon {
  font-size: 15px;
  animation: gift-shake 2.5s infinite ease-in-out;
  display: inline-block;
}

@keyframes gift-shake {
  0%, 80%, 100% { transform: rotate(0deg); }
  85% { transform: rotate(-12deg) scale(1.15); }
  90% { transform: rotate(12deg) scale(1.15); }
  95% { transform: rotate(-8deg) scale(1.1); }
}

/* Toast Notifications */
.ad-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: #111;
  border: 3px solid #ffcc00;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Arial Black', Impact, sans-serif;
  font-size: 15px;
  text-shadow: 1px 1px 0 #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 18px rgba(255, 204, 0, 0.5);
  z-index: 10001;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ad-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.ad-toast.success {
  border-color: #00e676;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 18px rgba(0, 230, 118, 0.5);
}

.ad-toast.warning {
  border-color: #ff9100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 18px rgba(255, 145, 0, 0.5);
}

.ad-toast.error {
  border-color: #ff1744;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 18px rgba(255, 23, 68, 0.5);
}

.ad-toast.info {
  border-color: #00b0ff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 18px rgba(0, 176, 255, 0.5);
}

@media (max-width: 600px) {
  #hud-stats-bar {
    padding: 4px 8px;
    font-size: 11px;
  }
  .arcade-btn {
    padding: 6px 8px;
    font-size: 10px;
  }
}
