@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --pixel-font: 'VT323', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: var(--pixel-font);
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 20px;
  overflow: auto;
  overflow-x: hidden;
}

#particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  background-color: #fff;
  opacity: 0;
  width: 4px;
  height: 4px;
  animation: pixel-blink 6s infinite steps(1);
  image-rendering: pixelated;
  filter: contrast(200%) brightness(120%);
}

@keyframes pixel-blink {
  0%, 100% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 0; }
}

#app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 1rem 1rem;
  overflow-x: clip;
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container {
  max-width: 800px;
  padding: 1rem;
}

.image-logo {
  width: 240px;
  height: 240px;
  margin-bottom: -1rem;
  margin-top: -1rem;
  mix-blend-mode: screen;
}

.tagline {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 1rem auto 1.5rem auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  overflow: hidden;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  image-rendering: pixelated;
}
.btn-primary {
  background: var(--text-color);
  color: var(--bg-color);
  border: 2px solid var(--text-color);
  animation: slow-blink 3s infinite linear;
}
.btn-primary:hover {
  background: #999;
  border-color: #999;
  animation-play-state: paused;
}
@keyframes slow-blink {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
  }
}
.btn-secondary {
  border: 2px solid var(--text-color);
  color: var(--text-color);
}
.btn-secondary:hover {
  background: var(--text-color);
  color: var(--bg-color);
}

footer.copyright-section {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background: #000;
  color: #aaa;
}

footer .disclaimer {
  margin-bottom: 0.5rem;
  font-style: italic;
  color: #ddd;
  font-size: 1rem;
  padding: 0.5rem;
  border: 1px dashed #444;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

footer .copyright-text {
  color: #ddd;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  html, body {
    font-size: 18px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .image-logo {
    width: 220px;
    height: 220px;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }

  .hero-buttons {
    gap: 1rem;
  }

  footer .disclaimer {
    font-size: 0.95rem;
    padding: 0.5rem;
  }
}

/* === Spell Intro Modal Styles === */

.intro-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-box {
  background: #111;
  border: 2px solid #fff;
  padding: 2rem;
  max-width: 570px;
  max-height: 80vh;
  overflow-y: scroll;
  border-radius: 6px;
  color: var(--text-color);
  font-family: var(--pixel-font);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
  margin: auto;
  height: auto;
}

/* Title row with inline logo */
.intro-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.intro-title h2 {
  font-size: 1.6rem;
  margin: 0;
}

.intro-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

/* Left-aligned content below title */
.intro-content {
  text-align: left;
}

.intro-content h3 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: #fff;
}

.intro-content p {
  margin-bottom: 1rem;
}

.intro-content ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

/* Tagline at bottom */
.intro-final-line {
  text-align: center;
  font-style: italic;
  margin-top: 2rem;
  font-size: 1.1rem;
  color: #ccc;
}

/* Enter button, centered */
.btn-close {
  display: block;
  margin: 2rem auto 0 auto;
  background: #fff;
  color: #000;
  border: 2px solid #fff;
  font-family: var(--pixel-font);
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}
.btn-close:hover {
  background: #ccc;
  color: #000;
}

@media (max-width: 768px) {
  .intro-box {
    max-width: 90vw;
    max-height: 60vh;
    padding: 1rem;
    font-size: 0.95rem;
  }

  .intro-title h2 {
    font-size: 1.3rem;
  }

  .intro-content h3 {
    font-size: 1.1rem;
  }

  .btn-close {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
}
