/* ------------------ Global Reset & Fonts ------------------ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'EB Garamond', serif;
  color: #e0e6f0;
  background: url("https://coolwallpapers.me/picsup/2813104-retro-games___retro-vintage-wallpapers.jpg") #000;
  overflow-x: hidden;
}

/* ------------------ Retro Scanlines ------------------ */
.scanlines::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0px,
    rgba(0,0,0,0.2) 2px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 999;
}

/* ------------------ Stars Background ------------------ */
.stars {
  position: fixed;
  width: 200%;
  height: 200%;
  background: transparent;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent),
                    radial-gradient(2px 2px at 40px 70px, #fff, transparent),
                    radial-gradient(2px 2px at 50px 160px, #fff, transparent);
  background-size: 200px 200px;
  animation: moveStars 60s linear infinite;
  z-index: -2;
}
@keyframes moveStars { from { transform: translate(0,0); } to { transform: translate(-200px,-200px); } }

/* ------------------ Mist ------------------ */
.mist {
  position: fixed;
  top: 0; left: 0;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  filter: blur(100px);
  animation: mistMove 60s linear infinite;
  z-index: -1;
}
@keyframes mistMove { from { transform: translate(0,0); } to { transform: translate(200px,200px); } }

/* ------------------ HUD ------------------ */
.hud {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  font-family: 'Cinzel', serif;
  background: rgba(0,0,32,0.6);
  border-bottom: 2px solid #6cf;
}
.brand { font-weight: bold; color: #6cf; }
.slot { font-size: 0.9rem; opacity: 0.8; }

/* ------------------ Main Menu ------------------ */
.menu {
  text-align: center;
  margin: 40px 0;
}
.menu .title {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #9cf;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0 0 8px #0ff;
}
.menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 0;
}
.menu li { display: inline-block; }

/* Social Retro Buttons */
.retro-btn {
  display: inline-block;
  padding: 12px 24px;
  background: rgba(0,0,64,0.8);
  border: 2px solid #6cf;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: bold;
  text-align: center;
  transition: all 0.2s ease;
}
.retro-btn:hover {
  background: rgba(0,64,128,0.9);
  box-shadow: 0 0 12px #6cf;
  color: #00ffff;
  text-shadow: 0 0 5px #0ff;
}

/* ------------------ Content Cards ------------------ */
.content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}
.card {
  background: rgba(0,0,32,0.7);
  border: 1px solid #6cf;
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease;
}
.card:hover { transform: scale(1.02); }
.card h2 {
  font-family: 'Cinzel', serif;
  color: #6cf;
  margin-bottom: 10px;
}

/* ------------------ ATB Gauge ------------------ */
.gauge {
  height: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid #6cf;
  border-radius: 6px;
  margin-top: 10px;
  overflow: hidden;
}
.gauge .fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #0ff, #06f);
  animation: atbFill 5s linear infinite;
}
@keyframes atbFill { 0% { width: 0; } 100% { width: 100%; } }

/* ------------------ Chat ------------------ */
.retro-chat {
  background: linear-gradient(145deg, #ffffffcc, #e0e0e0cc);
  border: 2px solid #aaa;
  border-radius: 12px;
  padding: 12px;
  width: 100%;
  max-width: 450px;
  font-family: 'Arial', sans-serif;
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 0 8px rgba(255,255,255,0.3);
}
.chat-log {
  height: 180px;
  overflow-y: auto;
  padding: 6px;
  margin-bottom: 6px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Verdana', sans-serif;
}
.chat-log p { margin: 3px 0; }
#chatInput, #usernameInput {
  width: calc(100% - 80px);
  padding: 6px;
  margin-right: 6px;
  border-radius: 6px;
  border: 1px solid #aaa;
  background: #fff;
  color: #333;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
#sendBtn, #signupBtn {
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#sendBtn:hover, #signupBtn:hover {
  background: #f0f0f0;
  border-color: #888;
}

/* ------------------ Party Members ------------------ */
.char-list li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Cinzel', serif;
}
.char-list li a:hover {
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff;
}

#soundcloudEmbed {
  max-width: 600px;
  margin: 20px auto;
  padding: 15px;
  border: 2px solid #ff5500; /* orange to match SoundCloud */
  border-radius: 12px;
  background: rgba(0,0,32,0.7);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px #ff5500;
}

#soundcloudEmbed h2 {
  font-family: 'Cinzel', serif;
  color: #ff5500;
  margin-bottom: 10px;
  text-align: center;
}

#soundcloudEmbed .fallback {
  margin-top: 10px;
  text-align: center;
  font-size: 0.9em;
}

#soundcloudEmbed .fallback a {
  color: #fff;
  text-decoration: underline;
}

