/* Matrix theme styles */
:root {
  --matrix-bg: #000;
  --matrix-green: #39ff14;
  --matrix-dim: rgba(57, 255, 20, 0.06);
}
html,
body {
  height: 100%;
  margin: 0;
}
body.no-scroll {
  overflow: hidden;
}
#matrix-overlay {
  position: fixed;
  inset: 0;
  background: var(--matrix-bg);
  color: var(--matrix-green);
  overflow: hidden;
  z-index: 9999;
}
#matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}
#matrix-ui {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  pointer-events: none;
}

#bomb-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#disarm-btn {
  background: #0a0;
  color: #fff;
  border: 0;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  transition: all 0.2s;
}

#disarm-btn:hover {
  background: #0c0;
  transform: scale(1.05);
}

#phrase-panel {
  font-family: monospace;
  color: var(--matrix-green);
  font-size: 1.125rem;
  opacity: 0.95;
  text-align: center;
  max-width: 70%;
}
#phrase-panel .phrase {
  display: block;
  animation: fadeUp 1s ease-in-out both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

#explosion {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-weight: 900;
  color: #fff;
  font-size: 6rem;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
#explosion.explode {
  opacity: 1;
  animation: boom 0.1s ease-in-out forwards;
}
@keyframes boom {
  0% {
    transform: scale(0.6);
    text-shadow: 0 0 0 transparent;
  }
  40% {
    transform: scale(1.15);
    text-shadow: 0 0 40px rgba(255, 80, 0, 0.95);
  }
  100% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* small screens */
@media (max-width: 600px) {
  #countdown {
    font-size: 2rem;
  }
  #phrase-panel {
    font-size: 0.95rem;
    max-width: 100%;
  }
}
