#novice-guide{position:fixed;z-index:980;box-sizing:border-box;padding:13px 15px;border:1px solid #c3b789;border-radius:12px;background:#fffbed;color:#4c6758;box-shadow:0 5px 20px #253d3424;font:12px/1.5 Interface,sans-serif;animation:novice-reveal .24s ease-out;}
#novice-guide[hidden]{display:none;}#novice-guide header{display:grid;gap:3px;}#novice-guide header small{font-size:9px;color:#938463;}#novice-guide header strong{font-size:15px;font-weight:650;}#novice-guide p{margin:7px 0 10px;}#novice-guide footer{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;}#novice-guide button{border:1px solid #b6c3a2;border-radius:7px;background:#e5edd8;color:#436553;padding:7px 10px;font:600 11px/1.3 Interface,sans-serif;min-height:33px;}#novice-guide .tutorial-next{background:#43796a;border-color:#43796a;color:#fffbed;}#novice-guide.has-point:before{content:'';position:absolute;left:calc(var(--guide-point) - 6px);top:-7px;width:12px;height:12px;background:#fffbed;border-left:1px solid #c3b789;border-top:1px solid #c3b789;transform:rotate(45deg);}#novice-guide.points-down:before{top:auto;bottom:-7px;transform:rotate(225deg);}.tutorial-focus{outline:2px solid #c9ac64!important;outline-offset:4px;border-radius:7px;animation:tutorial-focus 1.8s ease-in-out infinite;}
.mentor-conversation{padding:5px 4px 12px;display:grid;gap:12px;min-width:0;}.mentor-history{display:grid;gap:9px;}.mentor-message{justify-self:start;width:max-content;max-width:92%;padding:10px 12px;border:1px solid #b4c49d;border-radius:4px 12px 12px;background:#e1ebd2;color:#476953;box-sizing:border-box;}.mentor-message small{display:block;font:600 10px/1.3 Interface,sans-serif;color:#7a8d68;margin-bottom:4px;}.mentor-message p{font:500 13px/1.5 Interface,sans-serif;margin:0;}.mentor-message.is-self{justify-self:end;background:#f0e5c8;border-color:#d5bf88;color:#7c6945;border-radius:12px 4px 12px 12px;}.mentor-answers{display:grid;gap:8px;}.mentor-answers button,.mentor-secondary{min-height:38px;border:1px solid #cbbb8e;border-radius:8px;background:#f7efd9;color:#586b50;padding:9px 11px;font:550 12px/1.4 Interface,sans-serif;text-align:left;}.mentor-professions{display:grid;grid-template-columns:1fr 1fr;gap:8px;}.mentor-professions button{display:flex;align-items:center;gap:9px;}.mentor-professions img{width:33px;height:40px;object-fit:cover;border:1px solid #c6cbae;border-radius:6px;background:#faf9eb;}.mentor-paths{display:grid;gap:7px;}.mentor-paths button{display:flex;align-items:center;gap:10px;}.mentor-paths img{width:40px;height:49px;object-fit:cover;border-radius:7px;border:1px solid #c6cbae;}.mentor-paths span{display:grid;gap:3px;}.mentor-paths small{font:400 11px/1.4 Interface,sans-serif;color:#8e876c;}.mentor-paths button:disabled{opacity:.55;}.mentor-gentle-note{color:#838267;font:12px/1.5 Interface,sans-serif;}.mentor-trial{display:grid;gap:7px;padding:11px 12px;border:1px solid #c8c8a6;border-radius:9px;background:#f5f2df;}.mentor-trial strong{font-size:13px;}.mentor-trial span{font-size:11px;color:#928363;}
#world.mentor-expanded .map{opacity:0;pointer-events:none;}#world.mentor-expanded .destination{height:calc(100% - 56px)!important;max-height:none!important;}#world.mentor-expanded .world-panel{height:100%!important;}#world.mentor-expanded .world-panel-body{max-height:none!important;}.world-panel-body:has([data-mentor-conversation]){overflow-y:auto;scrollbar-width:none;}.world-panel-body:has([data-mentor-conversation])::-webkit-scrollbar{display:none;}
@keyframes novice-reveal{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes tutorial-focus{0%,100%{outline-color:#c9ac64;box-shadow:0 0 0 5px #dfc47a16}50%{outline-color:#e8ce86;box-shadow:0 0 0 7px #dfc47a30}}
@media(prefers-reduced-motion:reduce){#novice-guide,.tutorial-focus{animation:none;}}

#world.mentor-expanded #destination{position:absolute!important;inset:0!important;height:auto!important;max-height:none!important;z-index:155;border-radius:16px;overflow:hidden;}#world.mentor-expanded #destination>.location-inline-panel{inset:0!important;padding:12px!important;border-radius:16px!important;}

.mentor-conversation,.mentor-history,.mentor-answers,.mentor-paths,.mentor-trial{grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%;width:100%;box-sizing:border-box;}.mentor-message{width:fit-content;min-width:0;overflow-wrap:anywhere;}.mentor-message p{white-space:normal;}.mentor-answers button{min-width:0;max-width:100%;white-space:normal;box-sizing:border-box;}#location-inline-panel .world-panel-body:has([data-mentor-conversation]){display:block!important;align-content:start;align-items:stretch;overflow-x:hidden;}

.mastery-tree .mastery-tier,.mastery-tree .mastery-stems{grid-template-columns:repeat(var(--mastery-columns,3),minmax(0,1fr));}
.mentor-message p{position:relative;font-weight:500;}.mentor-type-layout{visibility:hidden;}.mentor-type-ink{position:absolute;inset:0;white-space:normal;overflow-wrap:anywhere;}.mentor-history:empty{display:none;}.mentor-answers button:disabled:not([data-mentor-path]){opacity:.7;}.mentor-conversation .mentor-message.is-self small{text-align:right;}#world.mentor-expanded .mentor-message p{font-size:14px;line-height:1.55;}#world.mentor-expanded .mentor-conversation{max-width:700px;margin-inline:auto;padding:8px 7px 16px;}#world.mentor-expanded .mentor-paths{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));}

.soul-inspect-elements{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:10px 0;}.soul-inspect-elements>span{display:grid;grid-template-columns:16px minmax(0,1fr);gap:4px;align-items:center;padding:6px 5px;border:1px solid #ccd2b5;border-radius:7px;background:#f2f5e8;min-width:0;}.soul-inspect-elements img{grid-row:span 2;width:15px;height:15px;}.soul-inspect-elements small{font:9px/1.2 Interface,sans-serif;color:#879175;}.soul-inspect-elements b{font:600 11px/1.2 Interface,sans-serif;color:#627d6a;}.soul-library .necro-inspect{animation:novice-reveal .22s ease-out;}.soul-library .soul-library-back{margin-bottom:8px;}.soul-library .soul-inspect-note{padding:11px 12px;border:1px solid #c9cbb0;border-radius:9px;background:#f7f4e8;}.soul-library .soul-inspect-note h3{font:600 12px/1.4 Interface,sans-serif;margin:0 0 5px;}.soul-library .soul-inspect-note p{font:11px/1.5 Interface,sans-serif;margin:0;}

.message.system{color:#81867e;background:#f2f1e9;font-weight:400;}.message.system .message-name,.message.system strong{color:#777f76;font-weight:500;}

/* 03.11.2026 tutorial: the guide stays on top of every window; the rest of the screen is dimmed and not clickable except the control it points at */
#novice-guide{z-index:1300;transition:top .22s ease,bottom .22s ease,left .22s ease}
#novice-guide[hidden]{display:block}
#novice-shade>i{position:fixed;z-index:1290;background:#13221c66;pointer-events:auto;transition:top .22s ease,left .22s ease,width .22s ease,height .22s ease;animation:novice-shade-in .25s ease-out}
#novice-shade>b{position:fixed;z-index:1291;box-sizing:border-box;border:2px solid #e7c873;border-radius:11px;pointer-events:none;box-shadow:0 0 0 4px #e7c87333,0 0 18px #e7c87355;transition:top .22s ease,left .22s ease,width .22s ease,height .22s ease;animation:novice-ring 1.8s ease-in-out infinite}
@keyframes novice-shade-in{from{opacity:0}to{opacity:1}}
@keyframes novice-ring{0%,100%{box-shadow:0 0 0 4px #e7c87333,0 0 14px #e7c87344}50%{box-shadow:0 0 0 7px #e7c87322,0 0 22px #e7c87377}}
#novice-guide.guide-compact{top:auto!important;bottom:calc(env(safe-area-inset-bottom,0px) + 82px)!important;padding:8px 12px;opacity:.97}
#novice-guide.guide-compact header small{display:none}
#novice-guide.guide-compact p{margin:4px 0 0}
#novice-guide.guide-compact::after{display:none}
#novice-guide.guide-react{border-color:#8fb36e;box-shadow:0 5px 20px #3d6b2f33,0 0 0 3px #b7d79a55}
#novice-guide .tutorial-next.is-earned{animation:novice-earned 1.4s ease-in-out infinite}
@keyframes novice-earned{0%,100%{transform:none;box-shadow:0 0 0 0 #8fb36e00}50%{transform:scale(1.04);box-shadow:0 0 0 5px #8fb36e33}}
.perf-lite #novice-shade>b,.perf-lite #novice-guide .tutorial-next.is-earned{animation:none}
@media(prefers-reduced-motion:reduce){#novice-shade>i,#novice-shade>b,#novice-guide .tutorial-next.is-earned{animation:none;transition:none}}

/* mentor dialogue: the mentor's face beside his lines, calmer bubbles, the answers as one clear list */
.mentor-conversation .mentor-message:not(.is-self){position:relative;padding-left:48px!important;min-height:52px}
.mentor-conversation .mentor-message:not(.is-self)::before{content:'';position:absolute;left:10px;top:10px;width:30px;height:30px;border-radius:50%;background:#e8e1c8 url('art/world/actions-20261102/mentor.webp') center/cover;border:1px solid #c9bb8c;box-shadow:0 1px 3px #4d5b3a22}
.mentor-conversation .mentor-message{box-shadow:0 1px 2px #3d5a3a14}
.mentor-answers{display:grid;gap:7px}
/* the path you already walk: a clear «ваш путь» tag instead of a faded card */
.mentor-paths button:disabled{opacity:1!important;filter:none!important;border-color:#9fbf8f!important;background:#eef5e6!important;cursor:default}
.mentor-paths button:disabled strong::after{content:'ваш путь';margin-left:8px;padding:1px 7px;border-radius:8px;background:#cfe2bf;color:#3f6a3c;font-size:10px;font-weight:700;vertical-align:2px}
.mentor-paths button{transition:transform .14s ease,box-shadow .14s ease}.mentor-paths button:not(:disabled):active{transform:scale(.985)}
/* the location-description rule (#world .destination p: two lines, 9px) must not touch dialogue lines */
#world .destination .mentor-message p,#world .destination .mentor-paths small,#world .destination .mentor-trial span{max-height:none!important;overflow:visible!important;-webkit-line-clamp:unset!important;display:block}
#world .destination .mentor-message p{font-size:13.5px!important;line-height:1.5!important}
#world.mentor-expanded .destination .mentor-message p{font-size:15px!important;line-height:1.55!important}
#world .destination .mentor-paths small{font-size:12px!important;line-height:1.4!important}

/* Video review: one rounded aperture, with no travel of the frame across unrelated controls. */
#novice-guide{border-radius:12px;max-height:calc(100dvh - 32px);transition:opacity .16s ease;}
#novice-guide p{max-height:42dvh;overflow-y:auto;scrollbar-width:none;}
#novice-guide p::-webkit-scrollbar{display:none;}
#novice-guide.guide-in-battle p{min-height:3em;}
#novice-shade{position:fixed;inset:0;z-index:1290;overflow:hidden;pointer-events:none;}
#novice-shade>i{background:transparent;transition:none;animation:none;}
#novice-shade.is-positioning>i:first-child{background:#13221c66;}
#novice-shade>b{border-radius:11px;box-shadow:0 0 0 200vmax #13221c66;transition:opacity .16s ease;animation:none;}
#novice-shade>b::after{content:"";position:absolute;inset:-4px;border:1px solid #e7c873;border-radius:inherit;opacity:.55;pointer-events:none;animation:novice-point-pulse 1.8s ease-in-out infinite;}
.tutorial-focus{outline:none!important;animation:none!important;}
@keyframes novice-point-pulse{50%{opacity:1;}}
@media(prefers-reduced-motion:reduce){#novice-guide,#novice-shade>b{transition:none;}#novice-shade>b::after{animation:none;}}
