/* === LAYOUT UTAMA === */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #0d0d1a;
    color: #ffffff;
}

#vanta-bg {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: -1;
}

.xp-badge-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}


/* === MODAL INPUT NAMA === */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1f1f2e;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
}

.modal-content input {
    padding: 10px;
    margin-top: 10px;
    width: 80%;
    border-radius: 5px;
    border: none;
}

.modal-content button {
    padding: 10px 20px;
    margin-top: 20px;
    background: #00c3ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.avatar-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.avatar-card {
    background: #1f1f2e;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    text-align: center;
}

.avatar-card img {
    width: 100px;
    border-radius: 10px;
}

.avatar-card:hover {
    border-color: #00f0ff;
    background-color: #26263a;
}

/* === HEADER ATAS === */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #141428;
    padding: 20px 30px;
}

.logo img {
    height: 40px;  
}

/* .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
} */

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff22;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.xp-bar {
    background: #00c3ff;
    padding: 5px 10px;
    border-radius: 10px;
}

/* === GREETING DAN MISI === */
.greeting {
    text-align: center;
    margin: 30px 0 10px;
    font-size: 1.8rem;
    color: #00f0ff;
}

.mission {
    text-align: center;
    font-size: 1.2rem;
    color: #ffc107;
    margin-bottom: 30px;
}

/* === GRID MENU UTAMA === */
.grid-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    padding: 30px;
}

.grid-item {
    background-color: #1a1a2e;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    color: #ffffff;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 255, 255, 0.05);
    transition: transform 0.2s ease, background-color 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.grid-item:hover {
    transform: scale(1.05);
    background-color: #223344;
}

.grid-item img {
    width: 100px;
    height: 100px;
    margin-bottom: 8px;
    stroke: #00f0ff;
    stroke-width: 2;
    transition: stroke 0.3s ease;
}

.grid-item:hover img {
    filter: drop-shadow(0 0 2px #00f0ff) drop-shadow(0 0 5px #00f0ff);
    transform: scale(1.05);
    transition: transform 0.3s ease, filter 0.3s ease;
}


/* === TOMBOL MULAI === */
#startAdventureBtn,
.start-button {
    display: block;
    margin: 40px auto 10px;
    padding: 15px 40px;
    background: #00f0ff;
    color: #000;
    font-size: 1.2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

#startAdventureBtn:hover,
.start-button:hover {
    background: #00c3ff;
}

.resetBtn {
    display: block;
    margin: 40px auto 10px;
    padding: 15px 40px;
    background: #00f0ff;
    color: #000;
    font-size: 1.2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

/* === MOTIVASI BAWAH === */
.motivasi {
    text-align: center;
    font-style: italic;
    margin-bottom: 30px;
    color: #ffc107;
}

.difficulty-options {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: nowrap; /* cegah turun ke bawah */
}

.difficulty-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 120px;
  max-width: 150px; /* biar tombol proporsional */
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .25s transform, .25s opacity;
  color: #fff;
  text-align: center;
}

.difficulty-btn small {
  font-weight: 500;
  opacity: .9;
  font-size: 0.8rem; /* biar nggak terlalu besar */
}

.difficulty-btn.easy { background:#4caf50; }
.difficulty-btn.medium { background:#ff9800; }
.difficulty-btn.hard { background:#f44336; }
.difficulty-btn:hover { transform:translateY(-2px); opacity:.9; }



