/* Mine Royale — Styles */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #141a2a;
  --bg-card: #1a2235;
  --text-primary: #e8e8e8;
  --text-secondary: #8892a4;
  --accent: #f0b429;
  --accent-dim: #a67c1a;
  --energy-green: #34d399;
  --success: #22c55e;
  --danger: #ef4444;
  --ore-stone: #e8b84b;
  --ore-copper: #fbbf24;
  --ore-silver: #c88a6b;
  --ore-gold: #f09040;
  --ore-diamond: #e85d30;
  --ore-crystal: #dc2626;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--bg-primary);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  user-select: none;
}

#app {
  max-width: 420px;
  margin: 0 auto;
  padding: 8px 12px;
  padding-bottom: 20px;
}

/* Header */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  margin-bottom: 6px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

#player-name {
  font-weight: 600;
  font-size: 14px;
}

#pickaxe-badge {
  background: var(--accent);
  color: #000;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

#points-display {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

#points-display.bump {
  transform: scale(1.15);
}

/* Energy Bar */
#energy-bar-container {
  position: relative;
  height: 20px;
  background: var(--bg-secondary);
  border-radius: 10px;
  margin-bottom: 4px;
}

#energy-bar {
  height: 100%;
  background: linear-gradient(90deg, #059669, var(--energy-green));
  border-radius: 10px;
  width: 100%;
}

#energy-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Boost Bar */
#boost-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 6px 0;
  align-items: center;
}

.boost-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 5px 12px;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.boost-btn:active:not(:disabled) {
  background: var(--accent);
  color: #000;
}

.boost-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.boost-btn.exhausted {
  opacity: 0.3;
}

.boost-icon {
  font-size: 14px;
}

.boost-price {
  color: var(--accent);
  font-weight: 700;
}

.boost-label {
  font-size: 10px;
  color: var(--text-secondary);
}

#regen-timer {
  font-size: 10px;
  font-weight: 700;
  color: #f97316;
}

/* Streak Badge */
#streak-badge {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

#streak-bonus {
  color: var(--accent);
  font-weight: 600;
}

.hidden { display: none !important; }

/* Tabs */
#tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 3px;
}

.tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 7px 2px;
  cursor: pointer;
  border-radius: 8px;
}

.tab.active {
  color: #fff;
  background: var(--accent-dim);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ========== MINE TAB ========== */
#mine-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  position: relative;
  background: var(--bg-card);
  border-radius: 12px;
}

#mine-area > * {
  position: relative;
  z-index: 1;
}

/* Ore result display */
#ore-display {
  text-align: center;
  margin-bottom: 8px;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#last-ore-emoji {
  font-size: 40px;
  line-height: 1.2;
}

#last-ore-emoji.pop {
  transform: scale(1.4);
}

#last-ore-text {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

/* Combo counter */
#combo-container {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

#combo-container:not(.active) {
  opacity: 0;
}

#combo-container.active {
  opacity: 1;
}

#combo-count {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

#combo-count.pulse {
  transform: scale(1.3);
}

#combo-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#combo-container.heating #combo-count { color: var(--accent); }
#combo-container.heating #combo-label { color: var(--accent); }

#combo-container.fire #combo-count {
  color: #f97316;
  font-size: 22px;
}
#combo-container.fire #combo-label { color: #f97316; }

#combo-container.fever #combo-count {
  color: #ef4444;
  font-size: 26px;
}
#combo-container.fever #combo-label {
  color: #ef4444;
}

/* Mine zone */
#mine-zone {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mine button — invisible, just the pickaxe */
#mine-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 2;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

#mine-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* Pickaxe image */
#pickaxe-img {
  width: 120px;
  height: 120px;
  transform-origin: 70% 90%;
}

#pickaxe-img .pickaxe-png {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.upgrade-icon .pickaxe-png {
  width: 80px;
  height: 80px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Swing animation — transform only, no border-radius */
#pickaxe-img.swing {
  animation: pickaxeSwing 0.25s ease-out;
}

@keyframes pickaxeSwing {
  0%  { transform: rotate(0deg); }
  20% { transform: rotate(-10deg); }
  50% { transform: rotate(35deg); }
  75% { transform: rotate(20deg); }
  100% { transform: rotate(0deg); }
}

/* Impact sparks — no border-radius, use square dots */
#impact-sparks {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  height: 30px;
  pointer-events: none;
  z-index: 3;
}

.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  animation: sparkFly 0.35s ease-out forwards;
}

@keyframes sparkFly {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); }
}

/* Floating point numbers — no colored text-shadow, no border-radius */
#tap-feedback {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.point-float {
  position: absolute;
  font-weight: 800;
  animation: floatUp 0.9s ease-out forwards;
  pointer-events: none;
}

.point-float.stone   { font-size: 14px; color: var(--ore-stone); }
.point-float.copper  { font-size: 15px; color: var(--ore-copper); }
.point-float.silver  { font-size: 17px; color: var(--ore-silver); }
.point-float.gold    { font-size: 22px; color: var(--ore-gold); }
.point-float.diamond { font-size: 28px; color: var(--ore-diamond); }
.point-float.crystal { font-size: 34px; color: var(--ore-crystal); }

@keyframes floatUp {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-90px) scale(0.7); }
}

/* Ore history feed — no overflow:hidden, just clip height */
#ore-history {
  width: 100%;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
  max-height: 52px;
  clip-path: inset(0);
}

.ore-pip {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  padding: 1px;
}

.ore-pip-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ore-pip.stone  { background: transparent; }
.ore-pip.copper { background: transparent; }
.ore-pip.silver { background: transparent; }
.ore-pip.gold   { background: transparent; }
.ore-pip.diamond { background: transparent; }
.ore-pip.crystal { background: transparent; }

/* ========== DAILY MISSIONS ========== */
#missions-container {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 4px;
}

#missions-header {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-align: center;
}

#missions-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mission-row {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 8px 10px;
  gap: 10px;
}

.mission-row.completed {
  opacity: 0.5;
}

.mission-info {
  flex: 1;
  min-width: 0;
}

.mission-desc {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.mission-bar {
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
}

.mission-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 2px;
}

.mission-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 50px;
}

.mission-reward {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}

.mission-progress-text {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 600;
}

.mission-claim {
  background: var(--success);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.mission-claim:active {
  transform: scale(0.95);
}

.mission-status.claimed {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Session Stats + Progress Bar */
#session-stats {
  display: flex;
  justify-content: space-around;
  background: var(--bg-card);
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
  width: 100%;
}

.stat { text-align: center; }

.stat-label {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1px;
}

/* Upgrade progress bar */
#upgrade-progress-container {
  width: 100%;
  margin-top: 8px;
}

#upgrade-progress-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3px;
}

#upgrade-progress-bar {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
}

#upgrade-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 3px;
  width: 0%;
}

/* ========== UPGRADES TAB ========== */
#upgrade-panel {
  text-align: center;
  padding: 12px 0;
}

#current-pickaxe {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

#upgrade-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.upgrade-arrow {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.8;
}

.upgrade-icon {
  display: flex;
  justify-content: center;
}

.upgrade-label { font-size: 14px; font-weight: 600; }

.upgrade-multiplier {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-secondary);
  margin-top: 2px;
}

#next-multiplier {
  color: var(--accent);
}

#multiplier-arrow {
  color: var(--text-secondary);
  opacity: 0.5;
  font-size: 22px;
}

#upgrade-info {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  text-align: left;
}

#upgrade-info > div {
  padding: 3px 0;
  font-size: 14px;
}

#upgrade-fail-warning {
  color: var(--danger);
  font-size: 12px;
  margin-top: 2px;
}

/* Upgrade button */
#upgrade-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  color: #000;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 1px;
  position: relative;
}

#upgrade-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Upgrade suspense overlay */
#upgrade-suspense {
  display: none;
}

#upgrade-suspense.active {
  display: flex;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 100;
}

#suspense-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

#suspense-bar {
  width: 200px;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  margin-bottom: 20px;
}

#suspense-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  width: 0%;
}

#suspense-result {
  font-size: 32px;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.5);
}

#suspense-result.reveal {
  opacity: 1;
  transform: scale(1);
}

#suspense-result.success { color: var(--success); }
#suspense-result.failure { color: var(--danger); }

#suspense-detail {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  opacity: 0;
}

#suspense-detail.reveal { opacity: 1; }

#upgrade-result { display: none; }

/* ========== LEADERBOARD TAB ========== */
#leaderboard-summary {
  display: flex;
  justify-content: space-around;
  background: var(--bg-card);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}

.lb-summary-item { text-align: center; }

.lb-summary-label {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lb-summary-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  margin-top: 2px;
}

#leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lb-row {
  display: flex;
  align-items: center;
  padding: 9px 10px;
  background: var(--bg-card);
  border-radius: 8px;
}

.lb-rank {
  width: 30px;
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 13px;
}

.lb-rank.top-3 { color: var(--accent); }

.lb-name { flex: 1; font-weight: 600; font-size: 13px; }

.lb-level {
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  color: var(--accent);
  margin-right: 10px;
}

.lb-score { font-weight: 700; font-size: 13px; }

/* ========== FRIENDS TAB ========== */
#friends-panel { padding: 8px 0; }

#friends-panel h2 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--accent);
}

#referral-link-box {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.referral-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

#referral-link-display {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  text-align: center;
}

#referral-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

#referral-actions .action-btn {
  flex: 1;
  margin-top: 0;
  padding: 10px;
  font-size: 13px;
}

#referral-actions .action-btn.secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--accent-dim);
}

#referral-link {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#referral-reward-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#referral-reward-info span {
  font-size: 11px;
  color: var(--text-secondary);
  padding-left: 8px;
  border-left: 2px solid var(--accent-dim);
}

#referral-stats {
  display: flex;
  justify-content: space-around;
  background: var(--bg-card);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
}

/* Referral list */
#referral-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ref-row {
  display: flex;
  align-items: center;
  padding: 9px 10px;
  background: var(--bg-card);
  border-radius: 8px;
  gap: 8px;
}

.ref-name {
  flex: 1;
  font-weight: 600;
  font-size: 13px;
}

.ref-level {
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  color: var(--accent);
}

.ref-earnings {
  font-size: 12px;
  color: var(--text-secondary);
}

.ref-badge {
  background: var(--success);
  color: #000;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
}

.empty-state {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: 10px;
}

/* ========== PAYOUT TAB ========== */
#payout-panel { padding: 8px 0; }

#payout-panel h2 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--accent);
}

#payout-panel h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  margin-top: 14px;
}

#payout-info p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.payout-stat {
  display: flex;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 10px;
}

#payout-weekly { font-weight: 700; color: var(--accent); }

/* Payout overview */
#payout-overview {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.payout-overview-row {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.payout-overview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.po-label {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.po-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

#payout-bracket {
  text-align: center;
  margin-top: 8px;
}

.bracket-badge {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.bracket-hint {
  font-size: 11px;
  color: var(--text-secondary);
  font-style: italic;
}

/* Wallet inputs */
#wallet-section {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 4px;
}

.wallet-input-group {
  margin-bottom: 8px;
}

.wallet-input-group label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 3px;
  font-weight: 600;
}

.wallet-input-group input {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-secondary);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: monospace;
  outline: none;
}

.wallet-input-group input:focus {
  border-color: var(--accent-dim);
}

.wallet-input-group input::placeholder {
  color: var(--text-secondary);
  opacity: 0.5;
}

/* Tier selection */
#tier-selection {
  margin-bottom: 10px;
}

#payout-tiers {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.tier-option {
  cursor: pointer;
  display: block;
}

.tier-option input[type="radio"] {
  display: none;
}

.tier {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 10px;
  border: 2px solid transparent;
}

.tier-option input[type="radio"]:checked + .tier {
  border-color: var(--accent);
  background: rgba(240, 180, 41, 0.05);
}

.tier.highlighted {
  border-color: var(--accent-dim);
}

.tier-name { font-weight: 700; font-size: 14px; }
.tier-rate { font-size: 18px; font-weight: 800; color: var(--accent); margin: 1px 0; }
.tier-desc { font-size: 11px; color: var(--text-secondary); }

/* Payout history */
#payout-history-section {
  margin-top: 14px;
}

#payout-history-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.history-row {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  background: var(--bg-card);
  border-radius: 8px;
  gap: 8px;
}

.history-week {
  font-weight: 700;
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 50px;
}

.history-tier {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
}

.history-pts {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

.history-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 6px;
}

.history-status.paid {
  background: var(--success);
  color: #000;
}

.history-status.pending {
  background: var(--accent-dim);
  color: #000;
}

/* Action buttons */
.action-btn {
  width: 100%;
  padding: 10px;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}

.action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.action-btn:active {
  opacity: 0.8;
}

/* Status messages */
.status-msg {
  font-size: 12px;
  text-align: center;
  margin-top: 6px;
  min-height: 16px;
}

.status-msg.success { color: var(--success); }
.status-msg.error { color: var(--danger); }

.payout-note {
  font-size: 10px;
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
  margin-top: 10px;
}

/* ========== ANIMATIONS ========== */
/* Only simple transform animations on elements WITHOUT border-radius */
@keyframes pickaxeSwing {
  0%  { transform: rotate(0deg); }
  20% { transform: rotate(-10deg); }
  50% { transform: rotate(35deg); }
  75% { transform: rotate(20deg); }
  100% { transform: rotate(0deg); }
}

@keyframes sparkFly {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); }
}

@keyframes floatUp {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-90px) scale(0.7); }
}
