/* ==========================================================================
   «Путь новичка» (ui-nquest.js). Холст 1552×964, палитра и шрифт KingUI.
   ========================================================================== */

.nq-panel {
    /* на весь экран: холст 1920x1080, ширина растягивается под экран (adaptive) */
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(900px 600px at 85% 110%, rgba(242, 156, 20, 0.10) 0%, rgba(242, 156, 20, 0) 70%),
        linear-gradient(180deg, #1D1E24 0%, #141519 100%);
    overflow: hidden;
    font-family: var(--kui-font);
    color: #fff;
}

.nq-glow {
    position: absolute;
    left: -240px;
    top: -300px;
    width: 980px;
    height: 760px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(255, 213, 92, 0.16) 0%, rgba(255, 213, 92, 0) 70%);
    pointer-events: none;
}

.nq-ico { display: inline-flex; width: 1em; height: 1em; }
.nq-ico svg { width: 100%; height: 100%; display: block; }

/* ---------------- шапка ---------------- */
.nq-head { position: absolute; left: 64px; top: 44px; }
.nq-kicker { font-size: 28px; letter-spacing: 3px; color: var(--kui-gold-a); font-weight: 500; }
.nq-title { font-size: 88px; line-height: 94px; font-weight: 700; letter-spacing: 1px; }

.nq-total { position: absolute; right: 190px; top: 70px; width: 480px; text-align: right; }
.nq-total-text { font-size: 30px; color: rgba(255, 255, 255, 0.7); margin-bottom: 12px; }
.nq-total-text b { color: #fff; font-size: 40px; }

.nq-bar {
    position: relative;
    height: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.nq-bar-big { height: 22px; border-radius: 12px; }
.nq-bar-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--kui-gold-a) 0%, var(--kui-gold-b) 100%);
    box-shadow: 0 0 18px rgba(255, 188, 55, 0.55);
    transition: width 0.5s ease;
}

.nq-close {
    position: absolute;
    right: 60px;
    top: 56px;
    width: 96px;
    height: 96px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}
.nq-close-circ {
    display: flex; align-items: center; justify-content: center;
    width: 96px; height: 96px; border-radius: 50%;
    background: linear-gradient(90deg, var(--kui-gold-a) 0%, var(--kui-gold-b) 100%);
}
.nq-close-circ svg { width: 38px; height: 38px; }

/* ---------------- главы слева ---------------- */
.nq-side { position: absolute; left: 56px; top: 196px; width: 520px; }

.nq-ch {
    position: relative;
    height: 178px;
    margin-bottom: 22px;
    border-radius: 20px;
    background: #24252C;
    box-shadow: inset 0 0 0 3px var(--kui-line);
    cursor: pointer;
}
.nq-ch-sel { box-shadow: inset 0 0 0 4px var(--kui-gold-a), 0 0 26px rgba(255, 213, 92, 0.18); background: #2A2B32; }
.nq-ch-st0 { opacity: 0.55; }

.nq-ch-num {
    position: absolute; left: 26px; top: 30px;
    width: 76px; height: 76px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 42px; font-weight: 700;
    background: #33353D; color: #fff;
}
.nq-ch-num .nq-ico { width: 34px; height: 34px; }
.nq-ch-st1 .nq-ch-num { background: linear-gradient(90deg, var(--kui-gold-a), var(--kui-gold-b)); color: #212228; }
.nq-ch-st2 .nq-ch-num, .nq-ch-st3 .nq-ch-num { background: #26D950; color: #0f2416; }

.nq-ch-title { position: absolute; left: 124px; top: 24px; right: 20px; font-size: 42px; line-height: 48px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nq-ch-sub { position: absolute; left: 124px; top: 76px; font-size: 27px; color: rgba(255, 255, 255, 0.6); }
.nq-ch-prize {
    position: absolute; left: 124px; right: 160px; top: 122px;
    font-size: 25px; color: var(--kui-gold-a);
    display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden;
}
.nq-ch-prize .nq-ico { width: 24px; height: 24px; flex: none; }
.nq-ch-prize span { overflow: hidden; text-overflow: ellipsis; }
.nq-ch-st3 .nq-ch-prize { color: rgba(255, 255, 255, 0.45); }

.nq-claim {
    position: absolute; right: 20px; bottom: 20px;
    height: 60px; padding: 0 26px;
    border: none; border-radius: 14px;
    background: linear-gradient(90deg, var(--kui-gold-a), var(--kui-gold-b));
    color: #212228; font-family: var(--kui-font); font-size: 26px; font-weight: 700;
    animation: nq-pulse 1.6s ease-in-out infinite;
    cursor: pointer;
}

@keyframes nq-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 213, 92, 0.55); }
    50% { box-shadow: 0 0 0 10px rgba(255, 213, 92, 0); }
}

/* ---------------- правая часть ---------------- */
.nq-main { position: absolute; left: 624px; top: 196px; right: 64px; bottom: 104px; }
.nq-chhead { position: relative; }
.nq-chhead-prize {
    position: absolute; right: 0; top: 6px; max-width: 470px;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; border-radius: 14px;
    background: rgba(255, 213, 92, 0.10); color: var(--kui-gold-a);
    font-size: 22px; line-height: 26px; text-align: left;
}
.nq-chhead-prize .nq-ico { width: 30px; height: 30px; flex: none; }
.nq-chhead-prize small { display: block; font-size: 18px; color: rgba(255, 255, 255, 0.55); letter-spacing: 1px; }

.nq-chhead-num { font-size: 26px; letter-spacing: 3px; color: var(--kui-gold-a); }
.nq-chhead-title { font-size: 56px; line-height: 62px; font-weight: 700; }
.nq-chhead-sub { font-size: 26px; color: rgba(255, 255, 255, 0.6); }

.nq-stepper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--nq-n), 1fr);
    margin-top: 16px;
    height: 104px;
}
.nq-node { position: relative; text-align: center; }
.nq-node-line {
    position: absolute; top: 30px; right: 50%; width: 100%; height: 4px;
    background: #3A3C44;
}
.nq-node-st2 .nq-node-line, .nq-node-st1 .nq-node-line { background: linear-gradient(90deg, #26D950, var(--kui-gold-a)); }
.nq-node-dot {
    position: relative; z-index: 1;
    width: 62px; height: 62px; margin: 0 auto;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 700;
    background: #2E3037; color: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 0 0 3px #3A3C44;
}
.nq-node-dot .nq-ico { width: 30px; height: 30px; }
.nq-node-st1 .nq-node-dot { background: linear-gradient(90deg, var(--kui-gold-a), var(--kui-gold-b)); color: #212228; box-shadow: 0 0 22px rgba(255, 213, 92, 0.5); }
.nq-node-st2 .nq-node-dot { background: #26D950; color: #0f2416; box-shadow: none; }
.nq-node-title { margin-top: 10px; font-size: 22px; line-height: 26px; color: rgba(255, 255, 255, 0.75); padding: 0 6px; }
.nq-node-st1 .nq-node-title { color: #fff; font-weight: 700; }

.nq-body { position: absolute; left: 0; right: 0; top: 268px; bottom: 0; }

/* карточка задания */
.nq-task {
    position: absolute; inset: 0;
    border-radius: 24px;
    background: #23242B;
    box-shadow: inset 0 0 0 3px var(--kui-line);
    padding: 30px 40px 30px;
    box-sizing: border-box;
    display: flex; flex-direction: column;
}
.nq-task-label { font-size: 22px; letter-spacing: 3px; color: var(--kui-gold-a); }
.nq-task-title { font-size: 58px; line-height: 64px; font-weight: 700; margin-top: 2px; }
.nq-task-text { font-size: 30px; line-height: 40px; max-width: 1180px; color: rgba(255, 255, 255, 0.82); margin-top: 8px; }

.nq-hint {
    display: flex; align-items: flex-start; gap: 12px;
    margin-top: 12px; padding: 10px 14px;
    border-radius: 14px;
    background: rgba(72, 178, 255, 0.10);
    color: #9BD3FF; font-size: 25px; line-height: 32px;
}
.nq-hint .nq-ico { width: 28px; height: 28px; flex: none; margin-top: 1px; color: #48B2FF; }

.nq-prog { margin-top: 12px; display: flex; align-items: center; gap: 18px; }
.nq-prog .nq-bar { flex: 1; }
.nq-prog-text { font-size: 22px; color: rgba(255, 255, 255, 0.7); white-space: nowrap; }
.nq-prog-text b { color: #fff; font-size: 30px; }

.nq-foot-row {
    margin-top: auto; padding-top: 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nq-rewards { display: flex; align-items: center; gap: 12px; }
.nq-rewards-label { font-size: 22px; letter-spacing: 2px; color: rgba(255, 255, 255, 0.5); margin-right: 4px; }
.nq-chip {
    display: flex; align-items: center; gap: 8px;
    height: 52px; padding: 0 18px;
    border-radius: 14px;
    font-size: 28px; font-weight: 700;
}
.nq-chip-money { background: rgba(38, 217, 80, 0.14); color: #5BF07F; box-shadow: inset 0 0 0 2px rgba(38, 217, 80, 0.35); }
.nq-chip-exp { background: rgba(255, 213, 92, 0.12); color: var(--kui-gold-a); box-shadow: inset 0 0 0 2px rgba(255, 213, 92, 0.35); }
.nq-chip-exp .nq-ico { width: 26px; height: 26px; }

.nq-actions { display: flex; gap: 14px; flex: none; }
.nq-chip, .nq-btn { white-space: nowrap; flex: none; }
.nq-task { position: absolute; }
.nq-skip {
    position: absolute; right: 22px; top: 18px;
    height: 48px; padding: 0 18px;
    border: none; border-radius: 12px;
    background: transparent; box-shadow: inset 0 0 0 2px var(--kui-line);
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--kui-font); font-size: 22px; cursor: pointer;
}
.nq-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 72px; padding: 0 30px;
    border: none; border-radius: 16px;
    font-family: var(--kui-font); font-size: 30px; font-weight: 700;
    cursor: pointer;
}
.nq-btn .nq-ico { width: 30px; height: 30px; }
.nq-btn-gold { background: linear-gradient(90deg, var(--kui-gold-a), var(--kui-gold-b)); color: #212228; }
.nq-btn-ghost { background: transparent; color: rgba(255, 255, 255, 0.75); box-shadow: inset 0 0 0 3px var(--kui-line); }
.nq-btn:disabled { opacity: 0.5; }
.nq-btn:active, .nq-claim:active, .nq-ch:active { transform: scale(0.98); }

/* состояния главы */
.nq-state {
    position: absolute; inset: 0;
    border-radius: 24px;
    background: #23242B;
    box-shadow: inset 0 0 0 3px var(--kui-line);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 0 80px; box-sizing: border-box;
}
.nq-state-ico { width: 96px; height: 96px; margin-bottom: 14px; }
.nq-ok { color: #26D950; }
.nq-lock { color: rgba(255, 255, 255, 0.35); }
.nq-fin .nq-ok { color: var(--kui-gold-a); filter: drop-shadow(0 0 18px rgba(255, 213, 92, 0.6)); }
.nq-state-title { font-size: 46px; font-weight: 700; }
.nq-state-sub { font-size: 27px; line-height: 35px; color: rgba(255, 255, 255, 0.7); margin: 10px 0 24px; max-width: 760px; }

/* низ */
.nq-foot { position: absolute; left: 624px; bottom: 34px; display: flex; align-items: center; gap: 14px; }
.nq-foot-text { font-size: 24px; color: rgba(255, 255, 255, 0.6); }
.nq-switch {
    position: relative; width: 78px; height: 42px;
    border: none; border-radius: 22px; padding: 0;
    background: #3A3C44; cursor: pointer;
}
.nq-switch-knob {
    position: absolute; left: 5px; top: 5px;
    width: 32px; height: 32px; border-radius: 50%;
    background: #fff; transition: left 0.2s ease;
}
.nq-switch-on { background: #26D950; }
.nq-switch-on .nq-switch-knob { left: 41px; }

/* подтверждение пропуска */
.nq-confirm {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 5;
}
.nq-confirm-box {
    width: 720px; padding: 40px 44px;
    border-radius: 24px; background: #1F2026;
    box-shadow: inset 0 0 0 3px var(--kui-line);
    font-family: var(--kui-font); color: #fff; text-align: center;
}
.nq-confirm-title { font-size: 44px; font-weight: 700; }
.nq-confirm-text { font-size: 27px; line-height: 35px; color: rgba(255, 255, 255, 0.7); margin: 14px 0 28px; }
.nq-confirm-row { display: flex; justify-content: center; gap: 16px; }

/* ==========================================================================
   Плашка текущего задания поверх игры (по центру сверху)
   ========================================================================== */
.nqhud {
    position: fixed;
    /* справа под деньгами и над кнопкой спецпредложения (.spbtn, top 34%): сверху по центру мешал чату */
    right: 10px;
    top: 20.5%;
    width: 600px;
    height: 92px;
    transform-origin: 100% 0;
    background: rgba(28, 29, 34, 0.88);
    border-radius: 18px;
    box-shadow: inset 0 0 0 3px var(--kui-line);
    font-family: var(--kui-font);
    color: #fff;
    z-index: 7990;
    cursor: pointer;
    overflow: hidden;
}
.nqhud-hidden { display: none !important; }
.nqhud:active { filter: brightness(1.12); }

.nqhud-badge {
    position: absolute; left: 12px; top: 12px;
    width: 68px; height: 68px; border-radius: 14px;
    background: linear-gradient(135deg, var(--kui-gold-a), var(--kui-gold-b));
    color: #212228; display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 700;
}
.nqhud-body { position: absolute; left: 96px; right: 16px; top: 10px; }
.nqhud-title { font-size: 28px; line-height: 32px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nqhud-text { font-size: 22px; line-height: 26px; color: rgba(255, 255, 255, 0.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nqhud-bar { margin-top: 6px; height: 8px; border-radius: 5px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.nqhud-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--kui-gold-a), var(--kui-gold-b)); }

.nqhud-claim { box-shadow: inset 0 0 0 3px var(--kui-gold-a); animation: nq-pulse 1.6s ease-in-out infinite; }

.nqhud-toast {
    position: absolute; inset: 0;
    display: none; align-items: center; gap: 14px; padding: 0 22px;
    background: linear-gradient(90deg, #16361F, #1C1D22);
}
.nqhud-toasting .nqhud-toast { display: flex; }
.nqhud-toast-ico { width: 52px; height: 52px; border-radius: 50%; background: #26D950; color: #0f2416; display: flex; align-items: center; justify-content: center; flex: none; }
.nqhud-toast-ico svg { width: 30px; height: 30px; }
.nqhud-toast-t { font-size: 24px; font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nqhud-toast-rw { font-size: 24px; font-weight: 700; color: #5BF07F; white-space: nowrap; }
