html:has(.nk-help-page) { scroll-padding-block-start: 0; }
.nk-help-page {
    --nk-help-header-offset: calc(var(--nk-header-height, 92px) + var(--nk-page-admin-offset, 0px) + .55rem);
    padding-block: clamp(1.1rem, 2.1vw, 2.1rem) clamp(2.5rem, 5vw, 4.5rem);
}
.nk-help-page .nk-help-crumb { margin: 0 0 1.15rem; }
.nk-help-crumb [aria-current] { color: var(--ink); font-weight: 800; }

.nk-help-hero {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
    align-items: center; gap: 1.35rem; padding: clamp(1.3rem, 4.2vw, 3.6rem);
    background: radial-gradient(ellipse at 86% 44%, #36377a, transparent 59%), linear-gradient(125deg, #171832, #24254d);
    color: #fff; border-radius: clamp(14px, 2vw, 24px);
}
.nk-help-hero-copy { min-width: 0; }
.nk-help-hero .nk-help-tag {
    display: inline-flex; align-items: center; gap: .5rem;
    margin: 0 0 .95rem; padding: .36rem .58rem;
    border: 1px solid #666ba2; border-radius: 7px; background: #343562;
    color: #f2f2ff; font: 700 .69rem/1.4 ui-monospace, monospace; letter-spacing: .07em;
}
.nk-help-tag > span { width: .42rem; height: .42rem; background: var(--nk-brand-lime); border-radius: 50%; }
.nk-portal .nk-help-hero h1 {
    margin: 0 0 .95rem; color: #fff;
    font-size: clamp(2rem, 1rem + 4.1vw, 4.75rem); line-height: 1.06;
    overflow-wrap: anywhere; text-wrap: balance;
}
.nk-help-hero h1 em { color: var(--nk-brand-lime); font-style: normal; }
.nk-help-hero-copy > p:not(.nk-help-tag) { margin: 0; max-inline-size: 42ch; color: #eaebff; }
.nk-help-actions { display: flex; flex-wrap: wrap; gap: .85rem 1rem; margin-block: 1.65rem .55rem; }
.nk-help-actions .nk-btn-lime { --on-accent: var(--nk-on-brand-lime); }
body.nk-portal .nk-help-hero .nk-help-hero-link { --on-accent: #fff; background: #2c2d57; border: 1px solid #7075a9; color: #fff; }
body.nk-portal .nk-help-hero .nk-help-hero-link:is(:hover, :focus-visible) { background: #414477; color: #fff; }
.nk-help-hero-art { display: grid; justify-items: center; align-self: center; min-width: 0; scroll-margin-top: var(--nk-help-header-offset); }
.nk-help-hero-art [hidden] { display: none !important; }
.nk-help-game-timer {
    color: var(--nk-brand-lime); font-size: clamp(2.25rem, 4.8vw, 3.55rem);
    font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1;
}
.nk-help-game-timer[data-urgent] { color: #ffb0bc; }
.nk-help-hero .nk-help-game-instructions {
    max-inline-size: 40ch; margin: 0 0 .55rem; color: #eaebff;
    font-size: .75rem; line-height: 1.35; text-align: center;
}
.nk-help-game-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .7rem; margin-block: .65rem .55rem; }
.nk-help-game-controls .nk-btn { min-block-size: 44px; padding: .45rem .9rem; font-size: .85rem; --on-accent: var(--nk-on-brand-lime); }
.nk-help-game-score {
    display: inline-flex; align-items: center; justify-content: center; min-block-size: 44px; gap: .34rem; padding: .26rem .7rem;
    border: 1px solid #777acb; border-radius: 7px; background: #292a52; color: #fff;
    font-size: .88rem; font-weight: 800; white-space: nowrap;
}
.nk-help-game-score strong { color: var(--nk-brand-lime); font-size: 1.32em; font-variant-numeric: tabular-nums; }
.nk-help-hero .nk-help-game-status { margin: .4rem 0 0; color: #eaebff; font-size: .73rem; text-align: center; }
.nk-help-hero .nk-help-game-status:empty { margin: 0; }
.nk-help-game-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; margin-block-start: .65rem; font-size: .75rem; }
body.nk-portal .nk-help-game-links :is(a, button) { background: transparent; border: 0; color: var(--nk-brand-lime); font: inherit; text-decoration: underline; text-underline-offset: .2em; }
.nk-help-orbit {
    position: relative;
    inline-size: min(100%, 23rem, max(14rem, 45svh)); aspect-ratio: 420 / 360;
    background: radial-gradient(ellipse, #7779ee6b 2%, #4f54bd60 47%, transparent 72%);
}
.nk-help-orbit-track { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.nk-help-orbit-ring { stroke: #9a9ce8; stroke-opacity: .58; }
.nk-help-orbit[data-aiming] .nk-help-orbit-ring { stroke: #cfceff; stroke-opacity: .9; }
.nk-help-orbit-inner { stroke: #9a9ce8; stroke-opacity: .42; stroke-dasharray: 4 6; }
.nk-help-orbit-cross { stroke: #aeb2ff; stroke-opacity: .38; }
.nk-help-orbit-point { fill: var(--nk-brand-lime); }
.nk-help-point-halo { fill: none; stroke: currentColor; color: #b6baff; opacity: .4; }
.nk-help-orbit-point[data-target] .nk-help-point-halo { color: var(--nk-brand-lime); opacity: .78; }
.nk-help-orbit[data-expression="caught"] .nk-help-orbit-point[data-target] .nk-help-point-halo {
    stroke-width: 2; filter: drop-shadow(0 0 5px var(--nk-brand-lime));
}
.nk-help-rope { stroke: #d9d7ff; stroke-width: 2.75; stroke-linecap: round; }
.nk-help-orbit[data-expression="caught"] .nk-help-rope { stroke: var(--nk-brand-lime); }
.nk-help-key-aim, .nk-help-shot-aim { display: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 4 3; }
.nk-help-orbit:has(.nk-help-playfield:focus-visible) .nk-help-key-aim,
.nk-help-shot-aim[data-visible] { display: block; }
.nk-help-orbit[data-expression="caught"] .nk-help-shot-aim { stroke: var(--nk-brand-lime); }
.nk-help-orbit[data-expression="missed"] .nk-help-shot-aim { stroke: #ffb0bc; }
body.nk-portal .nk-help-playfield {
    position: absolute; inset: 0; inline-size: 100%; block-size: 100%;
    padding: 0; border: 0; border-radius: 18px; background: transparent;
    cursor: default; touch-action: manipulation;
}
body.nk-portal .nk-help-orbit[data-aiming] .nk-help-playfield { cursor: crosshair; }
body.nk-portal .nk-help-playfield:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
body.nk-portal .nk-help-playfield:disabled { cursor: default; }
.nk-help-kmin {
    position: absolute; inset: 50% auto auto 50%; inline-size: 56%;
    transform: translate(calc(-50% + var(--nk-help-head-x, 0px)), calc(-50% + var(--nk-help-head-y, 0px))) rotate(var(--nk-help-head-tilt, 0deg));
    pointer-events: none;
}
.nk-help-kmin > svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; }
.nk-help-kmin .kmin-eyes { transform: translate(var(--nk-help-eye-x, 0px), var(--nk-help-eye-y, 0px)); }
@media (prefers-reduced-motion: no-preference) {
    .nk-help-orbit:not([data-running]) :is(.nk-help-kmin, .kmin-eyes) { transition: transform .15s ease-out; }
}
.nk-help-kmin :is(.kmin-eye, .kmin-brow, .nk-help-expression) { transition: opacity .24s ease, fill .24s ease, scale .24s ease; }
.nk-help-kmin .nk-help-expression { opacity: 0; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nk-help-kmin .nk-help-frown { stroke: #ff94a2; stroke-width: 3.8; }
.nk-help-kmin :is(.nk-help-smile, .nk-help-happy-eyes) { stroke: var(--nk-brand-lime); stroke-width: 3.8; }
.nk-help-orbit:is([data-expression="missed"], [data-expression="finished"]) .kmin-brow { opacity: 0; }
.nk-help-orbit[data-expression="missed"] .nk-help-frown,
.nk-help-orbit[data-expression="finished"] :is(.nk-help-smile, .nk-help-happy-eyes) { opacity: 1; }
.nk-help-orbit[data-expression="missed"] .kmin-eye { fill: #ffb0bc; scale: 1 .72; }
.nk-help-orbit[data-expression="finished"] .kmin-eye { opacity: 0; }
.nk-help-orbit[data-urgent] .kmin-eye { fill: #ff4e60; }
.nk-help-orbit[data-urgent][data-running] .kmin-eyes { animation: nk-help-nervous-blink .85s ease-in-out infinite; }
@keyframes nk-help-nervous-blink {
    0%, 35%, 65%, 100% { opacity: 1; }
    50% { opacity: .25; }
}
.nk-help-orbit:not([data-running]) .nk-help-kmin :is(.kmin-body, .kmin-eye) { animation-play-state: paused; }

.nk-help-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, .38fr);
    align-items: start; gap: clamp(1rem, 2.6vw, 2rem); margin-block-start: clamp(1.2rem, 3vw, 2.5rem);
}
.nk-help-layout > .nk-faq-widget { grid-area: 1 / 1; }
.nk-help-topics { display: none; }
.nk-help-side { position: sticky; inset-block-start: var(--nk-help-header-offset); grid-area: 1 / 2; }
body.niekuj-site .nk-help-page .nk-faq-widget-group > h2 {
    scroll-margin-block-start: calc(var(--nk-help-header-offset) + var(--nk-help-topic-height, 0px) + .65rem);
}
.nk-help-panel { padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.nk-help-panel { border-block-start: 4px solid var(--nk-brand-action); }
.nk-portal .nk-help-panel h2 { margin: 0 0 .4rem; color: var(--ink); font-size: 1.2rem; }
.nk-portal .nk-help-panel > a {
    display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    min-block-size: 44px; padding: .3rem .25rem; border-radius: 6px;
    color: var(--ink); font-size: .91rem; font-weight: 700; text-decoration: none;
}
.nk-portal .nk-help-panel > a:is(:hover, :focus-visible) { background: var(--soft); text-decoration: none; }
.nk-help-panel > a > span { flex: none; }

@media (max-width: 800px) {
    .nk-help-layout { grid-template-columns: minmax(0, 1fr); --nk-help-topic-height: 3rem; }
    .nk-help-layout > .nk-faq-widget, .nk-help-side { grid-area: auto; }
    .nk-help-side { position: static; }
    .nk-help-topics {
        position: sticky; inset-block-start: var(--nk-help-header-offset); z-index: 4;
        display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .22rem;
        padding: .24rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
    }
    .nk-help-topics > a {
        display: grid; place-items: center; min-block-size: 44px;
        padding: .2rem .25rem; border-radius: 6px; color: var(--ink);
        font-size: .78rem; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none;
        overflow-wrap: anywhere;
    }
    .nk-help-topics > a:is(:hover, :focus-visible) { background: var(--soft); text-decoration: none; }
    .nk-portal .nk-help-topics > a[aria-current="location"] { background: var(--nk-brand-action); color: #fff; }
}
@media (max-width: 570px) {
    .nk-help-hero { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .nk-help-orbit { inline-size: min(100%, 19rem); }
}
@media (prefers-reduced-motion: reduce) {
    .nk-help-kmin :is(.kmin-eye, .kmin-brow, .nk-help-expression) { transition: none; }
}
