:root {
  --primary: #bb86fc;
  --secondary: #FF6B6B;
  --dark: #121212;
  --dark-card: #1E1E1E;
  --dark-accent: #2D2D2D;
  --light: #e0e0e0;
  --success: #4CAF50;
  --warning: #FFC107;
  --danger: #FF5252;
  --card-red: #FF5252;
  --card-black: #E0E0E0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.dark-theme {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Game Page Header */
.game-page-header {
  background-color: #1f1f1f;
  padding: 0.8rem 0;
  border-bottom: 1px solid #333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.back-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--light);
}

/* Main Game Content Area */
.game-content {
  padding: 2rem 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* The Game Container */
#game-container {
  width: 100%;
  max-width: 800px;
  min-height: 500px;
  background-color: #2a2a2a;
  border: 2px solid #444;
  border-radius: 8px;
  margin: 0 auto 2rem auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
}

/* Game Instructions Area */
.game-instructions {
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1rem 1.5rem;
  max-width: 700px;
  width: 90%;
  margin: 0 auto;
  text-align: left;
}

.game-instructions h2 {
  font-size: 1.3rem;
  color: var(--light);
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.game-instructions h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 1rem 0 0.5rem 0;
  font-weight: 600;
}

.game-instructions p {
  font-size: 0.95rem;
  color: #a0a0a0;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.game-instructions ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.game-instructions li {
  font-size: 0.9rem;
  color: #a0a0a0;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.power-up-list li {
  padding-left: 0.25rem;
}

.power-up-list li strong {
  color: #08d9d6;
}

/* Footer Styles */
.site-footer {
  background-color: #1f1f1f;
  color: #a0a0a0;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: auto;
  font-size: 0.9rem;
  border-top: 1px solid #333;
  flex-shrink: 0;
}

.site-footer p {
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .game-title {
    font-size: 1.8rem;
  }
  #game-container {
    min-height: 400px;
  }
  .game-instructions {
    width: 95%;
    padding: 0.8rem 1rem;
  }
  .game-instructions h2 {
    font-size: 1.2rem;
  }
  .game-instructions h3 {
    font-size: 1rem;
  }
  .game-instructions p, .game-instructions li {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .game-title {
    font-size: 1.6rem;
  }
  #game-container {
    min-height: 300px;
    border-width: 1px;
  }
  .back-link {
    font-size: 0.9rem;
  }
}

/* ================= Game-specific styles below ================= */

/* Power-up Styles */
.power-up-area {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  z-index: 10; /* Ensure they are above cards */
}

.power-up-btn {
  background-color: #08d9d6; /* Cyan color */
  color: #111; /* Darker text for contrast */
  border: none; /* Remove border for cleaner glow */
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  /* Glow effect using box-shadow */
  box-shadow: 0 0 8px rgba(8, 217, 214, 0.7), 0 0 12px rgba(8, 217, 214, 0.5);
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center; /* Center content */
  gap: 0.5rem;
  min-width: 120px; /* Ensure uniform width */
  text-align: center; /* Center text */
}

.power-up-btn:hover:not(:disabled) {
  background-color: #25eded; /* Lighter cyan on hover */
  transform: translateY(-2px);
  /* Intensify glow on hover */
  box-shadow: 0 0 12px rgba(8, 217, 214, 0.9), 0 0 18px rgba(8, 217, 214, 0.7);
}

.power-up-btn:disabled {
  background-color: #4a4a4a; /* Darker grey for disabled */
  color: #888;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none; /* No glow when disabled */
  transform: none;
}

.power-up-btn i {
  font-size: 1rem;
}

.message {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  min-height: 2rem;
  color: var(--light);
}

.message.win {
  color: var(--success);
}

.message.lose {
  color: var(--danger);
}

.message.push {
  color: var(--warning);
}

.table {
  background: #0B4D3C;
  background-image: radial-gradient(circle at center, rgba(11, 77, 60, 1), rgba(9, 62, 48, 0.8)), 
                    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23095a43' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  border: 3px solid #083E31;
}

.table::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.timer-container {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.timer-icon {
  color: var(--warning);
}

.timer {
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
}

.score-container {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.score-icon {
  color: var(--primary);
}

.score {
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
}

.dealer-area, .player-area {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.area-label {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  min-height: 140px;
  perspective: 1000px;
}

.card {
  width: 80px;
  height: 112px;
  background-color: white;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  transform-origin: center bottom;
}

.card:hover {
  transform: translateY(-5px) rotateY(5deg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card.hidden {
  background: linear-gradient(135deg, #303030, #1a1a1a);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #444;
}

.card.hidden::after {
  content: '';
  width: 70%;
  height: 70%;
  background-image: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.4;
}

.card-topleft, .card-bottomright {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  z-index: 5;
}

.card-bottomright {
  align-self: flex-end;
  transform: rotate(180deg);
}

.card-value {
  font-size: 1.4rem;
  font-weight: bold;
  color: black;
  text-align: left;
  margin-left: 0.1rem;
  margin-top: 0.1rem;
}

.card-suit {
  font-size: 1.2rem;
  line-height: 1;
}

.card-suit.red {
  color: var(--card-red);
}

.card-suit.black {
  color: #222;
}

.card-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
}

.score-display {
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-top: 0.8rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.controls {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn i {
  margin-right: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: #5753e0;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(108, 99, 255, 0.3);
}

.btn-success {
  background-color: var(--success);
  color: white;
}

.btn-success:hover {
  background-color: #43a047;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(76, 175, 80, 0.3);
}

.btn-warning {
  background-color: var(--warning);
  color: var(--dark);
}

.btn-warning:hover {
  background-color: #ffb300;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 193, 7, 0.3);
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.btn-danger:hover {
  background-color: #f44336;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 82, 82, 0.3);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card.dealt {
  animation: dealCard 0.5s ease-out forwards;
}

@keyframes dealCard {
  0% {
    opacity: 0;
    transform: translateY(-100px) rotate(10deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

.game-stats {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 600px;
  margin-top: 1.5rem;
  background-color: rgba(0,0,0,0.2);
  padding: 0.8rem 1rem;
  border-radius: 8px;
}

.stat {
  text-align: center;
}

.stat-label {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 0.2rem;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--light);
}

.high-score-stat .stat-label i {
  color: #FFD700; /* Gold color for trophy */
  margin-right: 0.3em;
}

.high-score-stat .stat-value {
  color: #FFD700;
}

.game-over-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.game-over-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background-color: var(--dark-card);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border: 2px solid var(--primary);
}

.game-over-modal.active .modal-content {
  transform: scale(1);
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--light);
}

.final-score {
  font-size: 3rem;
  font-weight: bold;
  margin: 1rem 0;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

.result-details {
  display: flex;
  justify-content: space-around;
  margin: 1.5rem 0;
}

.detail-item {
  text-align: center;
}

.detail-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--light);
}

.detail-label {
  font-size: 0.9rem;
  color: #aaa;
}

.start-btn {
  margin-top: 1rem;
  width: 80%;
  padding: 1rem;
  font-size: 1.2rem;
}

footer {
  background: #121212;
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: auto;
  border-top: 1px solid #333;
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.win-animation {
  animation: pulse 0.5s ease;
}

/* Enhanced pulse animation for blackjack */
@keyframes blackjack-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  }
}

.blackjack-pulse {
  animation: blackjack-pulse 1s ease infinite;
  border: 2px solid gold !important;
  z-index: 10;
  transform-origin: center center !important;
  position: relative;
  animation-fill-mode: forwards;
}

/* Fix the card hover effect conflicting with animations */
.blackjack-pulse:hover {
  transform: scale(1) !important;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8) !important;
}

@keyframes shake {
  0% { transform: translateX(0); }
  10% { transform: translateX(-8px) rotate(-2deg); }
  20% { transform: translateX(8px) rotate(2deg); }
  30% { transform: translateX(-8px) rotate(-2deg); }
  40% { transform: translateX(8px) rotate(2deg); }
  50% { transform: translateX(-8px) rotate(-1deg); }
  60% { transform: translateX(8px) rotate(1deg); }
  70% { transform: translateX(-5px) rotate(-0.5deg); }
  80% { transform: translateX(5px) rotate(0.5deg); }
  90% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.lose-animation {
  animation: shake 0.5s ease;
}

.bust-animation {
  animation: shake 0.7s cubic-bezier(.36,.07,.19,.97) both !important;
  transform-origin: center !important;
  position: relative;
  z-index: 10;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Fix the card hover effect conflicting with animations */
.bust-animation:hover {
  transform: translateX(0) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25) !important;
}

/* Timer warning */
.timer-warning {
  color: var(--danger) !important;
  animation: pulse 1s infinite;
}

@media (min-width: 768px) {
  .card {
    width: 88px;
    height: 128px;
  }
  
  .header h1 {
    font-size: 3rem;
  }
}

@media (max-width: 600px) {
  .controls {
    flex-wrap: wrap;
    gap: 0.7rem;
  }
  
  .card {
    width: 72px;
    height: 104px;
  }
  
  .score-container, .timer-container {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    margin-bottom: 1rem;
  }
  
  .table {
    padding: 1.5rem 1rem;
  }
  
  .score-container {
    margin-right: 0.5rem;
  }
  
  .timer-container {
    margin-left: 0.5rem;
  }
  
  .status-bar {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Safe Hit button and Hit button activation effect */
.safe-hit-active {
  animation: pulseCyanBorder 1.5s infinite;
  box-shadow: 0 0 10px rgba(8, 217, 214, 0.8);
  border: 3px solid #08d9d6 !important;
  position: relative;
  z-index: 5;
}

@keyframes pulseCyanBorder {
  0% {
    border-color: #08d9d6;
  }
  50% {
    border-color: #25eded;
    box-shadow: 0 0 5px rgba(8, 217, 214, 0.5);
  }
  100% {
    border-color: #08d9d6;
  }
}

/* Card Swap Mode Styles */
.card-swap-mode {
  cursor: pointer;
  animation: pulseSwapBorder 1.5s infinite;
  box-shadow: 0 0 12px rgba(255, 192, 0, 0.8);
  transform: translateY(-10px);
  transition: transform 0.3s ease;
}

.card-swap-mode:hover {
  box-shadow: 0 0 15px rgba(255, 223, 0, 1);
  transform: translateY(-15px) scale(1.05);
}

@keyframes pulseSwapBorder {
  0% {
    box-shadow: 0 0 5px rgba(255, 192, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 223, 0, 0.9);
  }
  100% {
    box-shadow: 0 0 5px rgba(255, 192, 0, 0.5);
  }
}

/* Score Boost Styles */
.score-boost-active {
  animation: scoreBoostPulse 1.5s infinite;
  text-shadow: 0 0 10px #FFEB3B, 0 0 20px #FFEB3B;
  color: #FFC107 !important;
  font-size: 1.5rem !important;
}

@keyframes scoreBoostPulse {
  0% {
    text-shadow: 0 0 5px #FFEB3B, 0 0 10px #FFEB3B;
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 10px #FFEB3B, 0 0 20px #FFEB3B, 0 0 30px #FFEB3B;
    transform: scale(1.15);
  }
  100% {
    text-shadow: 0 0 5px #FFEB3B, 0 0 10px #FFEB3B;
    transform: scale(1);
  }
}

/* Time Freeze Styles */
.time-freeze-active {
  animation: timeFreezePulse 1.5s infinite;
  text-shadow: 0 0 10px #00BFFF, 0 0 20px #00BFFF;
  color: #00BFFF !important;
  font-size: 1.5rem !important;
  position: relative;
}

.time-freeze-active::before {
  content: "⏸";
  position: absolute;
  left: -20px;
  font-size: 1rem;
}

@keyframes timeFreezePulse {
  0% {
    text-shadow: 0 0 5px #00BFFF, 0 0 10px #00BFFF;
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 10px #00BFFF, 0 0 20px #00BFFF, 0 0 30px #00BFFF;
    transform: scale(1.15);
  }
  100% {
    text-shadow: 0 0 5px #00BFFF, 0 0 10px #00BFFF;
    transform: scale(1);
  }
}

/* Dealer Limit Styles */
.dealer-limit-active {
  animation: dealerLimitPulse 1.5s infinite;
  text-shadow: 0 0 10px #FF5252, 0 0 20px #FF5252;
  color: #FF5252 !important;
  font-weight: bold !important;
  position: relative;
}

.dealer-limit-active::after {
  content: " (15+)";
  font-size: 0.8rem;
  font-weight: normal;
  color: #FF5252;
  position: relative;
  top: -2px;
}

@keyframes dealerLimitPulse {
  0% {
    text-shadow: 0 0 5px #FF5252, 0 0 10px #FF5252;
  }
  50% {
    text-shadow: 0 0 10px #FF5252, 0 0 20px #FF5252, 0 0 30px #FF5252;
  }
  100% {
    text-shadow: 0 0 5px #FF5252, 0 0 10px #FF5252;
  }
}

/* Perfect Pair Styles */
.perfect-pair-active {
  position: relative;
}

.perfect-pair-active::before {
  content: "👯";
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  animation: pairJump 1.5s infinite;
}

.perfect-pair {
  box-shadow: 0 0 15px rgba(255, 105, 180, 0.8) !important;
  animation: perfectPairPulse 1.5s infinite;
}

.perfect-pair-highlight {
  box-shadow: 0 0 20px rgba(255, 105, 180, 1) !important;
  animation: perfectPairFlash 0.6s 3;
  z-index: 10;
}

@keyframes perfectPairPulse {
  0% {
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.6);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.9);
    transform: translateY(-5px);
  }
  100% {
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.6);
    transform: translateY(0);
  }
}

@keyframes perfectPairFlash {
  0% {
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.6);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 105, 180, 1);
  }
  100% {
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.6);
  }
}

@keyframes pairJump {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

/* Point Shield Styles */
.point-shield-active {
  animation: shieldPulse 1.5s infinite;
  text-shadow: 0 0 10px #7986CB, 0 0 20px #7986CB;
  color: #7986CB !important;
  font-size: 1.5rem !important;
  position: relative;
}

.point-shield-active::before {
  content: "🛡️";
  position: absolute;
  left: -25px;
  font-size: 1.2rem;
}

.shield-break {
  animation: shieldBreak 1.5s forwards !important;
}

@keyframes shieldPulse {
  0% {
    text-shadow: 0 0 5px #7986CB, 0 0 10px #7986CB;
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 10px #7986CB, 0 0 20px #7986CB, 0 0 30px #7986CB;
    transform: scale(1.15);
  }
  100% {
    text-shadow: 0 0 5px #7986CB, 0 0 10px #7986CB;
    transform: scale(1);
  }
}

@keyframes shieldBreak {
  0% {
    text-shadow: 0 0 5px #7986CB, 0 0 10px #7986CB;
  }
  30% {
    text-shadow: 0 0 30px #7986CB, 0 0 45px #7986CB;
    transform: scale(1.3);
  }
  100% {
    text-shadow: none;
    transform: scale(1);
  }
} 