/* =========================
   GLOBAL RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body {
 background: #000000;
  color: #fff;
  min-height: 100vh;
  padding: 16px;
}

/* =========================
   GLOW VARIABLES
========================= */
:root {
  --glow-color: rgba(120, 180, 255, 0.6);
}

/* ===============================
   PULSE ANIMATION (AVATAR ONLY)
   =============================== */
@keyframes pulseGlow {
  0% {
    box-shadow:
      0 0 18px var(--glow-color),
      0 0 35px var(--glow-color);
  }

  50% {
    box-shadow:
      0 0 40px var(--glow-color),
      0 0 75px var(--glow-color);
  }

  100% {
    box-shadow:
      0 0 18px var(--glow-color),
      0 0 35px var(--glow-color);
  }
}

/* =========================
   STATIC GLOW (EVERYTHING ELSE)
========================= */
.glow {
  box-shadow: 0 0 14px var(--glow-color),
              0 0 28px var(--glow-color);
}

/* Permanent strong glow (Grim Reaper) */
.glow-permanent {
  box-shadow: 0 0 20px var(--glow-color),
              0 0 40px var(--glow-color),
              0 0 60px var(--glow-color);
}

/* =========================
   HEADER
========================= */
.title {
  text-align: center;
  letter-spacing: 3px;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.system-pill {
  margin: 0 auto 20px;
  display: block;
  width: fit-content;
  padding: 8px 20px;
  border-radius: 25px;
  background: linear-gradient(135deg, #36ffd1, #3aa0ff);
  color: #021018;
  font-weight: 700;
}

/* =========================
   AVATAR (ONLY PULSING ELEMENT)
========================= */
.avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 10px;
  overflow: hidden;
  animation: pulseGlow 3s ease-in-out infinite;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 5px solid var(--glow-color);
  pointer-events: none;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* =========================
   TITLE + RANK
========================= */
#playerTitle {
  text-align: center;
  color: #c08cff;
  margin-top: 8px;
  font-size: 24px;
}

#rankText {
  text-align: center;
  opacity: 0.85;
  margin-bottom: 10px;
}

/* =========================
   META
========================= */
.meta {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-bottom: 20px;
  opacity: 0.9;
}

/* =========================
   GRID LAYOUT
========================= */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* =========================
   CARDS
========================= */
.card {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 14px;
}

.card h3 {
  margin-bottom: 10px;
}

/* =========================
   ATTRIBUTES
========================= */
.attr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  margin: 0 6px;
  overflow: hidden;
}

.bar div {
  height: 100%;
  background: linear-gradient(90deg, #b68cff, #3ecbff);
  border-radius: 6px;
  transition: width 0.4s ease;
}

/* =========================
   LEVEL RING (SVG)
========================= */
.level-ring {
  position: relative;
  width: 180px;
  height: 180px;
  margin: auto;
}

.level-ring svg {
  transform: rotate(-90deg);
}

.level-ring circle {
  fill: none;
  stroke-width: 10;
  stroke: rgba(255,255,255,0.2);
}

#xpRing {
  stroke-linecap: round;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  stroke: var(--glow-color);
  transition: stroke-dashoffset 0.6s ease;
}

.level-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* =========================
   QUESTS
========================= */
#dailyList {
  margin-bottom: 10px;
}

.quest-item {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
}

/* =========================
   BUTTONS
========================= */
button {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, #a889ff, #4fc3ff);
  color: #06111e;
  margin-top: 10px;
}

/* =========================
   TIMER
========================= */
#resetTimer {
  font-size: 18px;
  letter-spacing: 1px;
  text-align: center;
}

/* =========================
   HIDDEN FILE INPUT
========================= */
input[type="file"] {
  display: none;
}/* ===============================
   QUEST EDIT MODAL
================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #0e1430;
  padding: 20px;
  border-radius: 14px;
  width: 85%;
  max-width: 300px;
  box-shadow: 0 0 25px rgba(120,100,255,0.6);
  text-align: center;
}

.modal-content h3 {
  margin-bottom: 12px;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
  margin-bottom: 12px;
}

.modal-buttons {
  display: flex;
  gap: 8px;
}

.modal-buttons button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
}.quest.completed {
  opacity: 0.4;
  text-decoration: line-through;
  filter: grayscale(60%);
}