/* addon.css: the WispXP addon's own UI, rebuilt in HTML from the owner's in-game screenshots
   (Modules/Window.lua, Arrow.lua, Toast.lua, Mobs.lua, Minimap.lua, DungeonPath.lua; texts from Core/L.lua).
   Colours are measured from his client: inset #080808, title bar #1b0e06, frame #281800, status
   bar #2a2521, buttons #580101 with #f8c040 text, gold titles #f2cb4c, grey subs #a8a8a8,
   parchment #d9a25d with ink #401800. Font: PT Sans Narrow bold, as his client shows it. */

@font-face { font-family: "PT Sans Narrow"; src: url("../fonts/ptsansnarrow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PT Sans Narrow"; src: url("../fonts/ptsansnarrow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

.w-ui, .w-window, .w-arrow, .w-toast, .w-plate, .w-quick, .w-tip, .w-chat, .w-mini, .w-frame, .w-dp {
  --w-gold: #f2cb4c; --w-btn: #f8c040; --w-grey: #a8a8a8; --w-green: #60d860; --w-ink: #401800; --w-ink-soft: #603000;
  font-family: "PT Sans Narrow", "Arial Narrow", sans-serif; font-weight: 700;
  -webkit-font-smoothing: antialiased; text-align: left; letter-spacing: 0; line-height: 1.3;
}
.w-ui .i, .w-window .i, .w-arrow .i, .w-toast .i, .w-frame .i, .w-quick .i, .w-dp .i { display: block; width: 100%; height: 100%; vertical-align: 0; }

/* ---------------------------------------------------------------- the window */
.w-window {
  position: relative; width: 100%; max-width: 560px; margin-bottom: 30px; color: #fff; font-size: 14px;
  background: linear-gradient(180deg, #1c120a, #2a2521 30%); border-radius: 6px; border: 3px solid #281800;
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #5a4024, inset 0 0 0 2px #0a0400, 0 40px 90px -24px rgba(0, 0, 0, .95);
}
.w-window.no-tabs { margin-bottom: 0; }
.w-titlebar { position: relative; height: 30px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #1f0d02, #120600); border-bottom: 2px solid #3b2410; border-radius: 3px 3px 0 0; }
.w-title { color: var(--w-gold); font-size: 15px; text-shadow: 0 1px 1px #000; }
.w-portrait { position: absolute; left: -16px; top: -18px; width: 62px; height: 62px; border-radius: 50%; overflow: hidden; z-index: 2;
  border: 4px solid #7a5530; box-shadow: 0 0 0 2px #1e1006, inset 0 0 0 2px #3b2410, 0 6px 14px rgba(0, 0, 0, .7); background: #000; }
.w-portrait img { width: 100%; height: 100%; display: block; }
.w-close { position: absolute; right: 4px; top: 3px; width: 22px; height: 22px; padding: 4px; border-radius: 3px; color: var(--w-btn);
  background: linear-gradient(180deg, #6e0303, #3a0000); border: 1px solid #b8862f; box-shadow: inset 0 1px 0 rgba(255, 200, 120, .25), 0 0 0 1px #000; }
.w-close.small { width: 20px; height: 20px; padding: 4px; top: 4px; right: 4px; }
.w-inset { margin: 6px 6px 0; height: 560px; position: relative; overflow: hidden; border-radius: 2px;
  background: radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, .05), transparent), repeating-linear-gradient(115deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 4px), #080808;
  border: 1px solid #1d150d; box-shadow: inset 0 2px 6px #000; }
.w-status { position: relative; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; color: #d8d8d8; font-size: 13px; background: #2a2521; border-radius: 0 0 3px 3px; }
.w-status-btn { margin-left: auto; }
.w-window[data-active]:not([data-active="guide"]) .w-status-btn { visibility: hidden; }
.w-tabs { position: absolute; left: 10px; bottom: -26px; display: flex; gap: 3px; }
.w-tab { min-width: 74px; height: 28px; padding: 0 12px; color: var(--w-gold); font: inherit; font-size: 14px; cursor: pointer;
  background: linear-gradient(180deg, #1f1d18, #12110d); border: 2px solid #3a2a14; border-top: 0; border-radius: 0 0 6px 6px; transition: color .15s ease; }
.w-tab:hover { color: #fff; }
.w-tab.on { color: #fff; height: 32px; background: linear-gradient(180deg, #3e2a15, #2a1b0c); border-color: #b0802c; box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.w-tab:focus-visible { outline: 2px solid #a8e6ff; outline-offset: 1px; }

.w-panel { position: absolute; inset: 0; display: none; }
.w-panel.on { display: block; animation: w-in .28s ease both; }
@keyframes w-in { from { opacity: 0; } to { opacity: 1; } }
.w-scroll { position: absolute; inset: 0; overflow-y: auto; padding: 10px 18px 14px 12px; scrollbar-width: thin; scrollbar-color: #48280f #000; }
.w-scroll::-webkit-scrollbar { width: 8px; background: #000; }
.w-scroll::-webkit-scrollbar-thumb { background: #48280f; border-radius: 4px; }

/* the game's red panel button */
.w-btn { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 12px; white-space: nowrap;
  color: var(--w-btn); font-size: 14px; text-shadow: 0 1px 1px #000; transition: filter .2s ease, box-shadow .2s ease, color .2s ease;
  background: linear-gradient(180deg, #730707 0%, #580101 50%, #3a0000 100%); border: 1px solid #210000; border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 120, 90, .3), inset 0 -1px 0 rgba(0, 0, 0, .5), 0 0 0 1px rgba(120, 90, 60, .55); }
.w-btn.on { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 120, 90, .3), 0 0 0 1px var(--w-gold); }
.w-btn.press { filter: brightness(1.45); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 160, 120, .4), 0 0 0 1px var(--w-gold), 0 0 14px rgba(242, 203, 76, .45); }
button.w-btn { font: inherit; font-size: 14px; cursor: pointer; }

/* headers and rows (Quests, Atlas, Routes, Settings) */
.w-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 6px; padding-bottom: 4px; border-bottom: 1px solid #303020; color: var(--w-gold); font-size: 17px; }
.w-scroll > .w-head:first-child { margin-top: 2px; }
.w-note { margin: 0 0 8px; color: #c8c8c8; font-size: 13px; }
.w-row { display: flex; align-items: center; gap: 10px; padding: 5px 2px; }
[data-panel="atlas"] .w-row-text b, [data-panel="routes"] .w-row-text b, .w-white .w-row-text b { color: #fff; }
.w-row-text { flex: 1; min-width: 0; display: grid; }
.w-row-text b { color: var(--w-gold); font-weight: 700; font-size: 15px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-row-text small { color: var(--w-grey); font-size: 13px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-row-text small.done { color: var(--w-green); }
.w-row-text small .gold, .w-row-text small.gold { color: #ffd100; }
.w-row-text small.dim { opacity: .75; }
.w-row-btns { display: flex; gap: 4px; flex: none; }
.w-row-btns .w-btn { min-width: 64px; }
.w-icon { width: 28px; height: 28px; flex: none; display: grid; place-items: center; padding: 5px; border-radius: 3px; color: #d8c08a;
  background: linear-gradient(135deg, #2e2418, #0e0a06); border: 1px solid #000; box-shadow: inset 0 0 0 1px #5e4a2c; }
.w-icon.big { width: 38px; height: 38px; padding: 7px; }
.w-icon.step { width: 18px; height: 18px; padding: 2px; margin-right: 6px; vertical-align: -4px; display: inline-grid; }
.w-new { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 3px; font-size: 11px; color: #000; background: var(--w-gold); vertical-align: 1px; }
.w-soft { color: #8f8f8f; font-size: 12px; margin-left: 4px; }
.w-group { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; padding: 4px 8px; color: var(--w-gold); font-size: 16px;
  background: linear-gradient(180deg, #2a2017, #17110b); border: 1px solid #3a2a18; border-radius: 3px; }
.w-group-r { margin-left: auto; color: #cfcfcf; font-size: 12px; }
.w-group-r em { font-style: normal; color: var(--w-green); margin-right: 8px; }
.w-row-group > .w-row { border-bottom: 0; }
.w-sub { margin: 0 0 6px 38px; padding-left: 10px; border-left: 1px solid #303020; }
.w-sub .w-row { padding: 4px 0; }
.w-fold { display: inline-grid; place-items: center; width: 13px; height: 13px; flex: none; border-radius: 2px; font: 700 12px/1 Arial, sans-serif; color: #fff; background: linear-gradient(180deg, #8a1010, #4a0202); border: 1px solid #1a0000; }
.w-fold.dark { color: var(--w-gold); background: transparent; border: 0; font-size: 17px; }
.w-langs { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 6px; }
.w-checks { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 6px; }
.w-checks li { position: relative; padding-left: 28px; color: var(--w-gold); font-size: 15px; line-height: 20px; }
.w-checks li::before { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 3px; background: linear-gradient(180deg, #1d1d1d, #050505); border: 1px solid #6b6b6b; box-shadow: inset 0 1px 2px #000; }
.w-checks li.on::after { content: ""; position: absolute; left: 7px; top: 2px; width: 6px; height: 12px; border: solid var(--w-gold); border-width: 0 3px 3px 0; transform: rotate(40deg); filter: drop-shadow(0 0 1px #000); }
.w-slider { display: flex; align-items: center; gap: 14px; margin: 8px 0; color: var(--w-gold); font-size: 14px; }
.w-slider span { width: 90px; }
.w-slider i { position: relative; flex: 1; max-width: 220px; height: 6px; border-radius: 3px; background: #050505; border: 1px solid #5a5a5a; }
.w-slider b { position: absolute; top: 50%; width: 12px; height: 18px; transform: translate(-50%, -50%); border-radius: 2px; background: linear-gradient(180deg, #d9d9d9, #8a8a8a); border: 1px solid #000; }

/* the Guide tab: quest parchment */
.w-paper { position: absolute; inset: 2px 2px 66px; overflow: hidden; padding: 10px 22px 12px 14px; color: var(--w-ink); font-size: 15px; line-height: 1.22;
  background:
    radial-gradient(130% 100% at 50% 45%, transparent 55%, rgba(110, 50, 20, .55) 100%),
    radial-gradient(45% 35% at 25% 25%, rgba(255, 215, 150, .4), transparent 70%),
    radial-gradient(50% 40% at 75% 80%, rgba(170, 100, 40, .22), transparent 70%),
    repeating-radial-gradient(circle at 30% 60%, rgba(120, 60, 20, .04) 0 2px, transparent 2px 6px),
    #d9a25d;
  box-shadow: inset 0 0 0 1px rgba(80, 35, 10, .6), inset 0 0 22px rgba(120, 60, 30, .7); }
.w-paper.full { inset: 2px; }
.w-paper::after { content: ""; position: absolute; right: 4px; top: 6px; bottom: 6px; width: 6px; border-radius: 3px; background: rgba(80, 40, 15, .3); }
.w-entry { border-bottom: 1px solid rgba(90, 45, 10, .35); padding: 0 0 7px; margin-bottom: 7px; }
.w-entry:last-child { border-bottom: 0; }
.w-entry.folded { display: flex; align-items: center; gap: 6px; color: var(--w-ink-soft); }
.w-entry-q { display: flex; align-items: center; gap: 6px; color: var(--w-ink-soft); margin-bottom: 3px; }
.w-q { font-size: 15px; }
.w-a { margin: 0 0 2px; color: var(--w-ink); }
.w-a.think { color: var(--w-ink-soft); }
.w-plan { list-style: none; margin: 0 0 2px; padding: 0; counter-reset: s; }
.w-plan li { counter-increment: s; position: relative; padding: 0 4px; margin: 0 -4px; border-radius: 2px; transition: background .5s ease, opacity .5s ease, transform .5s var(--ease, ease); }
.w-plan li::before { content: counter(s) ". "; }
.w-plan li.now { background: rgba(255, 220, 140, .55); box-shadow: inset 2px 0 0 #7a3a08; }
.w-plan li.done { opacity: .5; text-decoration: line-through; text-decoration-color: rgba(64, 24, 0, .5); }
.w-plan li.hide { opacity: 0; transform: translateY(4px); }
.w-plan li.new { background: rgba(255, 236, 170, .75); }
.w-qi { display: inline-grid; place-items: center; width: 13px; height: 15px; margin: 0 1px; vertical-align: -2px; color: #ffd100; font: 900 14px/1 Georgia, serif; text-shadow: 0 0 1px #000, 0 0 2px #000, 0 1px 0 #000; }
.w-qi.kill { width: 15px; height: 15px; padding: 1px; border-radius: 2px; background: #15151c; color: #d9d9e3; text-shadow: none; box-shadow: inset 0 0 0 1px #000; }
.w-qi.kill .i { width: 100%; height: 100%; }
.w-steps { list-style: none; margin: 4px 0 4px 6px; padding: 0; display: grid; gap: 3px; }
.w-entry-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.w-chips { position: absolute; left: 6px; right: 6px; bottom: 36px; display: flex; gap: 4px; overflow: hidden; }
.w-chips .w-btn { height: 21px; padding: 0 10px; font-size: 13.5px; }
.w-ask { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 8px; align-items: center; }
.w-ask.in-tab { position: static; margin: 6px 0 4px; }
.w-input { flex: 1; min-width: 0; height: 24px; display: flex; align-items: center; padding: 0 8px; border-radius: 3px; color: #8a8a8a; font-size: 14px; font-weight: 400; white-space: nowrap; overflow: hidden;
  background: #020302; border: 1px solid #4a4a4a; box-shadow: inset 0 1px 3px #000; }
.w-input.typed { color: #fff; }
.w-caret { display: inline-block; width: 1px; height: 15px; margin-left: 1px; background: #fff; animation: w-caret 1s steps(1) infinite; }
@keyframes w-caret { 50% { opacity: 0; } }
.w-ask .w-btn { height: 24px; min-width: 64px; }
.w-src { margin-top: 5px; color: var(--w-ink-soft); font-size: 13px; }

/* ---------------------------------------------------------------- the arrow (Arrow.lua) */
.w-arrow { position: relative; width: 236px; height: 128px; color: #fff; border-radius: 6px;
  background: rgba(8, 8, 10, .92); border: 2px solid #8a8a8a; box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000, 0 20px 50px -12px rgba(0, 0, 0, .9); }
.w-arrow-count { position: absolute; left: 9px; top: 7px; color: var(--w-gold); font-size: 12px; }
.w-arrow-glow { position: absolute; left: 50%; top: -2px; width: 84px; height: 84px; transform: translateX(-50%); background: rgba(140, 216, 255, .42);
  -webkit-mask: url("../img/addon/glow.png") center / contain no-repeat; mask: url("../img/addon/glow.png") center / contain no-repeat; }
.w-arrow-img { position: absolute; left: 50%; top: 10px; width: 56px; height: 56px; margin-left: -28px; background: #8cd8ff;
  -webkit-mask: url("../img/addon/arrow.png") center / contain no-repeat; mask: url("../img/addon/arrow.png") center / contain no-repeat;
  transition: background-color .45s ease, transform .9s cubic-bezier(.3, .7, .3, 1); }
.w-arrow-img.green { background-color: #2cff3c; }
.w-arrow-img.yellow { background-color: #ffe33c; }
.w-arrow-img.red { background-color: #ff3b2f; }
.w-arrow-img.idle { background-color: #8cd8ff; }
.w-arrow-dist { position: absolute; left: 0; right: 0; top: 67px; text-align: center; font-size: 17px; text-shadow: 0 1px 1px #000; }
.w-arrow-dist b { font-weight: 700; font-variant-numeric: tabular-nums; }
.w-arrow-step { position: absolute; left: 8px; right: 8px; top: 92px; text-align: center; font-size: 13px; line-height: 1.2; text-shadow: 0 1px 1px #000; }
.w-arrow.big { width: 360px; height: 196px; border-radius: 8px; }
.w-arrow.big .w-arrow-img { width: 92px; height: 92px; margin-left: -46px; top: 14px; }
.w-arrow.big .w-arrow-glow { width: 150px; height: 150px; top: -8px; }
.w-arrow.big .w-arrow-dist { top: 110px; font-size: 24px; }
.w-arrow.big .w-arrow-step { top: 146px; font-size: 17px; left: 14px; right: 14px; }
.w-arrow.big .w-arrow-count { font-size: 15px; left: 12px; top: 9px; }
.w-arrow.big .w-close { width: 24px; height: 24px; }

/* ---------------------------------------------------------------- a notice (Toast.lua) */
.w-toast { position: relative; width: 340px; max-width: 100%; min-height: 76px; padding: 10px 10px 8px 56px; color: #fff; border-radius: 6px;
  background: rgba(8, 8, 10, .92); border: 2px solid #8a8a8a; box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000, 0 20px 50px -12px rgba(0, 0, 0, .9); }
.w-toast .w-icon { position: absolute; left: 10px; top: 10px; }
.w-icon.wisp { padding: 0; overflow: hidden; background: #000; }
.w-icon.wisp img { width: 100%; height: 100%; display: block; }
.w-toast-text { display: grid; gap: 2px; padding-right: 22px; }
.w-toast-text b { color: var(--w-gold); font-size: 15px; }
.w-toast-text small { font-size: 12.5px; color: #fff; }
.w-toast-btn { display: flex; justify-content: flex-end; margin-top: 8px; }

/* ---------------------------------------------------------------- quick ask (Toast.lua) */
.w-quick { position: relative; display: flex; align-items: center; gap: 10px; width: 420px; max-width: 100%; height: 52px; padding: 0 12px 0 10px; border-radius: 6px;
  background: rgba(10, 13, 18, .92); border: 2px solid #a6a6a6; box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000, 0 20px 50px -12px rgba(0, 0, 0, .9); }
.w-quick img { width: 30px; height: 30px; flex: none; border-radius: 50%; }
.w-quick .w-input { height: 26px; }

/* ---------------------------------------------------------------- tooltip, chat, minimap button */
.w-tip { position: relative; display: grid; gap: 3px; width: max-content; max-width: 280px; padding: 9px 11px; color: #fff; font-size: 13px; border-radius: 5px;
  background: rgba(4, 6, 18, .93); border: 2px solid #a6a6a6; box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000, 0 16px 40px -10px rgba(0, 0, 0, .9); }
.w-tip b { font-size: 14px; color: #fff; }
.w-tip .gold { color: #ffd100; }
.w-tip .grey { color: #b8b8b8; font-weight: 400; }
.w-tip ol { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 3px; }
.w-tip li { display: flex; align-items: center; gap: 7px; color: #e8e8e8; }
.w-tip li .w-icon.step { margin: 0; }
.w-tip li.on { color: #2cff3c; }
.w-chat { display: grid; gap: 3px; padding: 8px 10px; color: #fff; font-size: 14px; font-weight: 400; line-height: 1.3; text-shadow: 0 1px 1px #000, 0 0 2px #000;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .35)); border-radius: 4px; }
.w-chat .party { color: #aaaaff; }
.w-chat .wisp { color: #4fd1c5; font-weight: 700; }
.w-chat .sys { color: #ffff00; }
.w-chat .line { opacity: 1; transition: opacity .5s ease, transform .5s ease; }
.w-chat .line.hide { opacity: 0; transform: translateY(6px); }
.w-mini { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #000;
  box-shadow: 0 0 0 3px #8e6a35, 0 0 0 4px #2a1a08, 0 0 0 5px #b8925a, 0 8px 20px rgba(0, 0, 0, .7); }
.w-mini img { width: 34px; height: 34px; border-radius: 50%; }

/* ---------------------------------------------------------------- a nameplate with WispXP's marker (Mobs.lua) */
.w-plate { position: absolute; width: 162px; display: grid; gap: 1px; color: #fff; transition: opacity .6s ease, transform .6s ease; }
.w-plate-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 6px; padding: 0 2px; }
.w-plate-name { font-size: 13.5px; color: #ff5a46; text-shadow: 0 0 2px #000, 0 1px 1px #000, 0 0 1px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-plate-lvl { font-size: 13px; color: #fff; text-shadow: 0 0 2px #000, 0 1px 1px #000; }
.w-plate-hp { position: relative; height: 11px; background: #2a0503; border: 1px solid #000; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 14px rgba(255, 255, 255, .08); }
.w-plate-hp i { display: block; height: 100%; background: linear-gradient(180deg, #ff6450 0%, #c3180b 45%, #8e0c04 100%); transition: width .5s linear; }
.w-plate-hp::after { content: ""; position: absolute; inset: 0 0 50% 0; background: linear-gradient(180deg, rgba(255, 255, 255, .22), transparent); }
.w-plate.dead { opacity: 0; transform: translateY(6px); }
.w-mark { position: absolute; bottom: calc(100% + 4px); left: 50%; width: 34px; height: 34px; margin-left: -26px; }
.w-mark-glow { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 204, 51, .7); -webkit-mask: url("../img/addon/glow.png") center / contain no-repeat; mask: url("../img/addon/glow.png") center / contain no-repeat; animation: w-pulse .8s ease-in-out infinite alternate; }
@keyframes w-pulse { from { opacity: 1; } to { opacity: .35; } }
.w-mark-icon { position: absolute; inset: 0; display: grid; place-items: center; color: #ffd100; font: 900 30px/1 Georgia, serif; text-shadow: 0 0 2px #000, 0 0 3px #000, 0 2px 0 #5a3c00; }
.w-mark-count { position: absolute; left: 100%; top: -1px; margin-left: 2px; color: #ffd933; font-size: 18px; line-height: 1.05; text-shadow: 0 0 2px #000, 0 1px 1px #000; white-space: nowrap; }
.w-mark-count small { display: block; font-size: 12.5px; color: #fff2bf; }
.w-mark-count b { display: inline-block; transition: transform .3s ease, color .3s ease; }
.w-mark-count b.bump { transform: scale(1.35); color: #fff; }

/* ---------------------------------------------------------------- Dungeon Path (DungeonPath.lua)
   The tooltip skin, 320 wide in the game. Colours of the game's fonts: GameFontNormal gold #ffd100,
   GameFontHighlightSmall white, GameFontDisableSmall grey, UI.color.good #40ff40 and soft #b3b3b3. */
.w-dp { position: relative; width: 360px; max-width: 100%; padding: 8px 10px 9px; color: #fff; font-size: 13px; border-radius: 6px;
  background: rgba(10, 13, 18, .92); border: 2px solid #a6a6a6; box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #000, 0 20px 50px -12px rgba(0, 0, 0, .9); }
.w-dp .g { color: #ffd100; }
.w-dp .ok { color: #40ff40; }
.w-dp .soft { color: #b3b3b3; }
.w-dp-top { display: flex; align-items: flex-start; gap: 7px; padding-right: 24px; }
.w-dp-top img { width: 26px; height: 26px; flex: none; border-radius: 50%; }
.w-dp-name { flex: 1; min-width: 0; display: grid; }
.w-dp-name b { color: #ffd100; font-size: 14.5px; line-height: 1.15; }
.w-dp-name small { color: #fff; font-size: 12.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-dp-count { padding-top: 3px; color: #8a8a8a; font-size: 12.5px; white-space: nowrap; }
.w-dp .w-close { top: 4px; right: 4px; }
.w-dp-line { height: 1px; margin: 6px 0 7px; background: rgba(255, 209, 0, .25); }
.w-dp-head { display: flex; align-items: baseline; gap: 8px; padding: 0 2px; }
.w-dp-head b { flex: 1; min-width: 0; color: #ffd100; font-size: 17px; line-height: 1.2; transition: color .3s ease; }
.w-dp-head b.done { color: #999; }
.w-dp-tag { color: #8a8a8a; font-size: 12.5px; white-space: nowrap; }
.w-dp-body { display: grid; gap: 2px; margin: 5px 2px 9px; font-size: 13px; line-height: 1.3; }
.w-dp-body > span { transition: color .3s ease; }
.w-dp-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; }
.w-dp-bar[hidden] { display: none; }
.w-dp-bar > span { flex: 1; min-width: 0; color: #40ff40; font-size: 13px; line-height: 1.25; }
.w-dp-btns { display: flex; gap: 4px; }
.w-dp .w-btn { min-width: 58px; }
.w-btn[disabled], .w-btn.off { color: #7c7c7c; filter: saturate(.55) brightness(.85); cursor: default; }
.w-dp-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.w-dp-list[hidden] { display: none; }
.w-dp-list button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 4px; width: 100%; height: 17px; padding: 0 3px; border-radius: 2px;
  color: #fff; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.w-dp-list button:hover { background: rgba(255, 209, 0, .12); }
.w-dp-list button:focus-visible { outline: 2px solid #a8e6ff; outline-offset: -2px; }
.w-dp-list .chk { width: 12px; height: 12px; flex: none; color: #40ff40; }
.w-dp-list .now { color: #ffd100; }
.w-dp-list .past { color: #b3b3b3; }
.w-dp button.w-btn:focus-visible { outline: 2px solid #a8e6ff; outline-offset: 1px; }
/* larger, for a page section (like .w-arrow.big) */
.w-dp.big { width: 430px; padding: 10px 12px 11px; font-size: 14.5px; }
.w-dp.big .w-dp-top img { width: 30px; height: 30px; }
.w-dp.big .w-dp-name b { font-size: 16.5px; }
.w-dp.big .w-dp-name small, .w-dp.big .w-dp-count, .w-dp.big .w-dp-tag { font-size: 13.5px; }
.w-dp.big .w-dp-head b { font-size: 20px; }
.w-dp.big .w-dp-body, .w-dp.big .w-dp-bar > span { font-size: 14.5px; }
.w-dp.big .w-btn { height: 24px; min-width: 64px; font-size: 15px; }
.w-dp.big .w-dp-list button { height: 20px; font-size: 14px; }
.w-dp.big .w-dp-list .chk { width: 13px; height: 13px; }

/* in-game boxes used inside site cards */
.w-box { position: relative; padding: 10px 12px; border-radius: 5px; color: #fff; font-size: 14px;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .016) 0 1px, transparent 1px 4px), #080808;
  border: 2px solid #281800; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px #3b2410, inset 0 2px 8px #000, 0 24px 50px -24px rgba(0, 0, 0, .9); }
.w-box.paper { color: var(--w-ink); border-color: #2b1606; font-size: 14.5px; line-height: 1.25;
  background:
    radial-gradient(130% 100% at 50% 45%, transparent 55%, rgba(110, 50, 20, .5) 100%),
    radial-gradient(45% 35% at 25% 25%, rgba(255, 215, 150, .4), transparent 70%),
    radial-gradient(50% 40% at 75% 80%, rgba(170, 100, 40, .22), transparent 70%),
    #d9a25d;
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(80, 35, 10, .6), inset 0 0 22px rgba(120, 60, 30, .7), 0 24px 50px -24px rgba(0, 0, 0, .9); }
.w-row.mini { padding: 3px 0; gap: 9px; }
.w-row.mini .w-row-text b { font-size: 14px; }
.w-row.mini .w-row-text small { font-size: 12.5px; }
.w-row.mini .w-icon { width: 26px; height: 26px; }
.w-chips.static, .w-ask.static { position: static; }
.w-chips.static { flex-wrap: wrap; margin-bottom: 8px; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 640px) {
  .w-inset { height: 520px; }
  .w-paper { font-size: 13.5px; padding: 10px 16px 10px 10px; }
  .w-q { font-size: 13.5px; }
  .w-chips .w-btn:nth-child(n+4) { display: none; }
  .w-tab { min-width: 0; padding: 0 8px; font-size: 12.5px; }
  .w-tabs { left: 4px; gap: 2px; }
  .w-row-btns .w-btn { min-width: 0; padding: 0 8px; }
  .w-row-text b { white-space: normal; }
  .w-sub { margin-left: 10px; }
  .w-toast { width: 300px; }
  .w-portrait { left: -8px; top: -14px; width: 52px; height: 52px; }
}
@media (max-width: 400px) {
  .w-row { gap: 7px; }
  .w-icon { width: 24px; height: 24px; padding: 4px; }
  .w-row-btns .w-btn { padding: 0 7px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .w-mark-glow, .w-caret { animation: none; }
  .w-dp-head b, .w-dp-body > span { transition: none; }
  .w-panel.on { animation: none; }
  .w-plan li, .w-arrow-img, .w-plate, .w-plate-hp i { transition: none; }
}
.w-arrow.nodist .w-arrow-dist { display: none; }
.w-arrow.nodist .w-arrow-step { top: 78px; font-size: 14px; }
