

.nav-links a.active { color: var(--text); }


#quests-head {
  max-width: 1200px; margin: 0 auto; padding: 110px 2.5rem 0;
  position: relative; z-index: 1; width: 100%; flex-shrink: 0;
}
.quests-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.quests-head-title {
  font-family: 'Outfit', sans-serif; font-size: 1.9rem; font-weight: 900;
  display: flex; align-items: center; gap: 12px; letter-spacing: -0.02em;
}
.quests-head-sub { color: var(--text-dim); font-size: .92rem; margin-top: .4rem; max-width: 520px; }

.quests-reset {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border);
  font-size: .85rem; color: var(--text-dim); white-space: nowrap;
}
.quests-reset strong { color: var(--text); font-variant-numeric: tabular-nums; }


.quests-level-card {
  margin-top: 1.8rem;
  display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap;
  padding: 1.4rem 1.8rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.ql-avatar { flex-shrink: 0; }
.ql-level-badge {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: var(--on-light);
  font-family: 'Outfit', sans-serif; font-weight: 900; font-size: 1.3rem;
  box-shadow: var(--shadow-blue);
}
.ql-info { flex: 1 1 260px; min-width: 220px; }
.ql-info-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; gap: 10px; }
.ql-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem; }
.ql-xp { font-size: .8rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.ql-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.ql-bar-fill { height: 100%; border-radius: 999px; background: var(--grad); box-shadow: var(--shadow-blue); }

.ql-stats { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.ql-stat { display: flex; align-items: center; gap: 10px; }
.ql-stat div { display: flex; flex-direction: column; line-height: 1.25; }
.ql-stat strong { font-family: 'Outfit', sans-serif; font-size: .95rem; font-weight: 800; }
.ql-stat span { font-size: .74rem; color: var(--text-muted); white-space: nowrap; }


#quests-body { max-width: 1200px; margin: 0 auto; padding: 2.4rem 2.5rem 100px; position: relative; z-index: 1; width: 100%; flex: 1; }


.quest-featured {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
  padding: 1.6rem 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  margin-bottom: 2rem;
}
.qf-glow {
  position: absolute; top: -60%; right: -10%; width: 320px; height: 320px;
  background: var(--blue); opacity: .12; filter: blur(100px); border-radius: 50%; pointer-events: none;
}
.qf-icon {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: var(--on-light);
  box-shadow: var(--shadow-blue);
}
.qf-content { position: relative; z-index: 1; flex: 1 1 320px; min-width: 240px; }
.qf-tag {
  display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 6px;
}
.qf-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.15rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.qf-desc { color: var(--text-dim); font-size: .88rem; margin-bottom: 14px; }
.qf-progress { display: flex; align-items: center; gap: 12px; }
.qf-bar { flex: 1; max-width: 320px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.qf-bar-fill { height: 100%; background: var(--grad); border-radius: 999px; }
.qf-progress span { font-size: .78rem; color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }

.qf-reward { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.qf-reward-row { display: flex; align-items: center; gap: 8px; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.05rem; }
.qf-reward-row i { filter: drop-shadow(0 0 6px rgba(255,255,255,.25)); }
.qf-reward-row.xp { font-size: .8rem; font-weight: 600; color: var(--text-dim); }


.quest-tabs { display: flex; gap: 8px; margin-bottom: 1.6rem; flex-wrap: wrap; }
.quest-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text-dim);
  font-family: 'Outfit', sans-serif; font-size: .85rem; font-weight: 700;
  cursor: pointer; transition: all .2s ease;
}
.quest-tab:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.quest-tab.active { background: var(--grad); color: var(--on-light); box-shadow: var(--shadow-blue); border-color: transparent; }
.quest-tab-count {
  font-size: .72rem; padding: 1px 7px; border-radius: 999px;
  background: rgba(255,255,255,.14);
}
.quest-tab.active .quest-tab-count { background: rgba(10,10,10,.18); color: var(--on-light); }


.quest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }

.quest-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease;
}
.quest-card:hover { border-color: rgba(255,255,255,.22); transform: translateY(-2px); }
.quest-card.done { opacity: .68; }

.qc-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: var(--qc-color, var(--text));
}
.qc-body { flex: 1; min-width: 0; }
.qc-title { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .95rem; margin-bottom: 3px; }
.qc-desc { font-size: .8rem; color: var(--text-dim); margin-bottom: 10px; line-height: 1.4; }
.qc-progress { display: flex; align-items: center; gap: 10px; }
.qc-bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.qc-bar-fill { height: 100%; border-radius: 999px; background: var(--grad); }
.qc-progress span { font-size: .72rem; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.qc-side { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.qc-reward { display: flex; align-items: center; gap: 6px; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: .92rem; }

.qc-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--glass-border);
  font-family: 'Outfit', sans-serif; font-size: .76rem; font-weight: 700;
  background: transparent; color: var(--text-dim); cursor: default; white-space: nowrap;
}
.qc-btn.ready { background: var(--grad); color: var(--on-light); border-color: transparent; box-shadow: var(--shadow-blue); cursor: pointer; }
.qc-btn.claimed { color: #10B981; border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.1); }
.qc-btn.locked { color: var(--text-muted); }

@media (max-width: 700px) {
  #quests-head, #quests-body { padding-left: 1.2rem; padding-right: 1.2rem; }
  .quests-level-card { flex-direction: column; align-items: stretch; }
  .ql-stats { justify-content: space-between; }
  .quest-card { flex-wrap: wrap; }
  .qc-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}
