/* =============================
   BASE, VARIABLES Y FUENTES
   ============================= */
:root {
  --color-bg: #0f0f0f;
  --color-cyan: #00fff7;
  --color-fucsia: #ff00c8;
  --color-green: #39ff14;
  --color-white: #ffffff;
  --color-blue: #00aaff;
  --font-main: 'Orbitron', 'Audiowide', Arial, sans-serif;
  --glow-cyan: 0 0 8px #00fff7, 0 0 16px #00fff7;
  --glow-fucsia: 0 0 8px #ff00c8, 0 0 16px #ff00c8;
  --glow-green: 0 0 8px #39ff14, 0 0 16px #39ff14;
  --glow-white: 0 0 8px #fff, 0 0 16px #fff;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-main);
  min-height: 100vh;
  box-sizing: border-box;
  overflow-x: hidden;
}

body.theme--steampunk {
  background: #3e2c1c url('../img/steampunkbg.jpg') center center/cover no-repeat fixed;
}

body.theme--fantasy {
  background: #0f2d1c url('../img/fantasybg.jpeg') center center/cover no-repeat fixed;
}

body.theme--gothic {
  background: #1a0033 url('../img/goticbg.jpeg') center center/cover no-repeat fixed;
}

body.theme--urban-magic {
  background: #1a1a2e url('../img/magicbg.jpg') center center/cover no-repeat fixed;
}

/* =============================
   PANTALLA DE INICIO HOLOGRÁFICA
   ============================= */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

.intro-screen {
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #05080d 60%, #0f1a2b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s, transform 1.2s;
  font-family: 'Share Tech Mono', 'VT323', 'Press Start 2P', monospace;
}

.intro-screen__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(10, 20, 30, 0.85);
  border-radius: 1.5rem;
  box-shadow: 0 0 64px #00fff7cc, 0 0 128px #ff00c8cc;
  padding: 3.5rem 2.5rem 2.5rem 2.5rem;
  min-width: 340px;
  max-width: 90vw;
  border: 2.5px solid #00fff7;
  position: relative;
}

.intro-screen__title {
  font-size: 2.1rem;
  color: #00fff7;
  text-shadow: 0 0 12px #00fff7, 0 0 32px #ff00c8, 0 0 64px #fff;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
  animation: glitch 1.2s infinite alternate;
  position: relative;
  font-family: 'Share Tech Mono', monospace;
}

@keyframes glitch {

  0%,
  100% {
    transform: none;
    opacity: 1;
  }

  20% {
    transform: skew(0.5deg, -0.5deg);
  }

  40% {
    opacity: 0.8;
  }

  60% {
    transform: translate(1px, -1px);
  }

  80% {
    opacity: 0.6;
    transform: translate(-1px, 1px);
  }
}

.intro-screen__status {
  color: #39ff14;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
  border-right: 2.5px solid #39ff14;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typing 2.2s steps(32, end) 0.5s forwards, blink 1.1s step-end infinite alternate 2.7s;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes blink {
  50% {
    border-color: transparent
  }
}

.intro-screen__loading-bar {
  width: 260px;
  height: 14px;
  background: #0f1a2b;
  border-radius: 8px;
  border: 2px solid #00fff7;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 0 16px #00fff7, 0 0 32px #ff00c8;
  position: relative;
}

.intro-screen__loading-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00fff7 0%, #ff00c8 100%);
  border-radius: 8px;
  box-shadow: 0 0 16px #00fff7, 0 0 32px #ff00c8;
  animation: progress 2.5s cubic-bezier(.77, 0, .18, 1) 1.2s forwards;
}

@keyframes progress {
  0% {
    width: 0
  }

  100% {
    width: 100%
  }
}

.intro-screen__enter-btn {
  margin-top: 1.2rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  background: linear-gradient(90deg, #00fff7 0%, #ff00c8 100%);
  color: #0f0f0f;
  border: none;
  border-radius: 0.7rem;
  padding: 0.7rem 2.2rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 8px #00fff7, 0 0 16px #ff00c8;
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px #fff;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, filter 0.2s, transform 0.2s;
  opacity: 0.95;
}

.intro-screen__enter-btn:hover {
  filter: brightness(1.2) contrast(1.2);
  transform: scale(1.04);
}

.intro-screen--exit {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
  transition: opacity 1.2s, transform 1.2s;
}

@media (max-width: 600px) {
  .intro-screen__content {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    min-width: 0;
  }

  .intro-screen__title {
    font-size: 1.1rem;
  }

  .intro-screen__loading-bar {
    width: 90vw;
    min-width: 120px;
    max-width: 98vw;
  }
}