/* ================================================
   NECTAR OF THE GODS - SHARED STYLES
   ================================================ */

body {
  background-color: #000080;
  background-image:
    radial-gradient(circle, #ff00ff 1px, transparent 1px),
    radial-gradient(circle, #00ffff 1px, transparent 1px);
  background-size: 40px 40px, 20px 20px;
  background-position: 0 0, 10px 10px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  color: white;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Scrolling marquee bar */
.marquee-bar {
  background: #ff0000;
  border-top: 4px solid yellow;
  border-bottom: 4px solid yellow;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-bar marquee {
  font-size: 16px;
  color: yellow;
  font-weight: bold;
  letter-spacing: 2px;
}

/* Site header */
.site-header {
  text-align: center;
  padding: 20px 10px 10px;
}
.site-title {
  font-size: 52px;
  font-weight: bold;
  color: gold;
  text-shadow:
    3px 3px 0 #ff00ff,
    -3px -3px 0 #00ffff,
    0 0 30px gold;
  animation: titleflash 1.5s step-start infinite;
  display: inline-block;
  letter-spacing: 4px;
}
@keyframes titleflash {
  0%, 100% { color: gold; text-shadow: 3px 3px 0 #ff00ff, -3px -3px 0 #00ffff; }
  33%  { color: #ff00ff; text-shadow: 3px 3px 0 #00ffff, -3px -3px 0 gold; }
  66%  { color: #00ffff; text-shadow: 3px 3px 0 gold, -3px -3px 0 #ff00ff; }
}
.site-subtitle {
  font-size: 16px;
  color: #ffff00;
  margin-top: 4px;
  letter-spacing: 2px;
}

/* Credits bar */
.credits-bar {
  text-align: center;
  margin: 10px auto;
  display: inline-block;
  background: black;
  border: 4px solid gold;
  padding: 8px 24px;
  font-size: 22px;
  color: #00ff00;
  letter-spacing: 3px;
  text-shadow: 0 0 10px #00ff00;
  border-radius: 6px;
}
.credits-wrap {
  text-align: center;
  margin-bottom: 10px;
}

/* Nav */
.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: rgba(0,0,0,0.5);
  border-top: 3px dashed yellow;
  border-bottom: 3px dashed yellow;
  margin-bottom: 20px;
}
.site-nav a {
  background: linear-gradient(#ff6600, #cc3300);
  border: 3px solid yellow;
  color: white;
  text-decoration: none;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 6px;
  text-shadow: 1px 1px 0 black;
  box-shadow: 2px 2px 0 black;
  transition: transform 0.1s;
}
.site-nav a:hover {
  transform: scale(1.1) rotate(-2deg);
  background: linear-gradient(#ffaa00, #ff6600);
}
.site-nav a.active {
  background: linear-gradient(gold, #cc9900);
  color: black;
  text-shadow: none;
}

/* Game container */
.game-wrap {
  max-width: 680px;
  margin: 0 auto 40px;
  padding: 0 12px;
}

/* Game box */
.game-box {
  background: linear-gradient(160deg, #1a0033, #000066);
  border: 6px solid gold;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 0 40px #ff00ff88, 0 0 80px #0000ff44;
  text-align: center;
}

.game-title {
  font-size: 30px;
  color: gold;
  text-shadow: 2px 2px 0 #ff00ff, 0 0 20px gold;
  margin-bottom: 6px;
  letter-spacing: 3px;
}
.game-desc {
  font-size: 14px;
  color: #aaaaff;
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(gold, #cc9900);
  border: 3px solid #886600;
  border-radius: 10px;
  font-family: "Comic Sans MS", cursive;
  font-size: 18px;
  font-weight: bold;
  color: #330000;
  cursor: pointer;
  box-shadow: 3px 3px 0 black;
  text-shadow: none;
  margin: 4px;
  transition: transform 0.1s;
}
.btn:hover { transform: scale(1.05); background: linear-gradient(#ffe44d, gold); }
.btn:active { transform: scale(0.97) translateY(2px); box-shadow: 1px 1px 0 black; }
.btn-red {
  background: linear-gradient(#ff4444, #cc0000);
  border-color: #880000;
  color: white;
  text-shadow: 1px 1px 0 black;
}
.btn-red:hover { background: linear-gradient(#ff6666, #ff2222); }
.btn-blue {
  background: linear-gradient(#4444ff, #0000cc);
  border-color: #000088;
  color: white;
  text-shadow: 1px 1px 0 black;
}

/* Message box */
.msg-box {
  min-height: 32px;
  font-size: 20px;
  font-weight: bold;
  color: #ffff00;
  text-shadow: 1px 1px 0 black;
  margin: 12px 0;
  animation: msgpulse 0.5s ease;
}
@keyframes msqpulse {
  0% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #aaaaff;
  border-top: 3px dashed #ff00ff;
  margin-top: 20px;
}

/* Divider */
.divider {
  border: none;
  border-top: 3px dashed #ff00ff;
  margin: 20px 0;
}

/* Stars decoration */
.stars {
  font-size: 22px;
  letter-spacing: 4px;
  color: gold;
  display: block;
  margin: 8px 0;
  animation: starspin 3s linear infinite;
}
@keyframes starspin {
  0% { letter-spacing: 4px; }
  50% { letter-spacing: 8px; }
  100% { letter-spacing: 4px; }
}