/* ============================================
   단어 카드 매칭 게임 — Premium Game UI
   ============================================ */

/* Game Overlay */
#game-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1040 40%, #0d1b3e 100%);
  z-index: 9999; display: none; flex-direction: column; align-items: center;
  overflow-y: auto; font-family: 'Montserrat', 'Lato', sans-serif;
}
#game-overlay.active { display: flex; }

/* Stars background */
#game-overlay::before {
  content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.3), transparent),
              radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.2), transparent),
              radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.4), transparent),
              radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,0.15), transparent),
              radial-gradient(2px 2px at 10% 80%, rgba(255,255,255,0.25), transparent),
              radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.3), transparent),
              radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.2), transparent);
  pointer-events: none; z-index: 0;
  animation: starsTwinkle 4s ease-in-out infinite alternate;
}
@keyframes starsTwinkle { 0% { opacity: 0.5; } 100% { opacity: 1; } }

/* Close button */
.game-close {
  position: fixed; top: 16px; right: 20px; z-index: 10002;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 20px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px); transition: all 0.3s;
}
.game-close:hover { background: rgba(255,80,80,0.4); transform: rotate(90deg); }

/* ─── Difficulty Select Screen ─── */
.game-difficulty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; z-index: 1; gap: 30px; padding: 20px;
}
.game-difficulty h2 {
  font-size: 32px; color: #fff; font-weight: 800;
  text-shadow: 0 0 30px rgba(100,180,255,0.5);
  margin: 0;
}
.game-difficulty p { color: rgba(255,255,255,0.6); margin: 0; font-size: 14px; }
.diff-cards { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.diff-card {
  width: 180px; padding: 30px 20px; border-radius: 20px;
  text-align: center; cursor: pointer; transition: all 0.3s ease;
  border: 2px solid transparent; position: relative; overflow: hidden;
}
.diff-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), transparent 70%);
}
.diff-card:hover::before { opacity: 1; }
.diff-card:hover { transform: translateY(-8px) scale(1.02); }
.diff-card.easy {
  background: linear-gradient(135deg, #065f46, #059669);
  border-color: #34d399; box-shadow: 0 8px 32px rgba(52,211,153,0.3);
}
.diff-card.normal {
  background: linear-gradient(135deg, #92400e, #d97706);
  border-color: #fbbf24; box-shadow: 0 8px 32px rgba(251,191,36,0.3);
}
.diff-card.hard {
  background: linear-gradient(135deg, #991b1b, #dc2626);
  border-color: #f87171; box-shadow: 0 8px 32px rgba(248,113,113,0.3);
}
.diff-card .diff-icon { font-size: 40px; margin-bottom: 12px; }
.diff-card .diff-name { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.diff-card .diff-info { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.5; }

/* ─── Game Header ─── */
.game-header {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 900px; padding: 16px 24px; z-index: 1;
  margin-top: 16px;
}
.game-timer {
  font-size: 36px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(100,200,255,0.5);
}
.game-timer.danger { color: #f87171; text-shadow: 0 0 20px rgba(248,113,113,0.7); animation: timerPulse 0.5s ease infinite; }
@keyframes timerPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.game-score-area { text-align: right; }
.game-score-label { font-size: 12px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 2px; }
.game-score-value { font-size: 40px; font-weight: 800; color: #fbbf24; text-shadow: 0 0 20px rgba(251,191,36,0.5); }
.game-combo {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0);
  font-size: 48px; font-weight: 900; color: #ff6b35; z-index: 10003;
  text-shadow: 0 0 40px rgba(255,107,53,0.8), 0 4px 8px rgba(0,0,0,0.5);
  pointer-events: none; opacity: 0; white-space: nowrap;
}
.game-combo.show {
  animation: comboPopup 1s ease forwards;
}
@keyframes comboPopup {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
  40% { transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -70%) scale(0.8); }
}
.game-speed-bonus {
  position: fixed; top: 40%; left: 50%; transform: translateX(-50%);
  font-size: 24px; font-weight: 700; color: #38bdf8; z-index: 10003;
  pointer-events: none; opacity: 0; text-shadow: 0 0 20px rgba(56,189,248,0.8);
}
.game-speed-bonus.show { animation: speedBonus 1.2s ease forwards; }
@keyframes speedBonus {
  0% { opacity: 0; transform: translateX(-50%) translateY(0) scale(0.5); }
  20% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-60px) scale(0.7); }
}

/* ─── Game Board ─── */
.game-board {
  display: grid; gap: 10px; max-width: 900px; width: 100%;
  padding: 10px 20px; z-index: 1; justify-items: center;
  flex: 1; align-content: center;
}
.game-board.rows-2 { grid-template-columns: repeat(4, 1fr); }
.game-board.rows-3 { grid-template-columns: repeat(4, 1fr); }
.game-board.rows-4 { grid-template-columns: repeat(4, 1fr); gap: 8px; }

/* ─── Game Card ─── */
.game-card {
  width: 100%; max-width: 200px;
  perspective: 800px; cursor: pointer; position: relative;
  opacity: 0; transform: translateY(60px) scale(0.7);
}
/* Dynamic card height based on rows */
.rows-2 .game-card { height: calc((100vh - 140px) / 2 - 12px); }
.rows-3 .game-card { height: calc((100vh - 140px) / 3 - 12px); }
.rows-4 .game-card { height: calc((100vh - 140px) / 4 - 10px); }
.game-card.dealt {
  animation: dealIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes dealIn {
  0% { opacity: 0; transform: translateY(60px) scale(0.7) rotateY(180deg); }
  60% { opacity: 1; transform: translateY(-10px) scale(1.02) rotateY(20deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotateY(0deg); }
}

.game-card-inner {
  width: 100%; height: 100%; position: relative;
  transform-style: preserve-3d; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
}
.game-card.flipped .game-card-inner { transform: rotateY(180deg); }

.game-card-face {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  backface-visibility: hidden; border-radius: 16px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 12px; text-align: center; box-sizing: border-box;
}

/* Card Back */
.game-card-back {
  background: url('card_back.png') center/cover, linear-gradient(135deg, #1a1040, #0d1b3e);
  border: 2px solid rgba(255,215,0,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), inset 0 0 30px rgba(255,215,0,0.05);
}

/* Card Front — English */
.game-card-front {
  transform: rotateY(180deg);
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.game-card.eng .game-card-front {
  background: url('card_eng.png') center/cover, linear-gradient(135deg, #106BD6, #2D8EFF);
}
.game-card.kor .game-card-front {
  background: url('card_kor.png') center/cover, linear-gradient(135deg, #7C3AED, #A855F7);
}
.game-card-text {
  font-weight: 700; color: #fff; z-index: 1; line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  word-break: keep-all;
}
.game-card.eng .game-card-text { font-size: 18px; }
.game-card.kor .game-card-text { font-size: 15px; }

/* Selection glow */
.game-card.selected .game-card-inner {
  box-shadow: 0 0 30px rgba(56,189,248,0.8), 0 0 60px rgba(56,189,248,0.4);
  border-radius: 16px;
}
.game-card.selected .game-card-front {
  border-color: #38bdf8;
}

/* Match success */
.game-card.matched {
  animation: matchOut 0.6s ease forwards;
  pointer-events: none;
}
@keyframes matchOut {
  0% { transform: scale(1); opacity: 1; }
  30% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

/* Wrong shake */
.game-card.wrong .game-card-inner {
  animation: cardShake 0.5s ease;
}
.game-card.wrong .game-card-front {
  border-color: #ef4444 !important;
  box-shadow: 0 0 30px rgba(239,68,68,0.6) !important;
}
@keyframes cardShake {
  0%,100% { transform: rotateY(180deg) translateX(0); }
  20% { transform: rotateY(180deg) translateX(-12px); }
  40% { transform: rotateY(180deg) translateX(12px); }
  60% { transform: rotateY(180deg) translateX(-8px); }
  80% { transform: rotateY(180deg) translateX(8px); }
}

/* ─── Particle Canvas ─── */
#game-particles {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 10001;
}

/* ─── Result Screen ─── */
.game-result {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  z-index: 10005; background: rgba(10,14,39,0.95); backdrop-filter: blur(20px);
  gap: 20px; padding: 20px;
}
.game-result.active { display: flex; }
.game-result-title {
  font-size: 42px; font-weight: 900; color: #fff;
  text-shadow: 0 0 40px rgba(100,200,255,0.6);
}
.game-result-title.victory { color: #fbbf24; text-shadow: 0 0 40px rgba(251,191,36,0.8); }
.game-result-title.gameover { color: #f87171; text-shadow: 0 0 40px rgba(248,113,113,0.8); }

.game-stars { display: flex; gap: 12px; margin: 10px 0; }
.game-star {
  font-size: 50px; opacity: 0.2; transition: all 0.5s;
  filter: grayscale(1);
}
.game-star.active {
  opacity: 1; filter: grayscale(0); animation: starPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes starPop {
  0% { transform: scale(0) rotate(-30deg); }
  60% { transform: scale(1.3) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.game-result-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  background: rgba(255,255,255,0.05); border-radius: 16px; padding: 24px;
  border: 1px solid rgba(255,255,255,0.1); min-width: 280px;
}
.game-stat { text-align: center; }
.game-stat-label { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }
.game-stat-value { font-size: 28px; font-weight: 800; color: #fff; margin-top: 4px; }
.game-stat-value.highlight { color: #fbbf24; }
.game-new-record {
  font-size: 18px; font-weight: 700; color: #f472b6;
  animation: recordPulse 1s ease infinite; display: none;
}
.game-new-record.show { display: block; }
@keyframes recordPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.1); } }

.game-result-btns { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.game-btn {
  padding: 14px 28px; border: none; border-radius: 12px; font-size: 16px;
  font-weight: 700; cursor: pointer; transition: all 0.3s;
  font-family: inherit;
}
.game-btn:hover { transform: translateY(-3px); }
.game-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff; box-shadow: 0 6px 24px rgba(59,130,246,0.4);
}
.game-btn-secondary {
  background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.game-btn-close {
  background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .game-board { gap: 8px; padding: 10px; }
  .game-card.eng .game-card-text { font-size: 14px; }
  .game-card.kor .game-card-text { font-size: 12px; }
  .game-timer { font-size: 28px; }
  .game-score-value { font-size: 30px; }
  .game-combo { font-size: 36px; }
  .diff-card { width: 140px; padding: 20px 14px; }
  .game-result-title { font-size: 30px; }
  .game-menu-grid { grid-template-columns: 1fr !important; }
  .game-menu-card { min-height: auto !important; padding: 20px !important; }
  .game-logo-title { font-size: 28px !important; }
}

/* ─── Game Main Menu ─── */
.game-main-menu {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; z-index: 1; gap: 24px; padding: 30px 20px;
}
.game-logo-area { text-align: center; }
.game-logo-icon {
  font-size: 64px; margin-bottom: 8px;
  animation: logoFloat 3s ease-in-out infinite;
}
@keyframes logoFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.game-logo-title {
  font-size: 40px; font-weight: 900; color: #fff; margin: 0;
  background: linear-gradient(135deg, #38bdf8, #a78bfa, #fbbf24);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.game-logo-sub {
  color: rgba(255,255,255,0.5); font-size: 14px; margin: 6px 0 0;
}
.game-word-info {
  font-size: 13px; font-weight: 600; margin-top: 10px;
}

/* Game Menu Grid */
.game-menu-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; max-width: 600px; width: 100%;
}
.game-menu-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 28px 20px; text-align: center;
  position: relative; overflow: hidden; transition: all 0.3s ease;
  min-height: 160px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}
.game-menu-card.playable {
  cursor: pointer;
  border-color: rgba(56,189,248,0.3);
  background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(167,139,250,0.08));
}
.game-menu-card.playable:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(56,189,248,0.6);
  box-shadow: 0 12px 40px rgba(56,189,248,0.2);
}
.game-menu-card.coming {
  opacity: 0.5; cursor: default;
}
.game-menu-badge {
  position: absolute; top: 12px; right: 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff; font-size: 10px; font-weight: 800; padding: 4px 10px;
  border-radius: 20px; letter-spacing: 1px;
}
.game-menu-badge.coming-badge {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}
.game-menu-icon { font-size: 44px; }
.game-menu-name { font-size: 18px; font-weight: 800; color: #fff; }
.game-menu-desc { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.5; }

/* Back Button */
.game-back-btn {
  position: absolute; top: 20px; left: 20px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; padding: 8px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.3s; font-family: inherit; z-index: 10;
}
.game-back-btn:hover {
  background: rgba(255,255,255,0.2); transform: translateX(-4px);
}

/* ─── Sub-Game Screen (shared) ─── */
.sub-game-screen {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; height: 100vh; z-index: 2; padding: 16px; box-sizing: border-box;
  position: relative;
}
.sub-end-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(10,14,39,0.95); backdrop-filter: blur(20px);
  z-index: 10005; gap: 16px;
}

/* ─── ⚡ Speed Quiz ─── */
.sq-header {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 600px; color: #fff; font-weight: 700;
  font-size: 16px; margin-top: 40px;
}
.sq-combo-display {
  color: #ff6b35; font-size: 24px; font-weight: 900; height: 32px;
  text-shadow: 0 0 20px rgba(255,107,53,0.6);
}
.sq-timer-track {
  width: 100%; max-width: 600px; height: 8px; background: rgba(255,255,255,0.1);
  border-radius: 4px; margin: 12px 0; overflow: hidden;
}
.sq-timer-bar {
  height: 100%; width: 100%; border-radius: 4px;
  transition: width 0.1s linear, background 0.3s;
}
.sq-word {
  font-size: 48px; font-weight: 900; color: #fff; margin: 20px 0;
  text-shadow: 0 0 30px rgba(100,200,255,0.5);
}
.sq-choices {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  width: 100%; max-width: 600px;
}
.sq-choice {
  padding: 18px 16px; border: 2px solid rgba(255,255,255,0.15);
  border-radius: 14px; background: rgba(255,255,255,0.05);
  color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: inherit; text-align: center;
  word-break: keep-all;
}
.sq-choice:hover { border-color: rgba(56,189,248,0.5); background: rgba(56,189,248,0.1); }
.sq-choice.sq-correct {
  border-color: #34d399 !important; background: rgba(52,211,153,0.2) !important;
  color: #34d399 !important;
}
.sq-choice.sq-wrong {
  border-color: #f87171 !important; background: rgba(248,113,113,0.2) !important;
  color: #f87171 !important;
}

/* ─── 🎯 Word Shooter ─── */
.ws-header {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; color: #fff; font-weight: 700; font-size: 14px;
  margin-top: 40px; padding: 0 8px;
}
.ws-meaning {
  font-size: 22px; font-weight: 800; color: #fbbf24;
  text-shadow: 0 0 20px rgba(251,191,36,0.5);
  text-align: center; flex: 1;
}
.ws-canvas-wrap { flex: 1; width: 100%; position: relative; }

/* ─── 🔤 Hangman ─── */
.hm-header {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 500px; color: #fff; font-weight: 700;
  font-size: 14px; margin-top: 40px;
}
.hm-body {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; flex: 1; justify-content: center;
}
#hm-canvas { background: transparent; }
.hm-meaning {
  font-size: 18px; color: #fbbf24; font-weight: 700;
  text-shadow: 0 0 15px rgba(251,191,36,0.4);
}
.hm-word {
  font-size: 36px; font-weight: 900; color: #fff; letter-spacing: 6px;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 20px rgba(100,200,255,0.5);
}
.hm-keyboard {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px; max-width: 500px; padding: 12px 0 20px;
}
.hm-key {
  width: 38px; height: 42px; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px; background: rgba(255,255,255,0.08);
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.hm-key:hover:not(:disabled) { background: rgba(56,189,248,0.2); border-color: #38bdf8; }
.hm-key:disabled { opacity: 0.3; cursor: default; }
.hm-key-correct {
  background: rgba(52,211,153,0.3) !important;
  border-color: #34d399 !important; color: #34d399 !important;
}
.hm-key-wrong {
  background: rgba(248,113,113,0.2) !important;
  border-color: #f87171 !important; color: #f87171 !important;
}

/* ─── Responsive for new games ─── */
@media (max-width: 600px) {
  .sq-word { font-size: 32px; }
  .sq-choices { grid-template-columns: 1fr; }
  .sq-choice { padding: 14px; font-size: 14px; }
  .hm-word { font-size: 24px; letter-spacing: 4px; }
  .hm-key { width: 30px; height: 36px; font-size: 13px; }
  .ws-meaning { font-size: 16px; }
}

/* ─── 🔥 FX System ─── */
.fx-impact {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 64px; font-weight: 900; z-index: 99998;
  pointer-events: none; text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: fxImpactIn 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  font-family: 'Montserrat', sans-serif;
}
.fx-failed {
  text-shadow: 0 0 60px rgba(255,0,0,0.8), 0 4px 20px rgba(0,0,0,0.7);
  animation: fxFailedIn 1.5s ease forwards;
}
.fx-victory {
  text-shadow: 0 0 60px rgba(251,191,36,0.8), 0 4px 20px rgba(0,0,0,0.5);
}
@keyframes fxImpactIn {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-10deg); opacity: 0; }
  15% { transform: translate(-50%, -50%) scale(1.6) rotate(3deg); opacity: 1; }
  30% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
}
@keyframes fxFailedIn {
  0% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
  10% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  15% { transform: translate(-50%, -50%) scale(1) rotate(2deg); }
  20% { transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
  25% { transform: translate(-50%, -50%) scale(1) rotate(1deg); }
  30% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}

/* Bomb */
.fx-bomb {
  position: fixed; bottom: 30px; right: 30px;
  font-size: 56px; z-index: 99998; pointer-events: none;
  transition: transform 0.15s, filter 0.15s;
  filter: drop-shadow(0 0 20px rgba(255,100,0,0.8));
  animation: fxBombPulse 0.6s ease infinite;
}
@keyframes fxBombPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
