/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #121227;
  color: #ccd5ff;
  font-family: 'Press Start 2P', monospace;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 40px 15px;
  text-align: center;
  user-select: none;
}

/* UTILITIES */
.hidden {
  display: none !important;
}

button, a {
  font-family: 'Press Start 2P', monospace;
  text-decoration: none;
}

/* TITLE (USED IN BOTH INDEX AND HOME) */
.main-title,
.title-glitch {
  font-family: 'Great Vibes', cursive;
  font-size: 4rem;
  color: #8ca1ff;
  letter-spacing: 2px;
  text-shadow: 2px 2px 3px #28314a;
}

/* INTRO CONTAINER (USED IN INDEX) */
.intro-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto 50px;
  text-align: left;
  font-size: 13px;
  line-height: 1.4;
  font-family: 'Press Start 2P', monospace;
  color: #ccd5ff;
  padding: 15px 20px;
  background-color: #1a1e37;
  border-radius: 15px;
  box-shadow: inset 0 0 20px #2f3255;
  user-select: text;
}

/* INTRO GIF */
.intro-gif {
  display: block;
  margin: 35px auto 0 auto;
  width: 260px;
  height: auto;
  image-rendering: pixelated;
  transition: transform 0.3s ease;
}

.intro-gif:hover {
  transform: translateY(-8px) rotate(10deg);
  filter: drop-shadow(0 0 8px #99aaff);
}

/* JAPANESE SHADOW */
.text-shadow.japanese-shadow {
  position: absolute;
  top: 15px;
  left: 10px;
  right: 10px;
  color: #22335588;
  font-family: "MS PGothic", monospace, sans-serif;
  font-size: 7rem;
  pointer-events: none;
  filter: blur(1px);
  letter-spacing: 4px;
  transform: translateY(-20px);
  white-space: nowrap;
  text-align: center;
  z-index: 1;
}

/* START SCREEN */
.start-screen {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
  animation: fadeIn 1.2s ease;
}

/* BUTTON STYLES (SHARED) */
.btn,
.start-btn,
.accept-btn,
.nav-btn {
  background-color: #28314a;
  border: 3px solid #445580;
  border-radius: 12px;
  font-size: 14px;
  padding: 14px 30px;
  color: #aebefc;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px #6670aa99;
}

.btn:hover,
.start-btn:hover,
.accept-btn:hover,
.nav-btn:hover {
  background-color: #445580;
  color: #eef2ff;
  box-shadow: 0 0 20px #aebeffcc;
}

/* START BUTTON (INDEX ONLY) */
.start-btn {
  font-size: 16px;
  padding: 16px 40px;
  animation: pulse 2.5s infinite;
}

/* WARNING SCREEN */
.warning-screen {
  max-width: 500px;
  background: #1f2540;
  border: 3px solid #445580;
  border-radius: 12px;
  padding: 30px;
  color: #ccd5ff;
  font-family: 'Press Start 2P', monospace;
  line-height: 1.3;
  animation: popIn 0.8s ease forwards;
}

.warning-screen h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ff5555;
  text-shadow: 1px 1px 3px #550000;
}

/* CREATOR & THEMES */
.creator {
  font-size: 9px;
  margin: 5px 0 25px 0;
  color: #a0b1f9;
}

.themes {
  font-size: 10px;
  margin-bottom: 30px;
  color: #99aaff;
}

.themes span {
  background-color: #2f345a;
  padding: 5px 14px;
  border-radius: 8px;
  box-shadow: inset 0 0 10px #445580aa;
  margin: 0 5px;
}

/* HOME PAGE - NAVIGATION BUTTONS */
.top-buttons {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.nav-btn {
  font-size: 12px;
  padding: 12px 24px;
}

/* MAIN CONTENT BOXES */
.main-content {
  max-width: 820px;
  width: 100%;
  background-color: #1a1e37;
  border: 2px solid #445580;
  border-radius: 14px;
  padding: 25px;
  box-shadow: inset 0 0 20px #2f3255;
  text-align: left;
  user-select: text;
}

.section-box {
  margin-bottom: 25px;
}

.section-box h2 {
  font-size: 1rem;
  margin-bottom: 12px;
  border-bottom: 1px solid #44558088;
  padding-bottom: 6px;
  color: #aebeff;
}

.section-box ul {
  list-style-type: square;
  margin-left: 24px;
  font-size: 11px;
}

.section-box li {
  margin-bottom: 6px;
}

/* ANIMATIONS */
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px #aeeaff; }
  50% { transform: scale(1.05); box-shadow: 0 0 18px #ffffff; }
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .main-title, .title-glitch {
    font-size: 2.8rem;
  }

  .intro-container {
    font-size: 12px;
    max-width: 100%;
  }

  .text-shadow.japanese-shadow {
    font-size: 4rem;
    letter-spacing: 3px;
    transform: translateY(-10px);
  }

  .intro-gif {
    width: 180px;
  }

  .nav-btn {
    font-size: 10px;
    padding: 10px 18px;
  }
}
