html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  /* Prevent fixed header from overlapping anchor targets */
  height: 100%;
}

body {
  margin: 0;
  font-family: monospace;
  /* Dark fallback colour so the page never shows white when image doesn't fill area */
  background-color: #04040a;
  background-size: cover;
  /* fill the viewport */
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: scroll;
  /* allow background to move with page scroll */
  min-height: 100vh;
  cursor: url(media/img/spr_gui_vida.cur), default;
}

/* Background video: covers viewport, sits behind content */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

/* Hero starfield canvas */
.hero-caixa {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: linear-gradient(180deg, rgba(4, 4, 10, 0.2), rgba(4, 4, 10, 0.6));
}

.hero-stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}

#hero-title {
  position: relative;
  z-index: 2;
  color: rgb(0, 238, 255);
  text-shadow: 0 0 18px rgba(0, 238, 255, 0.45);
  mix-blend-mode: screen;
}

/* Custom cursor visuals (optimized) */
.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 10000;
  transform: translate3d(0, 0, 0);
  background: url('media/img/spr_gui_vida.png') center/contain no-repeat;
  transition: transform 120ms cubic-bezier(.2, .9, .2, 1), opacity 120ms linear;
  will-change: transform, opacity;
  border-radius: 50%;
  opacity: 0.98;
}

.custom-cursor.hover {
  transform: translate3d(0, 0, 0) scale(1.12);
  animation: cursorGlow 1200ms linear infinite;
}

/* On small screens, ensure the background fully covers the viewport and use the dark fallback colour */
@media (max-width: 800px) {
  body {
    background-size: cover;
    background-attachment: scroll;
    background-position: center center;
    background-color: #0a0404;
  }
}

#sobre {
  color: rgb(215, 250, 228);
}

p {
  color: #BFBFBF;
  font-size: 15px;
}

li {
  flex-direction: column;
  color: #BFBFBF;
  font-size: 15px;
}

#download-section>p {
  font-size: 15px;
  color: #DDD;
}

#how-use {
  height: 150px;
  width: 100%;
  display: flex;
  justify-content: center;
}

#como-jogar {
  width: 100%;
  max-width: 990px;
  margin: auto;
  padding-top: 20px;
}

#trailer-title,
#como-title {
  font-size: 15px;
  color: darkgray;
  filter: drop-shadow(0 0 0px rgba(179, 102, 255, 0.6)) drop-shadow(0 0 0px rgba(0, 204, 255, 0.4));
  text-shadow: 0 0 10px rgba(179, 102, 255, 0.5), 0 0 0px rgba(0, 204, 255, 0.3);
}

.ask-contact {
  width: 100%;
  max-width: 990px;
  margin: auto;
  justify-content: center;
  align-items: center;
  text-align: left;
  font-size: 17px;
  color: burlywood;

}

.nao-desista {
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  text-align: left;
}

#contato-title {
  text-align: left;
  color: #BFBFBF;
  filter: drop-shadow(0 0 0px rgb(0, 0, 0)) drop-shadow(0 0 0px rgb(255, 255, 255));
  text-shadow: 0 0 2px rgb(0, 0, 0), 0 0 0px rgb(0, 0, 0);
}

.footer {
  margin: auto;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 850px;
  padding: 1em;
  color: #888;
  font-size: 15px;
}

p>a {
  color: aqua;
}

p {
  font-size: 25px;
}

.sobre {
  display: flex;
}

#capturas {
  text-align: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 5px;
}

header {
  width: 100%;
  color: white;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0);
  height: 80px;
  padding: 0 2em;
  z-index: 9999;
}

/* Prevent fixed header from overlapping anchor targets when navigating via #links */
:root {
  --header-offset: 92px;
}

/* also ensure specific anchored elements have a margin so content is not hidden */
[id] {
  scroll-margin-top: calc(var(--header-offset) - 8px);
}


.logo-barra {
  height: 120px;
  /* Aumentado de 80px */
  width: auto;
  /* Mantém proporção original */
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
  margin-left: 8px;
  margin-top: 20px;
  /* descer um pouco a imagem */
}

/* Player icon to the right of the nav tabs in the header */
.player-icon {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-left: 30px;
  /* pequeno espaço entre abas e ícone */
  margin-right: 50px;
  /* espaço desde a borda direita */
  align-self: center;
  transform-origin: center center;
  transform: rotate(-90deg);
  transition: transform 0.18s ease, opacity 0.18s ease;
  opacity: 1;
  position: relative;
  z-index: 2;
}

.player-icon:hover {
  transform: rotate(-90deg) scale(1.08);
}

/* Flip state: rotate to opposite direction (used during return animation) */
.player-icon.flip {
  transform: rotate(90deg);
  transition: transform 220ms ease;
}

.player-icon.flip:hover {
  transform: rotate(90deg) scale(1.08);
}

.logo-barra.show {
  animation: slideInRight 0.5s ease forwards;
}

.logo-barra.hide {
  animation: slideOutLeft 0.5s ease forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

h1 {
  font-size: 2em;
  margin: 0.5em;
  color: rgb(0, 238, 255);
}

#sobre-objetivo {
  font-size: 30px;
  text-align: center;
}

.sessao-inimigos {
  border: 2px solid #0ff;
  background-color: rgba(4, 4, 10, 0.5);
  border-radius: 0px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), inset 0 0 10px rgba(0, 255, 255, 0.1);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.sessao-inimigos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(0deg,
      rgba(0, 255, 255, 0.02) 0px,
      transparent 1px,
      transparent 2px,
      rgba(0, 255, 255, 0.02) 3px);
  pointer-events: none;
  animation: scanlines 8s linear infinite;
  z-index: 1;
}

.sessao-inimigos>li {
  font-size: 18px;
  text-align: left;
  color: #0ff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
  position: relative;
  z-index: 2;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 3px solid #00ff88;
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.05) 0%, transparent 100%);
  transition: all 0.3s ease;
}

.sessao-inimigos>li:hover {
  border-left-color: #0ff;
  box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.2);
  padding-left: 1.5rem;
}

.system-requirements-card {
  position: relative;
  background: rgba(4, 4, 10, 0.88);
  border: 1px solid rgba(0, 255, 255, 0.18);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.08);
  padding: 2rem;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #0ff;
  font-size: 2rem;
  line-height: 1.1;
  position: relative;
}

.card-title .cpu-icon {
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
}

.card-title .title-text {
  position: relative;
}

.card-title .title-text::before,
.card-title .title-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.card-title .title-text::before {
  color: rgba(0, 255, 255, 0.72);
  z-index: -1;
  animation: glitchTop 2.4s linear infinite;
}

.card-title .title-text::after {
  color: rgba(0, 170, 255, 0.55);
  z-index: -2;
  animation: glitchBottom 2.6s linear infinite;
}

@keyframes glitchTop {
  0%, 100% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  20% { transform: translate(-2px, -1px); clip-path: inset(2px 0 2px 0); }
  40% { transform: translate(2px, 1px); clip-path: inset(4px 0 6px 0); }
  60% { transform: translate(-1px, 2px); clip-path: inset(10px 0 0 0); }
  80% { transform: translate(1px, -2px); clip-path: inset(0 0 8px 0); }
}

@keyframes glitchBottom {
  0%, 100% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  15% { transform: translate(1px, 2px); clip-path: inset(0 0 4px 0); }
  35% { transform: translate(-1px, -1px); clip-path: inset(6px 0 2px 0); }
  55% { transform: translate(2px, -2px); clip-path: inset(0 0 8px 0); }
  75% { transform: translate(-2px, 1px); clip-path: inset(2px 0 4px 0); }
}

.windows-badge {
  padding: 0.45rem 0.85rem;
  background: #f8d366;
  color: #2d1a04;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 0 18px rgba(248, 211, 102, 0.3);
  text-transform: uppercase;
}

.warning-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 2px solid #ff9b41;
  border-radius: 12px;
  background: rgba(255, 157, 65, 0.08);
  animation: pulseBorder 2s ease-in-out infinite;
  margin-bottom: 1.3rem;
}

.warning-icon {
  color: #ffb347;
  font-size: 1.35rem;
  margin-top: 0.1rem;
}

.warning-box p {
  margin: 0;
  color: #e8e8e8;
  line-height: 1.6;
}

@keyframes pulseBorder {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 155, 65, 0.35); }
  50% { box-shadow: 0 0 0 12px rgba(255, 155, 65, 0.08); }
}

.requirements-list {
  margin-bottom: 1.4rem;
}

.requirements-intro {
  margin: 0 0 0.8rem;
  color: #d7ffff;
}

.requirement-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.requirement-points li {
  position: relative;
  padding-left: 1.65rem;
  color: #bdfcff;
  font-size: 1rem;
  line-height: 1.65;
}

.requirement-points li::before {
  content: '►';
  position: absolute;
  left: 0;
  top: 0;
  color: #2ce8ff;
  animation: pulseCyan 1.75s ease-in-out infinite;
}

@keyframes pulseCyan {
  0%, 100% { color: #2ce8ff; text-shadow: 0 0 4px rgba(44, 232, 255, 0.7); }
  50% { color: #8affff; text-shadow: 0 0 12px rgba(138, 255, 255, 0.85); }
}

.card-divider {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 255, 255, 0), rgba(0, 255, 255, 0.8), rgba(0, 255, 255, 0));
  background-size: 200% 100%;
  animation: slideGradient 4s linear infinite;
  margin: 0.75rem 0 1.2rem;
}

@keyframes slideGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.terminal-status-line {
  font-family: monospace;
  color: #c4fffe;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 255, 255, 0.15);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
}

.terminal-prompt {
  color: #84ffff;
  font-weight: 700;
}

.terminal-message {
  color: #d4faff;
}

.terminal-cursor {
  color: #84ffff;
  animation: blinkCursor 0.9s steps(2, start) infinite;
}

@keyframes blinkCursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

#sobre-inimigos {

  font-size: 35px;
  text-align: center;

}

#inimigos-titulo {
  margin: auto;
  width: 100%;
  max-width: 720px;
  text-align: left;
  color: #0ff;
  font-size: 20px;
  text-align: left;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

nav a {
  display: flex;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  animation: glowShift 6s infinite linear;
  filter: blur(10px);
  pointer-events: none;
  z-index: -2;
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

/* Tilt enter/exit handled via JS classes for reliable enter/leave animations */
nav a.tilt-enter {
  animation: tiltEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

nav a.tilt-exit {
  animation: tiltExit 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes tiltEnter {
  0% {
    transform: scale(1) rotateZ(0deg);
  }

  60% {
    transform: scale(1.25) rotateZ(-6deg);
  }

  100% {
    transform: scale(1.2) rotateZ(-3deg);
  }
}

@keyframes tiltExit {
  0% {
    transform: scale(1.2) rotateZ(-3deg);
  }

  100% {
    transform: scale(1) rotateZ(0deg);
  }
}

nav a:hover::after {
  opacity: 1;

}

nav img {
  max-width: 150px;
  max-height: 150px;
  width: 200px;
  height: auto;
  margin: 0 0px;
  /* Adiciona uma margem entre as imagens */
  display: block;
}

nav img[src="media/img/keycaps/Keycap_download.png"],
.download_tamanho {
  max-width: 195px !important;
  max-height: 120px !important;
  object-fit: contain;
  max-width: none;
}

nav img[src="media/img/keycaps/Keycap_sobre.png"] {
  max-width: 120px !important;
  max-height: 120px !important;
}

nav a[href="#sobre"] {
  margin-right: 10px;
}

/* hide nav tabs initially when grouped with player; reveal when .header-right.open */
.header-right nav {
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
}

.header-right.open nav {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.header-right.open {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 410px;
}

header {
  justify-content: flex-start;
  /* manter itens à esquerda; `.header-right` empurra para a direita */
  gap: 0;
}

/* Container para agrupar nav + ícone do jogador no canto direito */
.header-right {
  margin-left: auto;
  /* empurra o grupo para o lado direito do header */
  display: flex;
  align-items: center;
  gap: 8px;
}

/* player-wrap container and launch animation */
.player-wrap {
  position: relative;
  display: inline-block;
  z-index: 2;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ensure the player uses the same custom cursor as the body (prevents default pointer/glow) */
.player-wrap {
  cursor: inherit;
}

/* when set, suppress the nav link glow while hovering the player */
.header-right.suppress-nav-glow nav a::after {
  opacity: 0 !important;
}

/* when clicked, parent translates to simulate ship advancing */
.player-wrap.launch {
  transform: translateX(-48px) translateY(-6px);
}

/* Message next to the player GIF with animated glow matching the header colors */
/* message positioned absolutely so it does not affect layout or animations */
.player-message {
  position: absolute;
  /* place to the left of the GIF, outside normal flow */
  right: calc(100% + 16px);
  top: 50%;
  padding: 10px 16px;
  /* more breathing room */
  background: transparent;
  /* no background fill */
  color: #EAFBFF;
  font-family: inherit;
  /* use same font as site */
  border-radius: 12px;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 0 6px rgba(234, 251, 255, 0.9), 0 0 8px rgba(179, 102, 255, 0.15);
  font-size: 1rem;
  letter-spacing: 0.6px;
  /* increased letter spacing to avoid compact look */
  line-height: 1.2;
  z-index: 3;
  cursor: inherit;
  outline: none;
  display: inline-block;
  min-width: 180px;
  /* avoid overly compact width */
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, visibility 160ms linear;
  animation: levitate 3s ease-in-out infinite;
}

/* decorative arrow pointing to the GIF; absolutely positioned so it doesn't affect layout */
.player-arrow {
  position: absolute;
  /* sit between message and gif */
  right: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
  /* must not interfere with interactions */
}

.player-arrow path {
  stroke: rgba(234, 251, 255, 0.95);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: stroke 300ms ease, filter 300ms ease;
  filter: drop-shadow(0 0 6px rgba(179, 102, 255, 0.7)) drop-shadow(0 0 10px rgba(0, 204, 255, 0.45));
}

@keyframes levitate {

  0%,
  100% {
    transform: translateY(-50%);
  }

  50% {
    transform: translateY(-50%) translateY(-6px);
  }
}

@keyframes levitateSimple {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.player-message:active {
  transform: translateY(0) scale(0.99);
}

main {
  padding: 100px 1em 1em 1em;
  /* 100px de espaço no topo */
  max-width: 1920px;
  margin: auto;
}

section {
  margin-bottom: 2em;
}

h2 {
  color: antiquewhite;
  background: linear-gradient(90deg, #b366ff, #00ccff, #b366ff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientShift 6s infinite linear;
  filter: drop-shadow(0 0 0px rgba(179, 102, 255, 0.6)) drop-shadow(0 0 0px rgba(0, 204, 255, 0.4));
  text-shadow: 0 0 8px rgba(179, 102, 255, 0.5), 0 0 0px rgba(0, 204, 255, 0.3);
}

h3 {
  color: #f7ff19;
  background-clip: text;
  animation: gradientShift 6s infinite linear;
  filter: drop-shadow(0 0 0px rgb(255, 255, 255)) drop-shadow(0 0 0px rgb(255, 255, 255));
  text-shadow: 0 0 2px rgb(255, 255, 255), 0 0 0px rgb(255, 255, 255);
}

#download {
  color: #EAFBFF;
  filter: drop-shadow(0 0 10px rgb(176, 255, 102)) drop-shadow(0 0 0px rgba(255, 0, 0, 0.4));
  text-shadow: 0 0 8px rgba(102, 255, 191, 0.5), 0 0 0px rgba(255, 0, 0, 0.3);
}

/* Deploy Button Sci-Fi Styling */
.deploy-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

#install.deploy-button {
  position: relative;
  height: auto;
  background-color: transparent;
  font-family: inherit;
  color: #0ff;
  font-weight: bold;
  padding: 15px 30px;
  border: 2px solid #0ff;
  border-radius: 0px;
  cursor: none !important;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1rem;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.6), inset 0 0 15px rgba(0, 255, 255, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

#install.deploy-button:hover {
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.9), inset 0 0 25px rgba(0, 255, 255, 0.3), 0 0 40px rgba(0, 255, 136, 0.4);
  color: #00ff88;
  border-color: #00ff88;
}

/* Cursor piscante */
.cursor-blink {
  display: inline-block;
  animation: blink 0.7s infinite;
  margin-left: 4px;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* Progress Bar */
.progress-bar-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: rgba(0, 255, 255, 0.2);
  overflow: hidden;
  border-radius: 0px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ff, #00ff88, #0ff);
  width: 0%;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.8), 0 0 25px rgba(0, 255, 136, 0.6);
  transition: width 0.05s linear;
}

/* Deploy text */
.deploy-text {
  display: inline-block;
  position: relative;
  z-index: 2;
}

/* System Wrapper */
.deploy-wrapper {
  margin: 2rem 0;
  perspective: 1000px;
}

.deploy-system {
  border: 2px solid #0ff;
  background-color: rgba(4, 4, 10, 0.5);
  border-radius: 0px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), inset 0 0 10px rgba(0, 255, 255, 0.1);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.deploy-system::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(0deg,
      rgba(0, 255, 255, 0.02) 0px,
      transparent 1px,
      transparent 2px,
      rgba(0, 255, 255, 0.02) 3px);
  pointer-events: none;
  animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(10px);
  }
}

.system-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #0ff;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  font-family: monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
  padding-bottom: 0.5rem;
}

.system-status {
  animation: pulse 2s infinite;
}

.system-time {
  font-size: 0.75rem;
  animation: glitch 1s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

@keyframes glitch {

  0%,
  100% {
    text-shadow: 2px 0 #0ff, -2px 0 #00ff88;
  }

  50% {
    text-shadow: -2px 0 #0ff, 2px 0 #00ff88;
  }
}

.system-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #0ff;
  font-size: 0.75rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(0, 255, 255, 0.3);
  padding-top: 0.5rem;
  font-family: monospace;
  text-transform: uppercase;
}

.download-status {
  animation: pulse 2s infinite;
}

.download-size {
  animation: pulse 2s infinite 0.5s;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 0%;
  }

  100% {
    background-position: 0% 0%;
  }
}

/* Larger, centered title for the main (middle) box */
#hero-title {
  font-size: 60px;
  /* increased size */
  text-align: center;
  margin: 70px;
  line-height: 1.05;
  letter-spacing: 0.2px;
  filter: drop-shadow(0 0 5px rgba(0, 238, 255, 0.8)) drop-shadow(0 0 1px rgba(0, 204, 255, 0.4));
  text-shadow: 0 0 0px rgba(255, 102, 102, 0.5), 0 0 1px rgba(0, 204, 255, 0.3);
  /*rgba(0, 238, 255, 0.8)*/
}



a,
button,
.clicavel {
  cursor: none !important;
}



.caixa {
  border: #00ffff 1px solid;
  border-radius: 12px;
  padding: 2em;
  margin: 2em auto;
  max-width: 1000px;
  text-align: justify;
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  animation: glowShift 6s infinite linear;
  z-index: 1;
}

/* Techy blue edge glow for dark sections: glow limited to borders only */
.caixa,
.video-wrapper,
.download,
.devlog-wrap,
.enemy-modal-content,
.enemy-modal-gif-container,
.enemies-buttons-container,
.transmission,
.terminal-window,
.loader-inner,
.loader-progress,
.deploy-system,
.deploy-container,
.deploy-wrapper,
.ask-contact,
.nao-desista {
  position: relative;
  /* ensure pseudo-element aligns */
}

.caixa::before,
.video-wrapper::before,
.download::before,
.devlog-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  /* align exactly with box edges */
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  /* sit behind element content */
  background: transparent;
  /* no fill */
  box-shadow: 0 0 8px rgba(0, 180, 255, 0.9), 0 0 20px rgba(0, 110, 255, 0.55);
  opacity: 0.18;
  mix-blend-mode: screen;
  transition: opacity 360ms ease, transform 360ms ease;
  will-change: opacity, transform;
}

/* Slightly stronger and animated glow on hover/focus to feel interactive */
.caixa:hover::before,
.video-wrapper:hover::before,
.download:hover::before,
.devlog-wrap:hover::before {
  opacity: 0.36;
  transform: scale(1.02);
}

/* sessao-inimigos already uses ::before; provide subtle outline via ::after */
.sessao-inimigos::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: transparent;
  box-shadow: 0 0 6px rgba(0, 175, 255, 0.85), 0 0 14px rgba(0, 105, 255, 0.45);
  opacity: 0.14;
  mix-blend-mode: screen;
  transition: opacity 360ms ease, transform 360ms ease;
}

.sessao-inimigos:hover::after {
  opacity: 0.28;
  transform: scale(1.01);
}

@keyframes techPulse {
  0% {
    opacity: 0.12;
  }

  50% {
    opacity: 0.22;
  }

  100% {
    opacity: 0.12;
  }
}

/* gentle ongoing pulse for subtle life (affects only the shadow opacity) */
.caixa::before,
.video-wrapper::before,
.download::before,
.devlog-wrap::before,
.sessao-inimigos::after {
  animation: techPulse 6s ease-in-out infinite;
}

/* Center headings inside each .caixa (h1/h2/h3) */
.caixa h1,
.caixa h2,
.caixa h3 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.25rem;
  /* reduce top gap above titles */
  margin-bottom: 0.6rem;
}

/* Slightly larger h3 inside boxes for better hierarchy */
.caixa h3 {
  font-size: 1.4rem;
}

/* Make all h2 inside .caixa match the hero title size */
.caixa h2 {
  font-size: 2.6rem;
}

@keyframes caiaGlow {
  0% {
    box-shadow: 0 0 10px rgba(179, 102, 255, 0.6), 0 0 20px rgba(0, 204, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(179, 102, 255, 0.9), 0 0 30px rgba(0, 204, 255, 0.7);
  }

  100% {
    box-shadow: 0 0 10px rgba(179, 102, 255, 0.6), 0 0 20px rgba(0, 204, 255, 0.3);
  }
}

.hero-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.media-frame {
  position: relative;
  display: inline-block;
}

.gif-topo {
  display: block;
  width: 600px;
  height: auto;
  margin: 0.5em auto 1em auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-top: -100px;
  /* Ajuste o valor conforme necessário */
  user-select: none;
  -webkit-user-drag: none;
  image-rendering: auto;
  will-change: transform, opacity;
}

/* overlay to intercept pointer actions on the media (prevents right-click/drag)
   This increases difficulty of directly saving the GIF but does not fully prevent copying */
.media-lock {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: transparent;
}

/* Loading overlay (full-screen) */
#site-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.88));
  z-index: 20000;
  transition: opacity 420ms ease, visibility 420ms ease;
  opacity: 1;
  visibility: visible;
  -webkit-font-smoothing: antialiased;
}

#site-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
  color: #EAFBFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.loader-logo {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
}

.spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(234, 251, 255, 0.12);
  border-top-color: #EAFBFF;
  animation: loader-spin 900ms linear infinite;
  box-sizing: border-box;
}

/* subtle pulse on logo to indicate activity */
.loader-logo {
  animation: loader-pulse 1600ms ease-in-out infinite;
}

.loader-progress {
  width: 220px;
  height: 8px;
  background: rgba(234, 251, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.loader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #b366ff, #00ccff);
  transition: width 260ms ease;
}

@keyframes loader-pulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
  }

  50% {
    transform: scale(1.03);
    filter: drop-shadow(0 12px 34px rgba(0, 0, 0, 0.6));
  }

  100% {
    transform: scale(1);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
  }
}

.loader-text {
  font-size: 1rem;
  color: rgba(234, 251, 255, 0.95);
  font-weight: 600;
  letter-spacing: 0.4px;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Floating up-arrow in bottom-right corner */
.corner-up {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 64px;
  height: auto;
  z-index: 900;
  /* below the custom cursor (which is z-index:10000) */
  display: block;
  opacity: 0;
  /* hidden by default */
  transform: translateY(6px);
  transition: transform 220ms ease, opacity 220ms ease;
  pointer-events: none;
}

.corner-up img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
}

.corner-up:hover {
  transform: translateY(-6px) scale(1.03);
  opacity: 1;
}

@media (max-width: 480px) {
  .corner-up {
    display: none;
  }
}

/* Add animated glow behind the floating up-arrow, matching nav tab glow */
.corner-up {
  /* create stacking context for pseudo-element */
  isolation: isolate;
}

.corner-up img {
  position: relative;
  z-index: 2;
}

/* Promote frequently-transformed elements to their own layer to reduce repaints */
.corner-up img,
.player-wrap,
.player-icon,
.gif-topo {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.corner-up:hover::after {
  opacity: 0.85;
  transform: translate(-50%, -50%) scale(1.02);
  animation-play-state: running;
}

/* visible state controlled by JS */
.corner-up.show {
  opacity: 0.95;
  transform: translateY(0);
  pointer-events: auto;
}

/* Message beside corner-up image (copies .player-message style) */
.corner-message {
  position: fixed;
  right: 86px;
  /* slightly closer to the corner icon for balance */
  bottom: 20px;
  padding: 4px 18px;
  background: transparent;
  color: #EAFBFF;
  font-family: inherit;
  border-radius: 8px;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 0 6px rgba(234, 251, 255, 0.9), 0 0 8px rgba(179, 102, 255, 0.15);
  font-size: 1rem;
  letter-spacing: 0.2px;
  line-height: 1.05;
  z-index: 950;
  /* below cursor (10000) but above page content */
  pointer-events: none;
  /* decorative only; enabled when visible */
  text-align: center;
  transition: opacity 220ms ease, transform 220ms ease;
  opacity: 0;
  /* hidden by default */
  transform: translateY(6px);
  animation: levitate 3s ease-in-out infinite;
  transform-origin: center;
  max-width: 250px;
  /* allow a bit more width so lines fit nicely */
  white-space: normal;
  /* allow wrapping */
  overflow: visible;
  text-overflow: clip;
  word-wrap: break-word;
}

@media (max-width: 640px) {
  .corner-message {
    display: none;
  }
}

/* show state controlled by JS (appears together with .corner-up) */
.corner-message.show {
  opacity: 0.95;
  transform: translateY(0);
  pointer-events: auto;
}

/* Responsive video inside .caixa - smaller by default */
.video-wrapper {
  width: 80%;
  max-width: 640px;
  /* cap the video width */
  margin: 0.5rem auto 1rem auto;
}

.trailer-video {
  width: 100%;
  height: auto;
  /* preserve original aspect ratio */
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* Play button overlay for trailer */
.play-button-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 5;
  border-radius: 8px;
}

.play-button-overlay.visible {
  display: flex;
  animation: fadeInPlay 420ms ease;
}

@keyframes fadeInPlay {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.85), rgba(0, 150, 255, 0.75));
  border: 2px solid #00ffff;
  color: white;
  font-size: 32px;
  cursor: url(media/img/spr_gui_vida.cur), pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 280ms ease;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), inset 0 0 15px rgba(0, 255, 255, 0.2);
  will-change: transform, box-shadow;
}

.play-button:hover {
  transform: scale(1.12);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.8), inset 0 0 20px rgba(0, 255, 255, 0.4);
  background: linear-gradient(135deg, rgba(0, 220, 255, 0.95), rgba(0, 170, 255, 0.85));
}

.play-button:active {
  transform: scale(1.06);
}

@media (max-width: 640px) {
  .video-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .trailer-video {
    height: auto;
  }
}

/* Mobile / small-screen adjustments to prevent layout break */
@media (max-width: 720px) {
  header {
    height: auto;
    padding: 8px 12px;
    align-items: center;
    gap: 8px;
  }

  .logo-barra {
    height: 56px;
    margin-top: 0;
    margin-left: 8px;
  }

  nav img {
    width: auto;
    max-width: 110px;
    height: auto;
  }

  nav {
    gap: 6px;
  }

  .header-right {
    gap: 6px;
  }

  .player-icon {
    height: 40px;
    margin-left: 12px;
    margin-right: 12px;
    transform: rotate(-90deg);
  }

  .player-message {
    display: none;
  }

  .player-wrap.launch {
    transform: translateX(-18px) translateY(-4px);
  }

  .gif-topo,
  img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 0;
  }

  .sobre {
    flex-direction: column;
    gap: 12px;
  }

  .caixa {
    padding: 1rem;
    margin: 1rem;
  }

  #hero-title,
  .caixa h2 {
    font-size: 1.6rem;
  }

  p,
  li {
    font-size: 1rem;
  }

  nav img[src="media/img/keycaps/Keycap_download.png"],
  .download_tamanho {
    max-width: 140px !important;
    max-height: 90px !important;
  }
}

/* Small phones */
@media (max-width: 420px) {
  header {
    padding: 6px 8px;
  }

  .logo-barra {
    height: 48px;
  }

  nav img {
    max-width: 90px;
  }

  .corner-up {
    right: 12px;
    bottom: 12px;
    width: 48px;
  }

  main {
    padding-top: 88px;
  }

  /* keep space for fixed header */
  .player-icon {
    height: 36px;
    margin-right: 10px;
  }

  .caixa {
    padding: 0.8rem;
    margin: 0.8rem;
  }

  .gif-topo {
    margin-top: -40px;
  }

  img {
    border-radius: 4px;
  }
}

/* Ensure images never force horizontal scroll */
img,
.gif-topo,
.trailer-video {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

/* Debug helpers removed */

/* ===== TERMINAL TYPEWRITER STYLES ===== */

.terminal-window {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 20, 20, 0.9));
  border: 3px solid #0ff;
  border-radius: 8px;
  font-family: 'Courier New', 'Courier', monospace;
  color: #0ff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2), inset 0 0 20px rgba(0, 255, 255, 0.05);
  overflow: hidden;
  animation: terminalGlow 3s ease-in-out infinite;
}

@keyframes terminalGlow {

  0%,
  100% {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2), inset 0 0 20px rgba(0, 255, 255, 0.05);
  }

  50% {
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.3), inset 0 0 25px rgba(0, 255, 255, 0.08);
  }
}

.terminal-header {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 50, 50, 0.5));
  border-bottom: 2px solid #0ff;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.terminal-title {
  flex: 1;
  color: #0ff;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.terminal-button {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: url(media/img/spr_gui_vida.cur), pointer;
  border: 1px solid #0ff;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terminal-button.minimize {
  background: #00ff88;
}

.terminal-button.maximize {
  background: #0ff;
}

.terminal-button.close {
  background: #00ffaa;
}

.terminal-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px currentColor;
}

.terminal-content {
  padding: 1.5rem;
  min-height: 400px;
  max-height: 600px;
  overflow-y: auto;
  position: relative;
  background: linear-gradient(180deg, rgba(0, 30, 30, 0.3), rgba(0, 20, 20, 0.5));
  line-height: 1.8;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 0.95rem;
}

/* Scrollbar estilizado */
.terminal-content::-webkit-scrollbar {
  width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
  background: rgba(0, 255, 255, 0.05);
}

.terminal-content::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 255, 0.3);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 255, 0.5);
}

.terminal-text {
  color: #0ff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
  letter-spacing: 0.5px;
  word-spacing: 2px;
  min-height: 100%;
}

.terminal-cursor {
  display: inline-block;
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
  margin-left: 2px;
  animation: cursorBlink 1s infinite;
  opacity: 1;
}

@keyframes cursorBlink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

/* Linha de scan no terminal (efeito CRT) */
.terminal-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
      rgba(255, 107, 107, 0.03),
      rgba(255, 107, 107, 0.03) 1px,
      transparent 1px,
      transparent 2px);
  z-index: 1;
  border-radius: 8px;
}

/* Responsivo */
@media (max-width: 768px) {
  .terminal-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .terminal-title {
    word-break: break-word;
  }

  .terminal-content {
    padding: 1rem;
    min-height: 300px;
    max-height: 500px;
    font-size: 0.85rem;
  }

  .terminal-window {
    border-width: 2px;
    border-radius: 4px;
  }
}

/* ===== ENEMIES SECTION STYLES ===== */

.enemies-buttons-container,
.enemies-buttons-container *,
.enemy-modal,
.enemy-modal * {
  box-sizing: border-box;
}

/* Container dos botões dos inimigos */
.enemies-buttons-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 100, 100, 0.1), rgba(0, 150, 150, 0.05));
  border: 2px solid rgba(0, 255, 255, 0.2);
  border-radius: 8px;
}

/* Botões dos inimigos */
.enemy-button {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-family: monospace;
  font-weight: bold;
  color: #0ff;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 255, 255, 0.05));
  border: 2px solid #0ff;
  border-radius: 6px;
  cursor: url(media/img/spr_gui_vida.cur), pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.enemy-button:hover {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 255, 0.15));
  color: #00ff88;
  border-color: #00ff88;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), inset 0 0 10px rgba(0, 255, 255, 0.1);
  transform: translateY(-2px);
}

.enemy-button:active {
  transform: translateY(0);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2), inset 0 0 5px rgba(0, 255, 255, 0.2);
}

.enemy-button:focus {
  outline: none;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4), inset 0 0 10px rgba(0, 255, 255, 0.1);
}

/* Scanline / flash effect on hover to simulate selection */
.enemy-button::after {
  content: '';
  position: absolute;
  left: -60%;
  top: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-20deg) translateX(0);
  transition: transform 420ms cubic-bezier(.2, .9, .2, 1), opacity 260ms ease;
  opacity: 0;
  pointer-events: none;
}

.enemy-button:hover::after,
.enemy-button:focus::after {
  transform: translateX(220%);
  opacity: 1;
}

/* Enemy intro and counter styles */
.enemies-intro-wrapper {
  max-width: 1000px;
  margin: 0.2rem auto 1rem auto;
  padding: 0 0.6rem;
  text-align: left;
  z-index: 2;
}

.enemy-counter {
  font-family: monospace;
  color: rgba(0, 230, 255, 0.9);
  opacity: 0.9;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.enemy-intro-text {
  font-family: monospace;
  color: #cfeff6;
  font-size: 1.05rem;
  line-height: 1.25;
  min-height: 1.2em;
  white-space: pre-wrap;
}

/* Modal do inimigo */
.enemy-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.enemy-modal.active {
  display: flex;
  opacity: 1;
}

.enemy-modal-content {
  background: linear-gradient(135deg, rgba(0, 30, 30, 0.95), rgba(0, 50, 50, 0.9));
  border: 3px solid #0ff;
  border-radius: 10px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.3), inset 0 0 20px rgba(0, 255, 255, 0.05);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.95) translateY(-20px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.enemy-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(0, 255, 255, 0.2);
  border: 2px solid #0ff;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #0ff;
  cursor: url(media/img/spr_gui_vida.cur), pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.enemy-modal-close:hover {
  background: rgba(0, 255, 255, 0.4);
  color: #00ff88;
  border-color: #00ff88;
  transform: rotate(90deg);
}

.enemy-modal-body {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  align-items: flex-start;
}

.enemy-modal-gif-container {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(0, 255, 255, 0.2);
  border-radius: 8px;
  padding: 1rem;
  min-width: 250px;
  min-height: 250px;
}

.enemy-modal-gif {
  max-width: 100%;
  max-height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.enemy-modal-info {
  flex: 1;
  color: #e0e0e0;
}

.enemy-modal-info h2 {
  color: #0ff;
  font-size: 2rem;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.enemy-modal-info p {
  line-height: 1.6;
  font-size: 0.95rem;
  color: #d0d0d0;
  margin: 0 0 1.5rem 0;
}

.enemy-modal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 6px;
  margin-top: 1rem;
}

.enemy-stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #00ff88;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 0.95rem;
  color: #0ff;
  background: rgba(0, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 4px;
  border-left: 3px solid #00ff88;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
  .enemies-buttons-container {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
    padding: 1rem;
  }

  .enemy-button {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }

  .enemy-modal-body {
    flex-direction: column;
    gap: 0.8rem;
    padding: 2.5rem 1rem 1rem 1rem;
  }

  .enemy-modal-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }

  .enemy-modal-gif-container {
    width: 100%;
    min-width: unset;
    min-height: 200px;
  }

  .enemy-modal-info h2 {
    font-size: 1.5rem;
  }

  .enemy-modal-info p {
    font-size: 0.9rem;
  }

  .enemy-modal-stats {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 0.8rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .stat-value {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .enemies-buttons-container {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 0.85rem;
  }

  .enemy-button {
    padding: 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    min-height: 64px;
  }

  .enemy-modal-content {
    max-width: 100%;
    padding: 0.75rem;
  }

  .enemy-modal-body {
    padding: 1rem;
  }

  .enemy-modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    font-size: 1.35rem;
  }

  .enemy-modal-gif-container {
    min-height: 180px;
    padding: 0.85rem;
  }

  .enemy-modal-info h2 {
    font-size: 1.35rem;
  }

  .enemy-modal-info p {
    font-size: 0.88rem;
  }

  .enemy-modal-stats {
    padding: 0.9rem;
  }
}


/* Transmission / intercepted video styles */
.transmission {
  max-width: 980px;
  margin: 0.5rem auto;
  background: rgba(2, 2, 6, 0.6);
  border: 1px solid rgba(0, 255, 200, 0.06);
  padding: 8px;
  position: relative;
  color: #bff;
}

.transmission-screen {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 */
  background: #000;
  overflow: hidden;
}

.transmission-screen .static-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 6px 6px, 6px 6px;
  opacity: 0.95;
  animation: staticNoise 0.12s steps(2) infinite, staticFlicker 1.6s infinite;
  pointer-events: none;
}

.receiving-text {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 6;
  font-family: monospace;
  color: #9ff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.18);
  font-size: 14px;
  pointer-events: auto;
  cursor: pointer;
}

.video-container {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, transform 0.4s ease, filter 0.4s ease;
}

.video-container.locked {
  filter: blur(4px) grayscale(0.6) contrast(0.8);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
}

.video-container.unlocked {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.trailer-video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
  display: block;
}

.scanlines {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 0px, rgba(255, 255, 255, 0.02) 1px);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.scanlines.active {
  opacity: 0.6;
  animation: scanlineShift 6s linear infinite;
}

.static-overlay.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease;
  transform: scale(1.02);
  pointer-events: none;
}

.receiving-text.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease 0.1s;
  pointer-events: none;
}

@keyframes staticNoise {
  0% {
    background-position: 0 0, 0 0;
  }

  50% {
    background-position: 6px 6px, -6px -6px;
  }

  100% {
    background-position: 0 0, 0 0;
  }
}

@keyframes staticFlicker {
  0% {
    opacity: 0.95;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 0.95;
  }
}

@keyframes scanlineShift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 60px;
  }
}

/* Mission Briefing HUD Panel */
.mission-briefing-hud {
  max-width: 1000px;
  margin: 1.5rem auto;
  background: rgba(0, 15, 30, 0.7);
  border: 1px solid #00ffff;
  border-radius: 2px;
  font-family: monospace;
  color: #d0e8f2;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.15), inset 0 0 20px rgba(0, 255, 255, 0.05);
  overflow: hidden;
}

.hud-header {
  background: rgba(0, 50, 80, 0.6);
  color: #00ffff;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0, 200, 255, 0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hud-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 200, 0.4), transparent);
  margin: 0;
}

.hud-content {
  padding: 1.25rem;
  line-height: 1.7;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

/* Devlog terminal styles */
.devlog-wrap {
  max-width: 980px;
  margin: 1.5rem auto;
  color: #9ff;
  font-family: monospace;
}

.devlog-wrap h2 {
  margin: 0 0 0.5rem 0;
  color: #6ff;
  font-size: 1.1rem;
}

.devlog-terminal {
  background: #020204;
  border: 1px solid rgba(0, 255, 200, 0.08);
  padding: 0.75rem;
  height: 220px;
  overflow: auto;
  position: relative;
  box-shadow: inset 0 0 30px rgba(0, 255, 255, 0.02);
}

.terminal-content {
  white-space: pre-wrap;
  word-break: break-word;
  color: #c7fffa;
  line-height: 1.4em;
  font-size: 13px;
}

.terminal-cursor {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: #6ff;
  font-weight: bold;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.devlog-controls {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.devlog-btn {
  background: rgba(0, 0, 0, 0.6);
  color: #9ff;
  border: 1px solid rgba(0, 255, 200, 0.06);
  padding: 6px 10px;
  cursor: pointer;
}

.devlog-btn:hover {
  background: rgba(0, 255, 200, 0.04);
}
