/* Protocol Zero Game Styling */

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

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Courier New', monospace;
  background: linear-gradient(135deg, #0a0e27 0%, #0f1535 100%);
  color: #e8f0f8;
  overflow: hidden;
}

#game-wrapper {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

#game-container {
  width: 100%;
  max-width: 800px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 2rem;
}

.scene-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: fadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scene-text {
  line-height: 1.8;
  font-size: 0.95rem;
  color: #d0dce6;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-width: 100%;
  animation: slideDown 0.5s ease-out;
}

.scene-text p {
  margin-bottom: 1rem;
}

.scene-text p:last-child {
  margin-bottom: 0;
}

.scene-text.atlas-alert {
  color: #ff9999;
  animation: pulse 1s infinite;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.scene-choices {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  animation: slideDown 0.7s ease-out;
}

.choice-button {
  background: linear-gradient(135deg, #1a2340 0%, #0f1535 100%);
  border: 2px solid #4a6fa5;
  color: #a8d5ff;
  padding: 1rem 1.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  line-height: 1.6;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.3px;
  background-clip: padding-box;
}

.choice-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.choice-button:hover {
  background: linear-gradient(135deg, #2a3a5a 0%, #1a2550 100%);
  border-color: #6a9fd5;
  color: #e8f5ff;
  box-shadow: 
    0 0 15px rgba(106, 159, 213, 0.5),
    inset 0 0 10px rgba(106, 159, 213, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.choice-button:hover::before {
  left: 100%;
}

.choice-button:active {
  background: linear-gradient(135deg, #1a2340 0%, #0f1535 100%);
  box-shadow: 
    inset 0 0 8px rgba(0, 0, 0, 0.5),
    0 0 8px rgba(106, 159, 213, 0.3);
  transform: translateY(0);
}

.choice-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.choice-button.atlas-warning {
  border-color: #ff6b6b;
  color: #ff9999;
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.choice-button.atlas-warning:hover {
  background: linear-gradient(135deg, #3a1a1a 0%, #2a0f0f 100%);
  border-color: #ff4444;
  color: #ffcccc;
  box-shadow: 
    0 0 20px rgba(255, 107, 107, 0.6),
    inset 0 0 10px rgba(255, 107, 107, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glitch {
  0%, 100% {
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
  }
  50% {
    text-shadow: 0 0 2px #00ff00, 0 0 5px #00ff00;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar styling */
#game-container::-webkit-scrollbar {
  width: 8px;
}

#game-container::-webkit-scrollbar-track {
  background: #0a0e27;
}

#game-container::-webkit-scrollbar-thumb {
  background: #4a6fa5;
  border-radius: 4px;
}

#game-container::-webkit-scrollbar-thumb:hover {
  background: #6a9fd5;
}

/* ============================================
   HOME SCREEN STYLING
   ============================================ */

.home-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  gap: 2rem;
  animation: fadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nexus-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  animation: slideDown 0.8s ease-out;
}

.nexus-logo {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Main shield circle - SHIELD style */
.nexus-logo::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.4), transparent 60%),
              linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1e3a8a 100%);
  border-radius: 50%;
  border: 4px solid #3b82f6;
  animation: shield-pulse 3s ease-in-out infinite;
  box-shadow: 
    0 0 50px rgba(59, 130, 246, 0.8),
    0 0 100px rgba(59, 130, 246, 0.4),
    inset 0 0 50px rgba(59, 130, 246, 0.3),
    0 0 20px rgba(30, 58, 138, 0.6);
  filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.6));
}

/* Rotating outer rings - multiple layers for SHIELD effect */
.nexus-logo::after {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  border: 2px solid rgba(96, 165, 250, 0.6);
  border-radius: 50%;
  animation: spin-ring 12s linear infinite;
  opacity: 0.7;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.logo-text {
  position: absolute;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.15rem;
  color: #fff;
  text-shadow: 
    0 0 30px rgba(59, 130, 246, 1),
    0 0 60px rgba(37, 99, 235, 0.8),
    3px 3px 8px rgba(0, 0, 0, 0.9);
  font-family: 'Arial Black', sans-serif;
  z-index: 10;
  animation: text-glow 2s ease-in-out infinite;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-weight: 900;
}

/* Top eagle wings accent */
.nexus-logo .shield-top {
  position: absolute;
  width: 0;
  height: 0;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-top: 20px solid #3b82f6;
  opacity: 0.9;
  animation: wings-pulse 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.8));
}

/* Bottom accent stripe */
.nexus-logo .shield-bottom {
  position: absolute;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #60a5fa, transparent);
  bottom: 30px;
  animation: stripe-pulse 2.5s ease-in-out infinite 0.4s;
  border-radius: 3px;
  opacity: 0.8;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

@keyframes shield-pulse {
  0%, 100% { 
    box-shadow: 
      0 0 50px rgba(59, 130, 246, 0.8),
      0 0 100px rgba(59, 130, 246, 0.4),
      inset 0 0 50px rgba(59, 130, 246, 0.3),
      0 0 20px rgba(30, 58, 138, 0.6);
    border-color: #3b82f6;
  }
  50% { 
    box-shadow: 
      0 0 80px rgba(59, 130, 246, 1),
      0 0 140px rgba(59, 130, 246, 0.6),
      inset 0 0 60px rgba(59, 130, 246, 0.5),
      0 0 40px rgba(30, 58, 138, 0.8);
    border-color: #60a5fa;
  }
}

@keyframes text-glow {
  0%, 100% {
    text-shadow: 
      0 0 30px rgba(59, 130, 246, 1),
      0 0 60px rgba(37, 99, 235, 0.8),
      3px 3px 8px rgba(0, 0, 0, 0.9);
  }
  50% {
    text-shadow: 
      0 0 50px rgba(59, 130, 246, 1),
      0 0 100px rgba(37, 99, 235, 1),
      3px 3px 8px rgba(0, 0, 0, 0.9);
  }
}

@keyframes wings-pulse {
  0%, 100% {
    border-top-color: #3b82f6;
    opacity: 0.9;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.8));
  }
  50% {
    border-top-color: #60a5fa;
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 1));
  }
}

@keyframes stripe-pulse {
  0%, 100% {
    opacity: 0.8;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.9);
  }
}

@keyframes spin-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.logo-subtitle {
  font-size: 0.9rem;
  color: #7a9dba;
  letter-spacing: 0.15rem;
  font-style: italic;
  opacity: 0.8;
}

.nexus-tagline {
  font-size: 0.75rem;
  color: #5a7d9a;
  letter-spacing: 0.2rem;
  margin-top: 0.5rem;
  text-transform: uppercase;
  opacity: 0.7;
}

.home-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 300px;
  animation: slideDown 1s ease-out;
}

.home-button {
  background: linear-gradient(135deg, #1a2a4a 0%, #0f1a35 100%);
  border: 2px solid #4a7fa5;
  color: #a8d5ff;
  padding: 1.2rem 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  letter-spacing: 0.1rem;
  font-weight: 500;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.home-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.home-button:hover {
  background: linear-gradient(135deg, #2a3a5a 0%, #1a2550 100%);
  border-color: #7aafff;
  color: #e8f5ff;
  box-shadow: 
    0 0 20px rgba(122, 175, 255, 0.5),
    inset 0 0 10px rgba(122, 175, 255, 0.1),
    0 6px 15px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

.home-button:hover::before {
  left: 100%;
}

.home-button:active {
  transform: translateY(-1px);
  box-shadow: 
    inset 0 0 10px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(122, 175, 255, 0.4);
}

.start-button {
  background: linear-gradient(135deg, #1a3a2a 0%, #0f2015 100%);
  border-color: #4aaa5a;
  color: #7eff7a;
  animation: pulse 2s ease-in-out infinite;
}

.start-button:hover {
  background: linear-gradient(135deg, #2a5a3a 0%, #1a3025 100%);
  border-color: #6aff6a;
  color: #afffaa;
  box-shadow: 
    0 0 20px rgba(122, 255, 122, 0.5),
    inset 0 0 10px rgba(122, 255, 122, 0.1),
    0 6px 15px rgba(0, 0, 0, 0.4);
}

.about-button {
  opacity: 0.7;
}

.about-button:hover {
  opacity: 1;
}

.home-footer {
  font-size: 0.75rem;
  color: #5a7d9a;
  margin-top: 1rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

/* ============================================
   CHARACTER SELECT SCREEN STYLING
   ============================================ */

.character-select-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 2.5rem;
  animation: fadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.char-select-header {
  text-align: center;
  animation: slideDown 0.8s ease-out;
}

.char-select-header h2 {
  font-size: 1.8rem;
  color: #4a9eff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px rgba(74, 158, 255, 0.3);
  letter-spacing: 0.1rem;
}

.char-select-header p {
  font-size: 0.9rem;
  color: #7a9dba;
  margin: 0;
}

.character-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  width: 100%;
  animation: slideDown 1s ease-out;
}

.char-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.7;
}

.char-option:hover {
  opacity: 1;
  transform: translateY(-5px);
}

.char-option.selected {
  opacity: 1;
}

.char-avatar {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 3px solid #4a6fa5;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.char-avatar::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent);
  animation: slideDown 0.5s ease-out;
}

.char-option:hover .char-avatar {
  border-color: #7aafff;
  box-shadow: 0 0 20px rgba(122, 175, 255, 0.4);
  transform: scale(1.05);
}

.char-option.selected .char-avatar {
  border-color: #4aff4a;
  box-shadow: 
    0 0 25px rgba(74, 255, 74, 0.5),
    inset 0 0 15px rgba(74, 255, 74, 0.2);
  background: linear-gradient(135deg, rgba(74, 255, 74, 0.1), rgba(74, 255, 74, 0.05));
}

.avatar-1 {
  background: linear-gradient(135deg, #1a3a5a 0%, #0f1a35 100%);
  color: #4a9eff;
}

.avatar-2 {
  background: linear-gradient(135deg, #3a1a2a 0%, #1f0f15 100%);
  color: #ff4a7a;
}

.avatar-3 {
  background: linear-gradient(135deg, #2a3a1a 0%, #151f0f 100%);
  color: #7aff4a;
}

.avatar-4 {
  background: linear-gradient(135deg, #3a3a1a 0%, #1f1f0f 100%);
  color: #ffaa4a;
}

.char-name {
  font-size: 0.95rem;
  color: #a8d5ff;
  font-weight: 500;
  letter-spacing: 0.05rem;
  text-align: center;
}

.char-option.selected .char-name {
  color: #7aff7a;
  text-shadow: 0 0 10px rgba(122, 255, 122, 0.3);
}

/* ============================================
   ABOUT SCREEN STYLING
   ============================================ */

.about-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  animation: fadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-content {
  max-width: 600px;
  line-height: 2;
  font-size: 0.95rem;
  color: #c8dce6;
  animation: slideDown 0.8s ease-out;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.about-content-text {
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  #game-wrapper {
    padding: 1rem;
  }

  #game-container {
    padding: 1rem;
    max-width: 100%;
  }

  .scene-text {
    font-size: 0.85rem;
  }

  .choice-button {
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
  }

  .nexus-logo {
    font-size: 2.5rem;
  }

  .home-buttons {
    max-width: 90%;
  }

  .character-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .char-avatar {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }
}

/* Realistic Bullet and Glass Breaking Effects */

/* Bullet element - actual bullet shape */
@keyframes bullet-slow-ltr {
  0% {
    left: -2%;
    opacity: 1;
  }
  100% {
    left: 102%;
    opacity: 1;
  }
}

.animated-bullet {
  position: fixed;
  top: 35%;
  width: 28px;
  height: 10px;
  z-index: 1000;
  pointer-events: none;
  animation: bullet-slow-ltr 2s linear forwards;
  /* Actual bullet casing and tip */
  background: linear-gradient(90deg, 
    #cc0000 0%, 
    #ff3333 20%, 
    #ff6666 50%, 
    #ff3333 80%, 
    #990000 100%);
  border-radius: 50% 40% 40% 50% / 60% 40% 40% 60%;
  box-shadow: 
    inset -2px -2px 4px rgba(0,0,0,0.5),
    inset 2px 2px 4px rgba(255,255,255,0.3),
    0 0 25px #ff0000,
    0 0 50px #ff6666,
    0 0 80px rgba(255,0,0,0.5);
}

/* Bullet tip cone */
.animated-bullet::before {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid #ff3333;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  filter: drop-shadow(0 0 8px #ff0000);
}

/* Bullet casing detail */
.animated-bullet::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 8px;
  background: linear-gradient(90deg, #888, #666);
  border-radius: 0 50% 50% 0;
  box-shadow: inset 1px 0 2px rgba(0,0,0,0.8);
}

.animated-bullet.rtl {
  animation: bullet-slow-rtl 2s linear forwards;
}

@keyframes bullet-slow-rtl {
  0% {
    right: -2%;
    opacity: 1;
  }
  100% {
    right: 102%;
    opacity: 1;
  }
}

.animated-bullet.rtl::before {
  right: auto;
  left: -8px;
  border-left: 0;
  border-right: 10px solid #ff3333;
}

.animated-bullet.rtl::after {
  left: auto;
  right: -6px;
  border-radius: 50% 0 0 50%;
}

/* Glass breaking animation - window shattering */

/* Glass breaking animation - window shattering */
@keyframes glass-shatter {
  0% {
    opacity: 1;
    transform: scale(0.8) rotate(-15deg);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(2) rotate(25deg);
  }
}

.glass-break {
  position: fixed;
  font-size: 3rem;
  color: #ffffff;
  opacity: 1;
  animation: glass-shatter 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: none;
  text-shadow: 0 0 15px #0099ff;
  filter: drop-shadow(0 0 10px #0099ff) drop-shadow(0 0 20px #00ccff);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
}

.glass-crack {
  position: fixed;
  color: #00ccff;
  font-size: 1.5rem;
  animation: glass-shatter 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: none;
  text-shadow: 0 0 10px #0099ff;
  filter: drop-shadow(0 0 8px #0099ff);
  font-weight: bold;
}

/* Blood splattering - dynamic spray across screen */
@keyframes blood-spray-left {
  0% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-80px) translateY(40px) scale(0.5);
  }
}

@keyframes blood-spray-right {
  0% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(80px) translateY(40px) scale(0.5);
  }
}

@keyframes blood-spray-down {
  0% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(0) translateY(100px) scale(0.6);
  }
}

.blood-splatter {
  position: fixed;
  font-size: 1.2rem;
  color: #8b0000;
  animation: blood-spray-down 1.2s ease-out forwards;
  pointer-events: none;
  text-shadow: 0 0 5px #cc0000;
  filter: drop-shadow(0 0 3px #cc0000);
  top: 48%;
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
}

.blood-splatter.left {
  animation: blood-spray-left 1.2s ease-out forwards;
}

.blood-splatter.right {
  animation: blood-spray-right 1.2s ease-out forwards;
}

/* Slow motion effect for scene */
.slow-motion {
  animation-duration: inherit !important;
}

.slow-motion * {
  animation-duration: inherit !important;
}

/* Screen shake during bullet impact */
@keyframes impact-shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(2px);
  }
  75% {
    transform: translateX(-1px);
  }
}

.impact-shake {
  animation: impact-shake 0.4s ease-in-out;
}

/* Action Scene Animations */

/* Mission briefing overlay */
.mission-briefing {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(15, 21, 53, 0.95) 100%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease-out;
  gap: 2rem;
  padding: 2rem;
}

.mission-header {
  text-align: center;
  color: #4a9eff;
  text-shadow: 0 0 20px rgba(74, 158, 255, 0.4);
}

.mission-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.2rem;
}

.mission-objectives {
  background: rgba(26, 35, 64, 0.8);
  border: 2px solid #4a9eff;
  padding: 1.5rem;
  border-radius: 4px;
  max-width: 600px;
  animation: slideDown 0.7s ease-out;
}

.mission-objectives h2 {
  color: #7a9dba;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.objective-item {
  color: #d0dce6;
  margin: 0.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid #4a9eff;
}

.mission-start-btn {
  background: linear-gradient(135deg, #4a9eff 0%, #2a6fdf 100%);
  border: none;
  color: white;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  letter-spacing: 0.1rem;
  box-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
}

.mission-start-btn:hover {
  background: linear-gradient(135deg, #5aafff 0%, #3a7fff 100%);
  box-shadow: 0 0 30px rgba(74, 158, 255, 0.5);
  transform: translateY(-2px);
}

/* Action sequence container */
.action-sequence {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e27 0%, #0f1535 100%);
  animation: fadeIn 0.5s ease-out;
}

.action-scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  animation: slideDown 0.6s ease-out;
}

.action-title {
  font-size: 1.8rem;
  color: #4a9eff;
  text-shadow: 0 0 15px rgba(74, 158, 255, 0.4);
  text-align: center;
  animation: pulse 1.5s ease-in-out;
}

.action-description {
  color: #d0dce6;
  text-align: center;
  max-width: 600px;
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Enemy encounter animation */
@keyframes enemy-appear {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.enemy-indicator {
  font-size: 3rem;
  animation: enemy-appear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 15px #ff4444);
}

/* Victory scene */
@keyframes victory-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.victory-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(42, 111, 223, 0.3) 0%, rgba(74, 158, 255, 0.2) 100%);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.6s ease-out;
}

.victory-content {
  text-align: center;
  animation: victory-pulse 1s ease-in-out infinite;
}

.victory-title {
  font-size: 3rem;
  color: #4a9eff;
  text-shadow: 0 0 30px rgba(74, 158, 255, 0.6);
  margin-bottom: 1rem;
  letter-spacing: 0.2rem;
}

.victory-message {
  color: #d0dce6;
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Death/Failure scene */
@keyframes death-fade {
  0% {
    opacity: 0;
    color: #ff3333;
  }
  50% {
    opacity: 1;
    color: #ff6666;
  }
  100% {
    opacity: 0;
    color: #990000;
  }
}

.death-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.5) 0%, rgba(255, 51, 51, 0.2) 100%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.8s ease-out;
  gap: 2rem;
}

.death-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03) 0px,
    rgba(255, 0, 0, 0.03) 2px,
    transparent 2px,
    transparent 4px
  );
  animation: glitch 0.15s infinite;
}

@keyframes glitch {
  0% { transform: translateX(0); }
  50% { transform: translateX(1px); }
  100% { transform: translateX(0); }
}

.death-title {
  font-size: 3rem;
  color: #ff3333;
  text-shadow: 0 0 30px rgba(255, 51, 51, 0.6);
  letter-spacing: 0.2rem;
  z-index: 10;
  animation: death-fade 2s ease-in-out infinite;
}

.death-message {
  color: #ff9999;
  font-size: 1.2rem;
  z-index: 10;
}

/* Print styling */
@media print {
  body {
    background-color: white;
    color: black;
  }

  .choice-button,
  .home-button {
    display: none;
  }
}

/* Small Impact Animations */

/* Gunshot effect - quick flash and sound indicator */
@keyframes gunshot {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(50px);
  }
}

.gunshot-effect {
  position: absolute;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ff4444;
  animation: gunshot 0.8s ease-out forwards;
  pointer-events: none;
  text-shadow: 0 0 10px #ff0000;
  z-index: 100;
}

/* Bullet impact effect */
@keyframes impact {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

.impact-effect {
  position: absolute;
  font-size: 1.5rem;
  color: #ffaa00;
  animation: impact 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 100;
}

/* Alert/warning pulse */
@keyframes alert-pulse {
  0%, 100% {
    opacity: 0.6;
    text-shadow: 0 0 5px #ff3333;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 15px #ff3333;
  }
}

.alert-effect {
  animation: alert-pulse 0.5s ease-in-out;
  color: #ff3333;
  font-weight: bold;
}

/* Screen flash for explosions/impacts */
@keyframes screen-flash {
  0%, 100% {
    background-color: rgba(255, 100, 100, 0);
  }
  50% {
    background-color: rgba(255, 100, 100, 0.3);
  }
}

.screen-flash {
  animation: screen-flash 0.4s ease-out;
}

/* Shake effect for impacts */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
  75% {
    transform: translateX(-2px);
  }
}

.shake-effect {
  animation: shake 0.3s ease-in-out;
}

/* Alarm/siren effect */
@keyframes alarm {
  0%, 100% {
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
  }
  50% {
    color: #ff6666;
    text-shadow: 0 0 5px #ff6666;
  }
}

.alarm-effect {
  animation: alarm 0.6s infinite;
  font-weight: bold;
}

/* Data transmission effect - streaming text */
@keyframes data-stream {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

.data-stream {
  animation: data-stream 1s ease-out forwards;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
}

/* Scan line effect */
@keyframes scan-line {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

.scan-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00ff00, transparent);
  animation: scan-line 0.8s ease-in-out forwards;
  pointer-events: none;
}
