/* Quest guides: the list (quests.html) and one quest's guide (quest.html) */
[hidden] { display: none !important; }
:root { --q0: #9d9d9d; --q1: #ffffff; --q2: #1eff00; --q3: #4aa3ff; --q4: #c77dff; --q5: #ff8000;
  --ally: #4aa3ff; --horde: #ff5a4a; }
.q0 { color: var(--q0); } .q1 { color: var(--q1); } .q2 { color: var(--q2); } .q3 { color: var(--q3); } .q4 { color: var(--q4); } .q5 { color: var(--q5); }

.qs { max-width: 1600px; margin: 0 auto; padding: 34px 16px 30px; }
.qs-top { text-align: center; }
.qs-top h1 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: 1.5px; color: #f3ead0; font-size: clamp(28px, 4vw, 44px); }
.qs-top > p { margin: 10px auto 22px; color: var(--muted); max-width: 720px; }
.qs-msg { text-align: center; color: var(--muted); padding: 40px 0; } .qs-msg.err { color: #ff9b8a; }

/* filters */
.qs-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; border-radius: 14px;
  background: linear-gradient(160deg, #171c2e, #10131f 70%); border: 1px solid #262d45; }
.qs-filters select, .qs-filters input { font: inherit; color: var(--text); background: #0f1320; border: 1px solid #2c3350;
  border-radius: 9px; padding: 9px 11px; min-width: 0; }
.qs-filters select:focus, .qs-filters input:focus { outline: none; border-color: var(--gold-dim); }
.qs-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; background: #0f1320; border: 1px solid #2c3350;
  border-radius: 9px; padding: 0 10px; }
.qs-search:focus-within { border-color: var(--gold-dim); }
.qs-search { position: relative; }
.qs-filters { position: relative; z-index: 5; }
/* live suggestions under the search box */
.qs-sug { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 30; max-height: min(440px, 60vh); overflow-y: auto;
  padding: 6px; border-radius: 11px; background: #0f1320; border: 1px solid var(--gold-dim); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.qs-sug a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 9px;
  border-radius: 8px; text-decoration: none; color: #f3ead0; }
.qs-sug a.on, .qs-sug a:hover { background: #1d2338; box-shadow: inset 3px 0 0 var(--gold); }
.qs-sug .lv { text-align: center; font-weight: 800; font-size: 13px; color: #ffe08a; padding: 2px 0; border-radius: 6px; background: #0b0e18; border: 1px solid #2a3150; }
.qs-sug .t { min-width: 0; } .qs-sug .t b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-sug .t mark { background: none; color: var(--gold); }
.qs-sug .t span { color: var(--muted); font-size: 12.5px; }
.qs-sug .tag { font-size: 10px; }
.qs-sug .all { display: block; padding: 8px 9px 4px; color: var(--muted); font-size: 12.5px; text-align: center; }
.qs-search svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.qs-search input { flex: 1; border: 0; background: transparent; padding: 9px 0; }
.qs-lvl { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.qs-lvl input { width: 66px; }
.qs-count { margin: 14px 2px 8px; color: var(--muted); font-size: 13.5px; }

/* the list */
.qs-list { display: flex; flex-direction: column; gap: 6px; }
.qs-zone-h { margin: 18px 2px 4px; font-family: var(--display); font-size: 19px; color: #f3ead0; letter-spacing: .5px; }
.qr { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px;
  border-radius: 11px; text-decoration: none; background: #121726; border: 1px solid #222941; transition: border-color .15s, transform .15s; }
.qr:hover, .qr:focus-visible { border-color: var(--gold-dim); transform: translateY(-1px); outline: none; }
.qr-lvl { font-weight: 800; font-size: 15px; text-align: center; padding: 4px 0; border-radius: 8px; background: #0c0f1a;
  border: 1px solid #2a3150; color: #ffe08a; }
.qr-t { min-width: 0; }
.qr-t b { display: block; color: #f3ead0; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-t span { color: var(--muted); font-size: 13px; }
.qr-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tag { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  color: #c9cfdf; background: #1d2338; border: 1px solid #2c3350; white-space: nowrap; }
.tag.elite, .tag.dungeon, .tag.raid { color: #1b1300; background: linear-gradient(#ffcc33, #e0a000); border-color: #e0a000; }
.tag.pvp { color: #fff; background: #7a2a2a; border-color: #a33; }
.tag.alliance { color: #cfe6ff; background: #13294a; border-color: #2c5a99; }
.tag.horde { color: #ffd6d0; background: #4a1714; border-color: #993228; }
.qs-more { display: block; margin: 16px auto 0; font: inherit; font-weight: 700; color: #e9e2c8; cursor: pointer; padding: 10px 22px;
  border-radius: 10px; border: 1px solid #343c5c; background: linear-gradient(180deg, #1d2338, #151a2b); }
.qs-more:hover { border-color: var(--gold-dim); }
.qs-note { margin: 26px auto 0; max-width: 820px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.55; }
.qs-note a { color: #ffe08a; }

/* ---------------------------------------------------------------- one quest */

.qd-crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.qd-crumbs a { color: #ffe08a; text-decoration: none; } .qd-crumbs a:hover { text-decoration: underline; }
.qd-crumbs span:not(:empty)::before { content: "›"; margin: 0 8px; color: #59607a; }
.qd-head h1 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; letter-spacing: 1px; color: #f3ead0;
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; }
.qd-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.qd-meta .tag { font-size: 11.5px; }
.qd-obj { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: #121726; border: 1px solid #222941;
  color: #d9d6cc; font-size: 15px; }
.qd-obj b { color: #ffe08a; font-weight: 700; margin-right: 6px; }
.qd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; margin-top: 20px; align-items: start; }
.qd h2 { margin: 0 0 12px; font-family: var(--display); font-size: 21px; color: #f3ead0; letter-spacing: .5px; }
.qd-card { padding: 18px 18px 16px; border-radius: 14px; background: linear-gradient(160deg, #171c2e, #10131f 70%); border: 1px solid #262d45; }
.qd-card + .qd-card { margin-top: 16px; }

/* the steps */
.qd-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: flex; flex-direction: column; gap: 12px; }
.qd-steps li { position: relative; padding-left: 46px; color: #e2dfd5; line-height: 1.55; }
.qd-steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: 0; width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: #1b1300; background: linear-gradient(#ffcc33, #e0a000);
  box-shadow: 0 0 10px rgba(248, 183, 0, .35); }
.qd-steps li b { color: #fff; }
.qd-steps .sub { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.coord { display: inline-flex; align-items: center; gap: 5px; margin: 2px 2px 0 0; padding: 1px 8px 1px 6px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #ffe08a; background: #1d2236; border: 1px solid #39405f; cursor: pointer; white-space: nowrap;
  font-family: inherit; }
.coord:hover, .coord.on { border-color: var(--gold); background: #2a2a1d; }
.coord i { font-style: normal; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; font-size: 10.5px;
  color: #1b1300; background: #ffcc33; }
.coord .zn { color: #c9cfdf; font-weight: 600; }

/* tips */
.qd-tips { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.qd-tips li { padding: 9px 12px 9px 36px; position: relative; border-radius: 10px; background: #13182a; border: 1px solid #252c46;
  color: #d9d6cc; font-size: 14px; }
.qd-tips li::before { content: "!"; position: absolute; left: 11px; top: 9px; width: 17px; height: 17px; border-radius: 50%; display: grid;
  place-items: center; font-weight: 900; font-size: 12px; color: #1b1300; background: #ffcc33; }

/* map */
.qd-map { position: relative; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; border: 1px solid #2a3150;
  background: radial-gradient(circle at 50% 45%, #1b2238, #0e1220 75%); }
.qd-map::before { content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(#2a3150 1px, transparent 1px), linear-gradient(90deg, #2a3150 1px, transparent 1px);
  background-size: 10% 10%; }
.qd-map .mapimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; z-index: 0; }
.qd-map .pin, .qd-map .zl { z-index: 1; }
.qd-map:has(.mapimg)::before { display: none; }
.qd-map:has(.mapimg) .zl { color: #fff; text-shadow: 0 1px 3px #000, 0 0 8px #000; }
.qd-map .zl { position: absolute; left: 10px; top: 8px; font-family: var(--display); font-weight: 700; color: #cfc6a6; font-size: 14px; }
.qd-map .pin { position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; display: grid;
  place-items: center; font-size: 11px; font-weight: 900; color: #1b1300; background: #ffcc33; border: 2px solid #1b1300;
  box-shadow: 0 0 0 2px #ffcc3355, 0 2px 8px #000a; cursor: default; transition: transform .15s; }
.qd-map .pin.end { background: #7ee07e; }
.qd-map .pin.on { transform: translate(-50%, -50%) scale(1.35); z-index: 2; }
.qd-map-zones { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.qd-map-zones button { font: inherit; font-size: 12.5px; font-weight: 700; color: #c9cfdf; background: #151a2b; border: 1px solid #2c3350;
  border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.qd-map-zones button[aria-pressed="true"] { color: #1b1300; background: #ffcc33; border-color: #ffcc33; }
.qd-map-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

/* rewards and chain */
.qd-rew { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.qd-rew li { padding: 7px 10px; border-radius: 9px; background: #0f1320; border: 1px solid #222941; font-weight: 700; font-size: 14px; }
.qd-rew li small { color: var(--muted); font-weight: 600; }
.qd-rew-h { margin: 12px 0 6px; color: var(--muted); font-size: 12.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.money { color: #ffe08a; font-weight: 800; } .money .s { color: #d6d6d6; } .money .c { color: #e3a06b; }
.qd-xp { margin: 0; } .qd-xp b { color: #c9a0ff; font-size: 16px; }
.qd-xp small { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.qd-xp small .money { font-weight: 700; }
.qd-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.qd-chain li a, .qd-chain li span { display: block; padding: 7px 10px; border-radius: 9px; font-size: 14px; text-decoration: none;
  background: #0f1320; border: 1px solid #222941; color: #d9d6cc; }
.qd-chain li a:hover { border-color: var(--gold-dim); color: #fff; }
.qd-chain li span { border-color: var(--gold); color: #ffe08a; font-weight: 800; }
.qd-src { margin: 22px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.qd-src a { color: #ffe08a; }
.qd-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 3px 9px;
  border-radius: 999px; color: #ffd9a8; background: #3a2610; border: 1px solid #7a5222; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 9px 16px; border-radius: 10px; background: #1b2032;
  border: 1px solid var(--gold-dim); color: #f3ead0; font-weight: 700; z-index: 50; }

@media (max-width: 820px) {
  .qd-grid { grid-template-columns: 1fr; }
  .qr { grid-template-columns: 44px minmax(0, 1fr); }
  .qr-tags { grid-column: 2; justify-content: flex-start; }
  .qs-filters select { flex: 1 1 140px; }
}

/* the zone map on the list (quest start points) */
.qs-map { margin: 16px 0 4px; }
.qs-map-box { position: relative; aspect-ratio: 1002 / 668; max-width: 820px; margin: 0 auto; border-radius: 12px; overflow: hidden;
  border: 1px solid #3a2f12; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); background: #10131f; }
.qs-map-box img { position: absolute; inset: 0; width: 100%; height: 100%; }
.qs-map .qd-map-note { text-align: center; }
.qp { position: absolute; transform: translate(-50%, -100%); font: 900 20px/1 var(--display); color: #ffd100; text-decoration: none;
  text-shadow: 0 0 3px #000, 0 0 3px #000, 0 1px 2px #000; padding: 0 3px; z-index: 1; }
.qp:hover, .qp:focus-visible { color: #fff; transform: translate(-50%, -100%) scale(1.3); outline: none; }

/* link to the Quest Reward Upgrade Finder */
.qs-cta { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; text-decoration: none;
  color: #c9cfdf; font-size: 14px; background: radial-gradient(600px 160px at 100% 50%, rgba(30, 255, 0, .08), transparent 70%),
  linear-gradient(160deg, #1a1f33, #10131f 70%); border: 1px solid var(--gold-dim); transition: border-color .15s, transform .15s; }
.qs-cta:hover { border-color: var(--gold); transform: translateY(-1px); }
.qs-cta b { display: block; color: #f3ead0; font-size: 15.5px; }
.qs-cta-new { flex: none; font-size: 11px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; color: #0b1a08; background: #1eff00;
  padding: 3px 9px; border-radius: 999px; }
.qs-cta-go { margin-left: auto; flex: none; font-weight: 800; color: #1b1300; padding: 9px 14px; border-radius: 10px; background: linear-gradient(#ffcc33, #e0a000); }
@media (max-width: 640px) { .qs-cta { flex-wrap: wrap; } .qs-cta-go { margin-left: 0; width: 100%; text-align: center; } }
.qd-upg { display: block; margin-top: 12px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; color: #c9cfdf; text-decoration: none;
  background: #0f1320; border: 1px dashed var(--gold-dim); }
.qd-upg b { color: #ffe08a; } .qd-upg:hover { border-style: solid; }
.qd-rew li a { text-decoration: none; } .qd-rew li a:hover { text-decoration: underline; }
