html {
  background: #1e1a20;
  font-family: 'Bubblegum Sans', cursive;
}

body {
  margin: 0;
  overflow: hidden;
  user-select: none;
  color: #fff;
}

#root {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.player {
  position: fixed;
  width: 80px;
  height: 75px;
  z-index: 9;
}

.player .body {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 44px;
  height: 58px;
  background: #fff;
  transform: translate(-50%, 0);
  border-radius: 100% 100% 8px 8px;
  z-index: 2;
}

.player .overlay::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 48px;
  width: 44px;
  height: 23px;
  transform: translate(-50%, 0);
  border-radius: 0 0 8px 8px;
  background: #fff;
  z-index: 9;
}

.player .overlay::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 70px;
  width: 28px;
  height: 6px;
  transform: translate(-50%, 0);
  border-radius: 0 0 2px 2px;
  background: #888;
  z-index: 7;
}

.player .fins {
  position: absolute;
  z-index: 1;
  width: 40px;
  top: 40px;
  height: 24px;
  left: 50%;
  transform: translate(-50%, 0);
}

.player .fins::after,
.player .fins::before {
  content: '';
  position: absolute;
  top: 0%;
  right: 100%;
  width: 25px;
  height: 20px;
  transform: skewY(10deg);
  transform-origin: top right;
  background: #d6d7dd;
}

.player .fins::after {
  right: auto;
  left: 100%;
  transform-origin: top left;
  transform: skewY(-10deg);
}

.player .fins2 {
  position: absolute;
  width: 24px;
  top: 56px;
  height: 24px;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: -8;
}
.player .fins2::after,
.player .fins2::before {
  content: '';
  position: absolute;
  top: 0;
  right: 100%;
  width: 29px;
  height: 12px;
  transform: skewY(22deg);
  transform-origin: top right;
  background: #b8b9be;
  z-index: -8;
}

.player .fins2::after {
  right: auto;
  left: 100%;
  transform-origin: top left;
  transform: skewY(-22deg);
}

.player .head {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 50px;
  height: 60px;
  transform: translate(-50%, 0);
  border-radius: 50% 50% 0 0;
  background: #e2e2e2;
  box-shadow: 0 4px 0 6px #1e1a20;
  z-index: 3;
}

.player .glass {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 10px;
  background: #87f5f2;
  border-radius: 8px 8px 0 0;
  border: 1px solid #c3c3c3;
  z-index: 9;
}

.player .guns {
  position: absolute;
  top: 34px;
  width: 64px;
  left: 50%;
  transform: translate(-50%, -1px);
  z-index: -1;
}

.player .guns::after,
.player .guns::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 10px;
  box-shadow: 0 0 10px 1px rgba(20, 149, 255, 0.3);
  background: rgb(255, 255, 255);
  border-radius: 10px 10px 0 0;
  transform: rotate(8deg);
}

.player .guns::after {
  left: auto;
  right: 0;
  transform: rotate(-8deg);
}

.player .fire {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 22px;
  height: 30px;
  transform: translate(-50%, 0);
}

.player .fire::before {
  content: '';
  position: absolute;
  top: -11px;
  left: 50%;
  width: 8px;
  height: 40px;
  transform: translate3d(-50%, -30px, 0px) scaleX(0.6);
  border-radius: 100%;
  background: rgba(14, 255, 255, 0.692);
  animation: blueFire 2s infinite;
  box-shadow: 0 24px 14px 3px rgb(17, 73, 255);
  z-index: -1;
}

@keyframes blueFire {
  0%,
  100% {
    transform: translate3d(-50%, -30px, 0px) scaleX(0.6);
  }
  50% {
    transform: translate3d(-50%, -27px, 0px) scaleX(0.6);
  }
}

.player .fuel {
  position: absolute;
  top: 50px;
  left: 50%;
  height: 4px;
  width: 30px;
  border-radius: 1px;
  border: 2px solid #ddd;
  background: #ddd;
  transform: translate(-50%, 0);
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 1px;
}

.player .fuel span {
  flex-grow: 1;
  background: #fff;
  height: 100%;
}

.player .fuel span.active {
  background: #ff2929;
  border-radius: 1px;
}

.player .fire::after {
  content: '';
  position: absolute;
  top: -11px;
  left: 50%;
  width: 8px;
  height: 20px;
  transform: translate3d(-50%, -9px, 0px);
  border-radius: 100%;
  background: rgb(255, 200, 72);
  box-shadow: 0 6px 10px 3px rgb(255, 184, 32), 0 6px 20px 3px rgb(255, 77, 23);
  z-index: -1;
}

.player .fire span {
  position: absolute;
  top: 0;
  width: 30px;
  height: 30px;
  background: rgb(255, 77, 23);
  box-shadow: 0 6px 8px 3px rgb(255, 184, 32), 0 6px 20px 4px rgb(255, 77, 23);
  border-radius: 100%;
  opacity: 0;
  transform: scale(0);
  animation: fire 2s infinite;
}

@keyframes fire {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -10px, 0px) scale(0.1);
  }
  10% {
    opacity: 1;
    transform: translate3d(-50%, -10px, 0px) scale(1);
  }

  100% {
    transform: translate3d(-50%, -3px, 0px);
    opacity: 0;
  }
}

.bullet {
  position: absolute;
  transform: translate(-50%, 0);
  width: 5px;
  height: 5px;
  background: #fff;
  box-shadow: 0 0 16px 1px hsl(207, 100%, 54%);
  border-radius: 100px;
}

.thunder-pulse {
  position: fixed;
  transform: translate(-50%, -50%);
  border: 4px solid #00ff00;
  background: rgba(0, 255, 0, 0.1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99;
  box-shadow: 0 0 20px 5px #00ff00;
}

.thunder-pulse.leaving {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.2);
  transition: 0.4s opacity, 0.4s transform;
}

@keyframes thunder {
  0% {
    opacity: 1;
  }

  30% {
    opacity: 0;
  }

  40% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  }

  70% {
    opacity: 1;
  }
}

.indicators-bottom-right {
  display: none;
}

.indicators-bottom-right .icon {
  font-size: 30px;
  font-weight: bold;
  height: 34px;
  display: block;
}

.indicators-bottom-right .subtitle {
  font-size: 14px;
  color: #d5d5d5;
  display: block;
}

.indicators-bottom-right small {
  font-size: 1.25rem;
}

.bullets-counter {
}

.bullets-counter .icon {
  height: 28px;
}
.bullets-counter .subtitle {
  font-size: 18px;
}

.thunder-indicator {
  position: relative;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 20, 20, 0.7);
  padding: 10px 18px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  touch-action: manipulation;
  overflow: hidden;
  --progress: 0%;
}

/* Background progress fill */
.thunder-indicator::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--progress);
  background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.2));
  transition: 0.4s width cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 0;
}

.thunder-indicator:active {
  transform: scale(0.95);
}

.thunder-indicator:not(.active) {
  opacity: 0.8;
}

.thunder-indicator.active {
  border-color: #00ff00;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
  animation: pulseReady 1.5s infinite;
}

.thunder-indicator .icon, 
.thunder-texts {
  position: relative;
  z-index: 1;
}

@keyframes pulseReady {
  0% { border-color: rgba(0, 255, 0, 0.4); }
  50% { border-color: rgba(0, 255, 0, 1); }
  100% { border-color: rgba(0, 255, 0, 0.4); }
}

.thunder-indicator .icon::before {
  content: '🌀';
  font-size: 34px;
  display: block;
  filter: drop-shadow(0 0 10px #00ff00);
}

.thunder-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.thunder-texts .subtitle {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}

.thunder-texts .progress-text {
  font-size: 12px;
  color: #00ff00;
  font-family: monospace;
}

.indicators-bottom-left {
  position: fixed;
  left: 2rem;
  bottom: 2.75rem;
  display: flex;
  align-items: flex-end;
  gap: 2rem;
}

.indicators-bottom-left .texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.indicators-bottom-left .life {
  position: relative;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
}

.indicators-bottom-left .life .progress {
  position: relative;
  background: rgba(118, 121, 131, 0.2);
  border-radius: 6px;
  margin-right: 1rem;
  height: 10px;
  width: 70px;
}

.indicators-bottom-left .life .value {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: rgba(189, 7, 7, 0.4);
  border-radius: 6px;
}

.indicators-bottom-left .text {
  font-size: 14px;
  width: 50px;
}

.enemy {
  position: absolute;
  width: 30px;
  height: 30px;
  transform: scale(1);
  transition: 0.2s transform;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.enemy.damaged {
  transform: scale(0.9);
  opacity: 0.7;
}

.enemy.destroy {
  animation: destroyEnemy 0.5s forwards;
}

@keyframes destroyEnemy {
  0% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(0);
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal h1 {
  font-size: 2.25rem;
}

.modal h2 {
  font-size: 1.375rem;
}

.modal h3 {
  font-size: 1rem;
  margin: 0;
}

.modal.hidden {
  display: none;
}

.modal .content {
  border-radius: 20px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.4);
  padding: 1rem 2rem;
  background: rgba(24, 25, 26, 0.6);
  text-align: center;
  backdrop-filter: blur(12px);
}

.modal.game-over .content {
  border: 3px solid #d46700;
}

.modal.game-over.success .content {
  border: 3px solid #09c447;
}

.modal a,
.modal button {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  color: #fff;
  display: inline-block;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.share-twitter {
  background: #1da1f2;
  text-decoration: none;
  margin: 0.5rem 0 1rem 0;
}

.share-twitter:focus {
  box-shadow: 0 0 0 4px rgba(7, 160, 255, 0.5);
}

button.restart {
  border: none;
  background: #fff;
  color: #000;
  font-weight: bold;
}

button.restart:focus {
  box-shadow: 0 0 0 4px rgba(7, 160, 255, 0.5);
}

.modal.quiz .content {
    max-width: 500px;
    width: 90%;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #fff;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.option-btn.correct {
    background: #09c447;
    border-color: #09c447;
}

.option-btn.wrong {
    background: #bd0707;
    border-color: #bd0707;
}

.enemy.quiz-item {
    z-index: 10;
    filter: drop-shadow(0 0 10px #00ff00);
    animation: quizPulse 2s infinite ease-in-out;
}

.enemy.quiz-item::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px dashed #00ff00;
    border-radius: 50%;
    animation: rotateRing 3s linear infinite;
    opacity: 0.5;
}

@keyframes quizPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px #00ff00); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 20px #00ff00); }
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.enemy-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    text-shadow: 1px 1px 2px #000;
    pointer-events: none;
    font-family: 'Bubblegum Sans', cursive;
}

