:root {
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #ffd1dc 0%, #ffc0cb 50%, #ffb6c1 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(10px + var(--safe-top)) 10px calc(10px + var(--safe-bottom)) 10px;
  animation: bgPulse 10s ease-in-out infinite alternate;
  touch-action: none;
}

@keyframes bgPulse {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(10deg); }
}

.game-container {
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(255, 105, 135, 0.3);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 182, 193, 0.3);
}

.game-container::before {
  content: "💕";
  position: absolute;
  top: -30px;
  right: -30px;
  font-size: 140px;
  opacity: 0.12;
  pointer-events: none;
}

.header {
  text-align: center;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-wrap { text-align: left; }

.title {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(45deg, #ff4d6d, #ff8fab);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.subtitle {
  font-size: 11px;
  color: #c9184a;
  opacity: 0.7;
  margin-top: 2px;
}

.love-days {
  font-size: 10px;
  background: rgba(255, 77, 109, 0.1);
  color: #ff4d6d;
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
}

.level-badge {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #8b4513;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(255, 170, 0, 0.4);
}

.stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #ffe5ec, #fff0f3);
  border-radius: 16px;
  padding: 8px 14px;
  margin-bottom: 10px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.stat-label { font-size: 10px; color: #c9184a; font-weight: 600; }
.stat-value { font-size: 17px; font-weight: 900; color: #ff4d6d; }

.health-section { margin-bottom: 8px; }

.health-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #c9184a;
  font-weight: 600;
  margin-bottom: 4px;
}

.health-bar {
  height: 22px;
  background: #ffe5ec;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.health-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff4d6d, #ff8fab);
  border-radius: 11px;
  transition: width 0.3s ease;
  width: 100%;
  box-shadow: 0 0 10px rgba(255, 77, 109, 0.5);
}

.energy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.energy-bar {
  flex: 1;
  height: 18px;
  background: #e0e7ff;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.energy-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #ef4444);
  border-radius: 9px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.energy-text { font-size: 11px; color: #c9184a; font-weight: 700; min-width: 36px; text-align: right; }

.battle-area {
  position: relative;
  height: 260px;
  background: linear-gradient(180deg, #fff0f3 0%, #ffe5ec 100%);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: inset 0 4px 12px rgba(255, 105, 135, 0.15);
}

.bf-wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.1s, left 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), top 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 5;
}

.bf-wrapper:active { transform: scale(0.95); }

.bf-face {
  font-size: 100px;
  line-height: 1;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
  transition: all 0.15s;
}

.bf-face.hit { animation: shake 0.25s ease-in-out; }
.bf-face.ko { animation: ko 0.6s ease-out forwards; }
.bf-face.dodge { animation: dodge 0.3s ease-out; }
.bf-face.block { animation: block 0.3s ease-out; }

.modal {
  background: white;
  padding: 24px;
  border-radius: 28px;
  width: 88%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.modal input {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 2px solid #ffccd5;
  outline: none;
  font-size: 16px;
}

.modal-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 14px;
  font-weight: 700;
  width: 100%;
}

@media (max-width: 420px) {
  .game-container { padding: 12px; border-radius: 24px; }
  .title { font-size: 19px; }
  .stat-value { font-size: 15px; }
  .bf-face { font-size: 85px; }
  .battle-area { height: 240px; }
  .weapon-btn { height: 50px; font-size: 24px; }
  .skill-btn { padding: 8px; font-size: 12px; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(-8px) rotate(-5deg); }
  40% { transform: translateX(8px) rotate(5deg); }
  60% { transform: translateX(-6px) rotate(-3deg); }
  80% { transform: translateX(6px) rotate(3deg); }
}
@keyframes ko {
  0% { transform: rotate(0) translateY(0); }
  100% { transform: rotate(90deg) translateY(40px); opacity: 0.6; }
}
@keyframes dodge {
  0% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(60px); opacity: 0.3; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes block {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); filter: brightness(1.5); }
  100% { transform: scale(1); }
}

.bf-shadow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 16px;
  background: rgba(0,0,0,0.15);
  border-radius: 50%;
  filter: blur(4px);
}

.speech-bubble {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #ff4d6d;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 77, 109, 0.3);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.speech-bubble.show {
  opacity: 1;
  animation: bubbleFloat 1.4s ease-out;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: white;
}

@keyframes bubbleFloat {
  0% { opacity: 0; transform: translateX(-50%) translateY(8px); }
  15% { opacity: 1; transform: translateX(-50%) translateY(0); }
  85% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-8px); }
}

.damage-number {
  position: absolute;
  font-size: 26px;
  font-weight: 900;
  color: #ff4d6d;
  text-shadow: 2px 2px 0 #fff, -1px -1px 0 #fff;
  pointer-events: none;
  animation: floatUp 0.8s ease-out forwards;
  z-index: 10;
}

.damage-number.miss { color: #9ca3af; font-size: 20px; }
.damage-number.block { color: #f59e0b; }
.damage-number.crit { color: #ef4444; font-size: 34px; }

.flash-red {
  animation: flashRed 0.3s ease-out;
}

@keyframes flashRed {
  0% { background: rgba(239, 68, 68, 0.4); }
  100% { background: transparent; }
}

@keyframes floatUp {
  0% { opacity: 1; transform: translateY(0) scale(0.5); }
  50% { transform: translateY(-30px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-60px) scale(1); }
}

.combo-display {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff4d6d, #ff8fab);
  color: white;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(255, 105, 135, 0.2);
  z-index: 8;
}

.combo-display.show { opacity: 1; transform: scale(1); }
.combo-display.finisher {
  background: linear-gradient(135deg, #fbbf24, #ef4444);
  animation: finisherPulse 0.5s ease;
}

@keyframes finisherPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}

.weapons-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.weapon-btn {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 3px solid transparent;
  background: linear-gradient(135deg, #fff, #ffe5ec);
  cursor: pointer;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(255, 105, 135, 0.2);
  position: relative;
}

.weapon-btn:hover { transform: translateY(-2px); }

.weapon-btn.active {
  border-color: #ff4d6d;
  background: linear-gradient(135deg, #ff8fab, #ff4d6d);
  box-shadow: 0 4px 16px rgba(255, 77, 109, 0.5);
  transform: scale(1.08);
}

.weapon-name {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: #c9184a;
  font-weight: 600;
  white-space: nowrap;
}

.weapon-level {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #fbbf24;
  color: #8b4513;
  font-size: 9px;
  font-weight: 900;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.skills-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.skill-btn {
  flex: 1;
  max-width: 110px;
  padding: 8px 4px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.skill-btn:not(.disabled):hover { transform: translateY(-2px); border-color: #fbbf24; }

.skill-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.7);
}

.skill-icon { font-size: 22px; }
.skill-name { font-size: 10px; font-weight: 700; color: #c9184a; }
.skill-cost { font-size: 9px; color: #f59e0b; font-weight: 600; }

.skill-btn.ready {
  border-color: #fbbf24;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
  animation: skillGlow 1.5s ease infinite;
}

@keyframes skillGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(251, 191, 36, 0.4); }
  50% { box-shadow: 0 0 16px rgba(251, 191, 36, 0.8); }
}

.action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.action-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-reset { background: linear-gradient(135deg, #fff, #ffe5ec); color: #c9184a; }
.btn-love { background: linear-gradient(135deg, #ff4d6d, #ff8fab); color: white; }
.btn-upgrade { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: white; }

.action-btn:active { transform: scale(0.96); }

.achievement-popup {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #8b4513;
  padding: 10px 20px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(255, 170, 0, 0.5);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
  text-align: center;
  max-width: 90vw;
}

.achievement-popup.show { transform: translateX(-50%) translateY(0); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.overlay.show { display: flex; }

.modal {
  background: linear-gradient(135deg, #fff, #ffe5ec);
  padding: 26px;
  border-radius: 26px;
  text-align: center;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.4s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal h2 { color: #ff4d6d; margin-bottom: 12px; font-size: 22px; }
.modal p { color: #c9184a; margin-bottom: 14px; line-height: 1.6; font-size: 14px; }

.modal-btn {
  background: linear-gradient(135deg, #ff4d6d, #ff8fab);
  color: white;
  border: none;
  padding: 10px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin: 4px;
}

.modal-btn.secondary {
  background: linear-gradient(135deg, #fff, #ffe5ec);
  color: #c9184a;
}

.upgrade-list { text-align: left; margin: 12px 0; }

.upgrade-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: white;
  border-radius: 10px;
  margin-bottom: 6px;
}

.upgrade-info { display: flex; align-items: center; gap: 8px; }
.upgrade-icon { font-size: 22px; }
.upgrade-name { font-weight: 700; color: #c9184a; font-size: 13px; }
.upgrade-desc { font-size: 10px; color: #9ca3af; }
.upgrade-lvl { font-size: 10px; color: #f59e0b; font-weight: 700; }

.upgrade-btn {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.upgrade-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.projectile {
  position: absolute;
  font-size: 30px;
  cursor: pointer;
  z-index: 15;
  animation: projectileMove 2.5s linear forwards;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@keyframes projectileMove {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(280px) rotate(720deg); }
}

.projectile.deflected {
  animation: deflect 0.4s ease-out forwards;
}

@keyframes deflect {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2) translateY(-40px); opacity: 0; }
}

.hit-effect {
  position: absolute;
  pointer-events: none;
  font-size: 36px;
  animation: hitPop 0.4s ease-out forwards;
  z-index: 20;
}

@keyframes hitPop {
  0% { opacity: 1; transform: scale(0.3) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.4) rotate(180deg); }
  100% { opacity: 0; transform: scale(1) rotate(360deg); }
}

.screen-shake { animation: screenShake 0.2s; }

@keyframes screenShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(3px, -2px); }
  75% { transform: translate(-2px, -1px); }
}

.flash-red { animation: flashRed 0.3s; }

@keyframes flashRed {
  0%, 100% { background-color: transparent; }
  50% { background-color: rgba(239, 68, 68, 0.2); }
}

.heart-float {
  position: fixed;
  pointer-events: none;
  font-size: 28px;
  animation: heartRise 2s ease-out forwards;
  z-index: 300;
}

@keyframes heartRise {
  0% { opacity: 1; transform: translateY(0) scale(0.5); }
  50% { transform: translateY(-100px) scale(1.3); }
  100% { opacity: 0; transform: translateY(-200px) scale(1); }
}

.bf-status-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 20px;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.bf-status-icon.show { opacity: 1; }

.task-modal { max-width: 420px; }

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.task-header h2 { margin-bottom: 0; }

.task-coins {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 5px 14px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 15px;
}

.task-tip {
  font-size: 12px;
  color: #c9184a;
  margin-bottom: 12px;
  text-align: center;
  opacity: 0.8;
}

.task-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.task-tab {
  padding: 5px 12px;
  border-radius: 14px;
  background: #ffe5ec;
  color: #c9184a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.task-tab.active {
  background: linear-gradient(135deg, #ff4d6d, #ff8fab);
  color: white;
  border-color: #ff4d6d;
}

.task-list {
  max-height: 340px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 4px;
}

.task-list::-webkit-scrollbar { width: 6px; }
.task-list::-webkit-scrollbar-thumb { background: #ffc0cb; border-radius: 3px; }

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: white;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.task-item.done {
  opacity: 0.55;
  background: #f3f4f6;
}

.task-icon {
  font-size: 28px;
  min-width: 36px;
  text-align: center;
}

.task-info { flex: 1; }

.task-name {
  font-weight: 700;
  color: #c9184a;
  font-size: 14px;
}

.task-desc {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

.task-reward {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  display: inline-block;
}

.task-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.task-done-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.task-done-btn:active { transform: scale(0.95); }

.task-done-btn.completed {
  background: #d1d5db;
  cursor: default;
}

.task-footer {
  display: flex;
  gap: 8px;
  justify-content: center;
}

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

.settings-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #fff, #ffe5ec);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 105, 135, 0.2);
  transition: transform 0.2s;
}

.settings-btn:hover { transform: rotate(45deg); }

.setting-section {
  margin-bottom: 16px;
  text-align: left;
}

.setting-label {
  font-size: 14px;
  font-weight: 700;
  color: #c9184a;
  margin-bottom: 8px;
}

.setting-preview {
  width: 100%;
  height: 80px;
  background: linear-gradient(135deg, #fff0f3, #ffe5ec);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  margin-bottom: 8px;
  overflow: hidden;
  border: 2px dashed #ffc0cb;
}

.setting-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-preview {
  height: 60px;
}

.setting-btns {
  display: flex;
  gap: 8px;
}

.setting-upload-btn {
  flex: 1;
  background: linear-gradient(135deg, #ff4d6d, #ff8fab);
  color: white;
  padding: 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.setting-upload-btn:active { transform: scale(0.97); }

.setting-clear-btn {
  background: #f3f4f6;
  color: #6b7280;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.setting-clear-btn:active { transform: scale(0.97); }

.bf-face.has-image {
  width: 130px;
  height: 130px;
  font-size: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.bf-face.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.battle-area.has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.fever-mode {
  animation: feverGlow 0.5s ease-in-out infinite alternate;
  border: 4px solid #fbbf24 !important;
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.6) !important;
}

@keyframes feverGlow {
  0% { filter: brightness(1) saturate(1); }
  100% { filter: brightness(1.2) saturate(1.5); }
}

.fever-active .battle-area {
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%) !important;
}

.fever-active .energy-fill {
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24) !important;
  animation: energyPulse 0.4s linear infinite;
}

@keyframes energyPulse {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.8; }
}

.particle {
  position: absolute;
  pointer-events: none;
  z-index: 100;
  animation: particleFade 1s ease-out forwards;
}

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

.floating-heart {
  position: absolute;
  font-size: 20px;
  pointer-events: none;
  animation: floatHeart 3s ease-in forwards;
  z-index: 1;
}

@keyframes floatHeart {
  0% { transform: translateY(0) rotate(0); opacity: 0.8; }
  100% { transform: translateY(-400px) rotate(360deg); opacity: 0; }
}

.leaderboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
}
.leaderboard-item:last-child { border-bottom: none; }
.leaderboard-rank {
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 10px;
}
.rank-1 { background: #ffd700; color: #000; }
.rank-2 { background: #c0c0c0; color: #000; }
.rank-3 { background: #cd7f32; color: #000; }
