/* Shared jade, brass and original faction artwork. */
.mentor-quota{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:9px 12px;border:1px solid #6d7750;background:linear-gradient(100deg,#2c3b24,#17271d);color:#e8d08a}.mentor-quota>img{width:30px;height:30px;object-fit:contain;flex-shrink:0}.mentor-quota b{display:block;font-size:12px}.mentor-quota small{display:block;font-size:10px;color:#b6c2a7;overflow-wrap:break-word}.mentor-quota[data-exhausted=true]{border-color:#93734f}.mentor-quota[data-exhausted=true] b{color:#e7bd87}
#gameMentorDialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(700px,calc(100vw - 20px));max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);overflow:auto;overscroll-behavior:contain;padding:16px;border:1px solid var(--ui-metal,#8d9071);border-radius:3px;color:var(--ui-ink,#e4dfc4);background:var(--ui-surface,#142019);box-shadow:inset 0 0 0 1px #384634,0 8px 28px #000b;font:12px/1.6 var(--font,monospace);color-scheme:dark;scrollbar-width:thin}
#gameMentorDialog *{box-sizing:border-box;min-width:0}#gameMentorDialog [hidden]{display:none!important}#gameMentorDialog::backdrop{background:#020b08c9}
.mentor-heading{display:flex;align-items:center;gap:10px;margin:-16px -16px 14px;padding:10px 16px;border-bottom:1px solid #808361;background:linear-gradient(#354630,#202f23)}.mentor-heading>img{width:40px;height:40px;object-fit:contain}.mentor-heading>div{flex:1}.mentor-heading h2{margin:0;color:var(--ui-accent,#e8d08a);font-size:18px}.mentor-heading small,.mentor-note{color:var(--ui-muted,#aebba1);font-size:11px}
#gameMentorDialog button{font:inherit;line-height:1.5;cursor:pointer;touch-action:manipulation;min-height:44px;color:var(--ui-ink,#e4dfc4);background:#1c2b1d;border:1px solid #677558;border-radius:2px;padding:8px 12px;white-space:normal;overflow-wrap:anywhere}#gameMentorDialog button:disabled{opacity:.5;cursor:default}#gameMentorDialog :is(button,summary):focus-visible{outline:2px solid #e8d08a;outline-offset:2px}#gameMentorDialog button:hover:enabled{border-color:#e8d08a;background:#2f4028}#gameMentorDialog #gameMentorClose{width:44px;flex-shrink:0;padding:0;font-size:21px}
.mentor-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}#gameMentorDialog .mentor-card{position:relative;padding:16px 4px 10px;display:flex;align-items:center;flex-direction:column;gap:4px;background:radial-gradient(ellipse at 50% 40%,#72845c50,#142019 75%),url('../ui/modal-jade-texture.webp') center/cover;box-shadow:inset 0 0 0 2px #23321c}.mentor-card b{font-size:12px;color:#e8d08a}.mentor-card>small:last-child{font-size:9px;color:#b3bca3}.mentor-portrait{height:76px;width:80px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 6px 4px #000b)}.mentor-bot{position:absolute;top:5px;right:5px;font-size:8px;color:#d8da9e;border:1px solid #747b4a;padding:0 3px;background:#162018}
#gameMentorBack{margin-bottom:12px}.mentor-identity{display:flex;gap:16px;align-items:center;padding:14px;background:radial-gradient(ellipse at 15% 50%,#77895645,transparent 75%),url('../ui/modal-jade-texture.webp') center/cover;border:1px solid #657355}.mentor-identity>.mentor-art{width:100px;height:100px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 6px 5px #000b)}.mentor-identity h3{font-size:22px;color:#e8d08a;margin:0;overflow-wrap:anywhere}.mentor-identity b{font-size:13px}.mentor-identity small{display:block;margin-top:5px;color:#b3bca3}
.mentor-guidance{display:grid;gap:8px;margin:14px 0}.mentor-advice{display:flex;align-items:center;gap:10px}.mentor-advice img{width:32px;height:32px;object-fit:contain;flex-shrink:0}.mentor-advice span{color:#d4dac6;font-size:12px}
.mentor-skills-details{border-top:1px solid #44573c;border-bottom:1px solid #44573c;margin:12px 0}.mentor-skills-details summary{cursor:pointer;min-height:44px;padding:11px 0;color:#e8d08a}.mentor-skills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-bottom:12px}.mentor-skill{display:flex;align-items:center;gap:8px;border:1px solid #354a37;background:#101b13;padding:7px}.mentor-skill img{width:34px;height:34px;object-fit:contain}.mentor-skill b{display:block;font-size:10px;overflow-wrap:anywhere}.mentor-skill small{display:block;font-size:10px;color:#aabb9b}
.mentor-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.mentor-actions button{display:flex;align-items:center;justify-content:center;gap:8px}.mentor-actions img{width:28px;height:28px;object-fit:contain}#gameMentorDialog #gameMentorStart{background:linear-gradient(#555b36,#303a23);border-color:#b4a268;color:#efdfa5;font-weight:600}.mentor-note{text-align:center;margin:10px 0 0}.mentor-status{color:#e8d08a;font-size:11px;margin:12px 0}.mentor-status:empty{display:none}
.mentor-arena{margin:14px 0 0;padding:14px;border:1px solid #87915c;background:linear-gradient(#102218a6,#0a160feb),url('../img/z/town.jpg') center/cover;text-align:center}.mentor-fighters{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);align-items:center;gap:10px}.mentor-fighter b{display:block;font-size:12px;color:#e8d08a;overflow-wrap:anywhere}.mentor-fighter :is(img,.mentor-art){display:block;width:100%;height:104px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 6px 4px #000a)}.mentor-fighter small{font-size:10px;color:#c3c8b3}.mentor-versus{font-size:20px;color:#f5d981;text-shadow:0 2px 4px #000}.mentor-hp{height:9px;background:#1e1812;border:1px solid #86714a;overflow:hidden}.mentor-hp i{display:block;width:100%;height:100%;background:linear-gradient(#cdd890,#688247);transition:width .18s}#gameMentorOpponentHp{background:linear-gradient(#e4ab71,#ab5c39)}#gameMentorSkill{min-height:36px;font-size:12px;margin-top:14px;color:#e7d4a3;overflow-wrap:anywhere}#gameMentorDamage{height:26px;color:#ffd58a;font-weight:700;font-size:18px}#gameMentorOutcome{font-size:20px;color:#ecd584;margin:8px 0}#gameMentorTip{font-size:11px;color:#d2d9bb}#gameMentorStop{width:100%;margin-top:8px}
#gameMentorFighters[data-side=player] .mentor-fighter:first-child img{transform:translateX(5px)}#gameMentorFighters[data-side=mentor] .mentor-fighter:last-child img{transform:translateX(-5px)}.mentor-fighter :is(img,.mentor-art){transition:transform .15s}
#netRoster .mentor-roster-entry{width:100%;display:flex;align-items:center;gap:10px;margin:8px 0 12px;padding:10px;border:1px solid #8b9061;background:linear-gradient(100deg,#3d4b2d,#182a1f);color:#e8d08a;text-align:left;min-height:58px;font:inherit;cursor:pointer;flex-shrink:0}#netRoster .mentor-roster-entry img{width:38px;height:38px;object-fit:contain}#netRoster .mentor-roster-entry span{flex:1;min-width:0}#netRoster .mentor-roster-entry b{display:block;font-size:13px}#netRoster .mentor-roster-entry small{display:block;font-size:10px;color:#bec7a8}.mentor-roster-entry>i{font-style:normal;font-size:10px;border:1px solid #9b9a64;padding:3px 5px;white-space:nowrap}
@media(max-width:520px){.mentor-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mentor-card .mentor-portrait{height:66px}.mentor-identity{gap:10px;padding:10px}.mentor-identity>.mentor-art{width:76px;height:88px}.mentor-identity h3{font-size:19px}.mentor-heading h2{font-size:16px}.mentor-actions{grid-template-columns:1fr}.mentor-skills{grid-template-columns:1fr}.mentor-fighters{gap:6px;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr)}.mentor-fighter :is(img,.mentor-art){height:88px}}
@media(prefers-reduced-motion:reduce){.mentor-fighter :is(img,.mentor-art),.mentor-hp i{transition:none!important;transform:none!important}}
.mentor-heading{position:sticky;top:-16px;z-index:2}.mentor-rules{margin-top:8px;font-size:10px;color:#b6c2a7}.mentor-rules summary{min-height:44px;padding:12px 0;cursor:pointer}.mentor-rules p{margin:0 0 8px}#gameMentorFinished{margin-top:12px}#gameMentorRematch{color:#efdfa5!important;border-color:#b4a268!important;background:linear-gradient(#555b36,#303a23)!important}

/* One atlas; square frames keep each school isolated at every viewport. */
.mentor-art{display:block;flex-shrink:0;background-repeat:no-repeat;background-color:#142019;border:1px solid #657355;image-rendering:auto!important;overflow:hidden}
.mentor-card .mentor-portrait{width:76px;height:76px}.mentor-identity>.mentor-art{width:100px;height:100px}.mentor-fighter .mentor-art{width:104px;height:104px;margin:auto}
@media(max-width:520px){.mentor-card .mentor-portrait{width:76px;height:76px}.mentor-identity>.mentor-art{width:88px;height:88px}.mentor-fighter .mentor-art{width:88px;height:88px}}
