/* GLOBAL */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, #0a0a0a, #000);
  color: #eee;
}

/* HOMEPAGE */
.homepage .home-container {
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  text-align: center;
}

.title {
  font-size: 52px;
  color: #8af;
  text-shadow: 0 0 25px #4af;
}

.subtitle {
  margin-top: -10px;
  color: #ccc;
  font-size: 18px;
}

.money-box {
  margin: 20px auto;
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  border-radius: 8px;
  width: fit-content;
  font-size: 20px;
  box-shadow: 0 0 15px #222;
}

.section-title {
  margin-top: 40px;
  font-size: 28px;
  color: #9df;
  text-shadow: 0 0 12px #59f;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

/* CARDS */
.card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  padding: 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.25s;
  overflow: hidden;
}

.card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.06);
  box-shadow: 0 0 20px #4af;
}

.card-title {
  font-size: 20px;
  margin-top: 10px;
  text-shadow: 0 0 10px #000;
}

.card-status {
  font-size: 14px;
  margin-top: 5px;
}

.unlocked {
  color: #6f6;
}

.locked {
  color: #f66;
}

/* MAP BACKGROUNDS ON HOMEPAGE */
.map-card .map-bg {
  height: 100px;
  border-radius: 8px;
  margin-bottom: 10px;
  background-size: cover;
  background-position: center;
  filter: brightness(0.8);
}

.map-1 { background-image: linear-gradient(#0f0, #060); }
.map-2 { background-image: linear-gradient(#f7d, #a05); }
.map-3 { background-image: linear-gradient(#333, #000); }
.map-4 { background-image: linear-gradient(#0af, #036); }
.map-5 { background-image: linear-gradient(#fff, #88f); }
.map-6 { background-image: linear-gradient(#900, #300); }

/* CHARACTER ICONS */
.char-icon {
  height: 80px;
  width: 80px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #222;
  border: 2px solid #444;
  box-shadow: inset 0 0 10px #000;
}

/* Wanderers & Elite Wanderers */
.char-wanderer1 { background: #4af; }   /* Wanderer I */
.char-wanderer2 { background: #6cf; }   /* Wanderer II */
.char-wanderer3 { background: #8ef; }   /* Wanderer III */

.char-elite1 { background: #ffb347; }   /* Elite Wanderer I */
.char-elite2 { background: #ff8c42; }   /* Elite Wanderer II */
.char-elite3 { background: #ff5c33; }   /* Elite Wanderer III */

/* GAME UI */
#ui {
  position: fixed;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #4af;
  box-shadow: 0 0 15px #4af;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  z-index: 10;
}

#ui button {
  margin-top: 5px;
  display: block;
  width: 180px;
}

#message {
  margin-top: 5px;
  min-height: 20px;
}

/* MAP NAME ON GAME PAGE */
#mapName {
  position: fixed;
  top: 10px;
  right: 20px;
  font-size: 20px;
  color: #9df;
  text-shadow: 0 0 10px #59f;
  z-index: 10;
}

/* GAME CANVAS */
#gameCanvas {
  display: block;
  margin: 60px auto 20px;
  border: 3px solid #4af;
  box-shadow: 0 0 20px #4af;
  background: #111;
}

/* FIGHT PAGE */
#fightContainer {
  max-width: 400px;
  margin: 80px auto;
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #4af;
  box-shadow: 0 0 20px #4af;
  text-align: center;
}

#fightStats {
  margin-bottom: 15px;
}

#fightMessage {
  margin-top: 10px;
  min-height: 20px;
}

.quest-log-box {
  margin: 20px auto;
  max-width: 600px;
  text-align: left;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #444;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 0 10px #111;
  min-height: 60px;
}

.quest-log-entry {
  border-bottom: 1px solid #333;
  padding: 8px 0;
}

.quest-log-entry:last-child {
  border-bottom: none;
}

.quest-log-rarity {
  font-weight: bold;
}

.quest-log-desc {
  font-size: 14px;
}

.quest-log-reward {
  font-size: 12px;
  color: #ccc;
}
