:root {
  --neon-green: #00ff00;
  --neon-purple: #cc33ff;
  --neon-cyan: #00e5ff;
  --neon-yellow: #ffff00;
  --white: #ffffff;
}

/* Disable tap highlight globally */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Header */
header.bombsquad-header {
  width: 100%;
  padding: 2rem 0;
  margin: 0;
  background-color: rgba(17, 17, 17, 0.85);
  border: 4px double var(--neon-green);
  box-shadow: 0 0 20px var(--neon-green);
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  overflow: hidden;
  animation: strobeHeader 2s infinite;
}

.bombsquad-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green);
  margin: 0;
}

.bombsquad-subtitle {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.9rem;
  color: var(--neon-purple);
  text-shadow: 0 0 5px var(--neon-purple);
  position: absolute;
  left: -100%;
  top: 75%;
  transform: translateY(-50%);
  white-space: nowrap;
  animation: swipeIn 2s forwards 1.5s;
}

@keyframes strobeHeader {
  0%, 17%, 19%, 21%, 23%, 25%, 100% { opacity: 1; }
  18%, 20%, 22%, 24% { opacity: 0.2; }
}

@keyframes swipeIn {
  0% { left: -100%; }
  100% { left: 50%; transform: translateX(-50%) translateY(-50%); }
}

body {
  margin: 0;
  padding-top: 140px;
  background: url('https://srv563-files.hstgr.io/42dbd5b3867a05a2/files/public_html/wp-content/themes/promptifi-core/assets/assets/bombsquad-background.png') repeat center center;
  background-color: #4b0082;
  font-family: 'Segoe UI', sans-serif;
  color: var(--white);
}

/* Layout */
.page-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.game-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.left-panel,
.right-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.slider-widget-container,
.keypad-container,
.wire-set-wrapper,
.switches {
  width: 100%;
  display: flex;
  justify-content: center;
}

.slider-widget-container {
  flex-direction: column;
  gap: 2rem;
}

/* Buttons */
.button {
  margin-bottom: 0.8rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  width: 160px;
  height: 50px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
  transition: background 0.3s ease, opacity 0.3s ease;
  opacity: 0.3;
  touch-action: manipulation;
}
.button.active { opacity: 1; }

.start-button { background-color: #00ff00; color: #000; }
.restart-button { background-color: #ffff00; color: #000; }
.diffuse-button { background-color: red; color: #fff; }
.success-button { background-color: green; color: #fff; pointer-events: none; }
.fail-button { background-color: darkred; color: #fff; pointer-events: none; }

.timer {
  font-size: 1.5rem;
  color: #0ff;
}

.button-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 400px;
  margin-top: 1rem;
}

.button-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Sliders */
.slider-track {
  position: relative;
  width: 100%;
  height: 14px;
  background: linear-gradient(to right, #555, #888, #555);
  border-radius: 7px;
  box-shadow: inset 0 0 5px #000, 0 0 10px #444;
}
.snap-line {
  position: absolute;
  bottom: 100%;
  width: 2px;
  height: 20px;
  background: #777;
}
.snap-line:nth-child(5) { left: 85%; }
.snap-line.active {
  background: #00ffff;
  box-shadow: 0 0 8px #00ffff;
}
.slider-thumb {
  position: absolute;
  top: -6px;
  width: 24px;
  height: 36px;
  background: linear-gradient(to bottom, #ccc, #888);
  border: 2px solid #444;
  border-radius: 4px;
  cursor: pointer;
  transform: translateX(-50%);
  touch-action: manipulation;
}

/* Keypad */
.keypad-container {
  width: 100%;
  max-width: 320px;
}
.keypad {
  width: 100%;
  background: linear-gradient(to bottom, #444, #222);
  border: 2px solid #666;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.key {
  width: 64px;
  height: 64px;
  background: #001144;
  border: 2px solid #00f;
  border-radius: 8px;
  color: #00f;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  touch-action: manipulation;
}
.key.flash { background: yellow; color: #000; }
.display {
  margin-top: 1rem;
  background: #000;
  border: 2px solid #666;
  width: 100%;
  text-align: center;
  padding: 0.5rem;
  font-size: 1.2rem;
  color: #0ff;
  font-family: monospace;
}

/* Wires */
.wire-set-wrapper {
  width: 100%;
  max-width: 320px;
}
.wire-set {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 40px;
  background: #222;
  border: 2px solid #444;
  border-radius: 10px;
  padding: 0 10px;
}
.wire {
  height: 12px;
  width: 60px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}
.wire.active {
  box-shadow: 0 0 10px 4px yellow;
  transform: scaleY(1.5);
}

/* Switches */
.switches {
  display: flex;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
}
.switch {
  width: 44px;
  height: 84px;
  background: #333;
  border: 2px solid #888;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
}
.switch-toggle {
  width: 100%;
  height: 50%;
  background: #666;
  position: absolute;
  left: 0;
  transition: all 0.3s;
}
.switch.on .switch-toggle { top: 0; background: #0f0; }
.switch.off .switch-toggle { bottom: 0; background: #444; }
.indicator {
  width: 20px;
  height: 20px;
  background: #222;
  border-radius: 50%;
  margin-top: 10px;
}
.indicator.on { background: lime; box-shadow: 0 0 12px lime; }

/* Description Section */
.body-intro {
  max-width: 900px;
  width: 100%;
  margin: 2rem auto;
  padding: 2rem 1rem;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #aa00ff;
  border-radius: 12px;
  box-shadow: 0 0 15px #aa00ff;
  font-family: 'Orbitron', sans-serif;
  animation: fadeIn 1.8s ease-out forwards;
  opacity: 0;
  box-sizing: border-box;
}
.intro-container h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  color: #cc00ff;
  text-align: center;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 4px #cc00ff;
}
.intro-container p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #00ff00;
  text-shadow: 0 0 3px #00ff00;
}
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Home Button */
.home-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  padding: 1rem 2rem;
  margin: 1.5rem auto 0 auto;
  font-weight: bold;
  border-radius: 10px;
  border: 3px solid var(--neon-yellow);
  background: var(--neon-cyan);
  color: #0e1a2b;
  box-shadow: 0 0 20px var(--neon-yellow);
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content;
}

.home-button:hover {
  background: var(--neon-yellow);
  color: #000;
  box-shadow: 0 0 35px var(--neon-cyan);
}

.home-button span.emoji {
  font-size: 2rem;
  line-height: 1;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
  .bombsquad-title {
    font-size: 1.6rem;
  }
  .bombsquad-subtitle {
    font-size: 0.85rem;
  }
}