.pesto-mascot{display:flex;align-items:center;gap:10px;min-width:0;color:var(--text-primary,#fffdf4)}.pesto-avatar{display:block;flex:none;width:68px;padding:0;border:0;background:none;cursor:pointer;border-radius:14px;overflow:hidden}.pesto-avatar:disabled{opacity:1;cursor:default}.pesto-avatar:focus-visible,.pesto-play:focus-visible{outline:2px solid #b9dd55;outline-offset:3px}.pesto-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.pesto-copy>strong{font-size:13px;line-height:1.3}.pesto-message{font-size:12px;line-height:1.4;color:var(--text-secondary,#b9bda9)}.pesto-play{align-self:flex-start;background:none;border:0;padding:6px 0;color:var(--accent,#58a00f);font-size:11px;cursor:pointer;min-height:30px}.pesto-mascot--hero .pesto-avatar{width:160px}.pesto-mascot--hero .pesto-copy{max-width:170px}.pesto-mascot--result{justify-content:center;margin:0 auto 8px;max-width:330px}.pesto-mascot--result .pesto-avatar{width:92px}.pesto-scene{position:relative;overflow:hidden;isolation:isolate;line-height:0;width:100%}.pesto-scene .stage{display:block;width:100%;height:auto}.pesto-scene .cat{transform-origin:292px 333px}.pesto-scene .pose{opacity:0;transition:opacity 115ms ease-in-out}.pesto-scene .pose.active{opacity:1}.pesto-scene .pawn{transform-box:fill-box;transform-origin:68% 96%}.pesto-scene .pose[data-pose=nudge]{transform-origin:230px 333px;transition:opacity 115ms ease-in-out,transform .46s ease-in-out}.pesto-scene[data-phase=second-touch] .pose[data-pose=nudge]{transform:scaleX(1.045)}.pesto-scene[data-phase=final-touch] .pose[data-pose=nudge],.pesto-scene[data-phase=fall] .pose[data-pose=nudge]{transform:scaleX(1.09)}.pesto-scene[data-action=idle] .cat,.pesto-scene[data-action=knock] .cat,.pesto-scene[data-emotion=thinking] .cat{animation:pesto-breathe 4.5s ease-in-out infinite}.pesto-scene[data-action=pet] .cat{animation:pesto-purr 1.2s ease-in-out infinite}.pesto-scene .hit{fill:transparent;stroke:transparent;stroke-width:2;cursor:pointer;outline:none;touch-action:pan-y}.pesto-scene .hit:focus-visible{stroke:#58a00f;stroke-dasharray:5 5;fill:#b9dd5510}.pesto-scene .hit[aria-disabled=true]{pointer-events:none}.pesto-scene .cat-hit{cursor:grab}.pesto-scene .cat-hit:active{cursor:grabbing}.pesto-scene .hand{pointer-events:none;opacity:0}.pesto-scene .hand-art{stroke:#59402d;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.pesto-scene .hand .pat-art{display:none}.pesto-scene .hand[data-mode=pat] .pat-art{display:inline}.pesto-scene .hand[data-mode=pat] .grip-art{display:none}.pesto-scene .affection{pointer-events:none;opacity:0;fill:#eec884}.pesto-scene[data-action=pet] .affection{animation:pesto-hearts 1.5s ease-out infinite}.pesto-scene--portrait .stage>g>:not(.cat):not(.affection){display:none}.pesto-scene[data-emotion=surprise] .cat,.pesto-scene[data-emotion=alert] .cat{animation:pesto-notice .6s ease-out}.pesto-scene[data-emotion=approval] .cat,.pesto-scene[data-emotion=encourage] .cat{animation:pesto-nod 1.1s ease-in-out}.pesto-scene[data-emotion=disappointed] .cat{animation:pesto-sigh 1.8s ease-in-out}.pesto-scene[data-emotion=victory] .cat,.pesto-scene[data-emotion=brilliant] .cat{animation:pesto-purr 1s ease-in-out 2}.pesto-dialog{position:fixed;top:0;right:0;bottom:0;left:0;margin:auto;width:min(620px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:20px;border:1px solid #65734b;border-radius:22px;background:#1f231a;color:#fffdf4;box-shadow:0 24px 90px #0008}.pesto-dialog::backdrop{background:#2b2f1e73;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.pesto-dialog-heading{display:flex;align-items:center;gap:16px;justify-content:space-between}.pesto-dialog-heading h2{font-size:20px;margin:0}.pesto-dialog-heading button{flex:none;width:44px;height:44px;border-radius:12px;border:1px solid #697256;background:#2c3320;color:#fffdf4;font-size:25px;cursor:pointer}.pesto-dialog-message{min-height:50px;margin:16px 0 0;padding:12px 14px;background:#2c3320;border-radius:12px;font-size:14px;line-height:1.45}.pesto-dialog .pesto-scene{max-width:550px;margin:auto}.pesto-dialog-actions{display:flex;gap:10px}.pesto-dialog-actions button{flex:1;border:1px solid #697256;background:#2c3320;color:#fffdf4;border-radius:12px;min-height:44px;padding:10px;cursor:pointer}.pesto-dialog-actions button:last-child{background:#b9dd55;color:#263315}.pesto-dialog button:focus-visible{outline:2px solid #d5f291;outline-offset:2px}@keyframes pesto-breathe{50%{transform:scaleY(1.007)}}@keyframes pesto-purr{0%,to{transform:none}30%{transform:scaleY(.984) scaleX(1.008)}65%{transform:scaleY(1.012) scaleX(.997)}}@keyframes pesto-hearts{0%{opacity:0;transform:translateY(8px)}30%{opacity:.9}to{opacity:0;transform:translateY(-15px)}}@keyframes pesto-notice{35%{transform:scaleY(1.018)}65%{transform:scaleY(.995)}}@keyframes pesto-nod{35%{transform:scaleY(.983)}75%{transform:scaleY(1.003)}}@keyframes pesto-sigh{45%{transform:scaleY(.98)}to{transform:none}}.academy-hero:has(.pesto-mascot){gap:18px!important}.mentor-identity:has(.pesto-mascot){display:block}.mentor-identity:has(.pesto-mascot)>div:last-child{display:none}.academy-hero .pesto-mascot--hero{flex:none}.game-report>header>.pesto-mascot{margin-left:auto}.game-report>header>.pesto-mascot .pesto-avatar{width:44px}.game-report>header>.pesto-mascot .pesto-copy{display:none}.result-popup__hero:has(.pesto-mascot) .result-outcome-icon{display:none}@media(max-width:760px){.pesto-mascot--hero{flex-direction:column;gap:0}.pesto-mascot--hero .pesto-avatar{width:88px}.pesto-mascot--hero .pesto-copy{align-items:center}.pesto-mascot--hero .pesto-message{display:none}.academy-hero .pesto-play{font-size:10px}.academy-page--lesson .mentor-identity .pesto-mascot{min-height:68px}.pesto-mascot--result .pesto-avatar{width:68px}.pesto-dialog{padding:14px}.pesto-dialog-heading h2{font-size:17px}}@media(prefers-reduced-motion:reduce){.pesto-scene .cat,.pesto-scene .affection{animation:none!important}.pesto-scene .pose,.pesto-scene .pose[data-pose=nudge]{transition:none}.pesto-scene[data-action=pet] .affection{opacity:1}.pesto-scene[data-phase=fall] .pawn,.pesto-scene[data-phase=fall] .pawn-shadow{opacity:0}}.academy-page--lesson .academy-classroom .mentor-identity:has(.pesto-mascot){display:block}@media(max-width:1023px){.game-screen--review .game-report>header>.pesto-mascot .pesto-avatar{width:28px;height:28px}.game-screen--review .game-report>header>.pesto-mascot{height:28px}.game-screen--review .game-report>header{padding-top:6px;padding-bottom:6px}}@media(max-width:760px){.academy-page.academy-page--lesson{padding:8px 12px 24px!important}.academy-page.academy-page--lesson>.text-button{min-height:32px;padding:4px 0}.academy-page.academy-page--lesson>.feature-heading{margin:4px 0 8px}.academy-page.academy-page--lesson .academy-classroom{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px;align-items:center}.academy-page.academy-page--lesson .mentor-identity{grid-column:1;grid-row:1;width:64px}.academy-page.academy-page--lesson .mentor-identity .pesto-mascot{display:flex;flex-direction:column;gap:0;min-height:0}.academy-page.academy-page--lesson .mentor-identity .pesto-avatar{width:54px;height:54px}.academy-page.academy-page--lesson .mentor-identity .pesto-copy>strong,.academy-page.academy-page--lesson .mentor-identity .pesto-message{display:none}.academy-page.academy-page--lesson .mentor-identity .pesto-play{font-size:9px;padding:2px;line-height:1.2;min-height:25px;text-align:center}.academy-page.academy-page--lesson .mentor-bubble{grid-column:2;grid-row:1;padding:10px;font-size:12px;line-height:1.4}.academy-page.academy-page--lesson .academy-board{grid-column:1/-1;grid-row:2;width:min(100%,max(190px,calc(100dvh - 350px)));max-width:min(100%,max(190px,calc(100dvh - 350px)));justify-self:center}.academy-page.academy-page--lesson .academy-mentor>button,.academy-page.academy-page--lesson .academy-success,.academy-page.academy-page--lesson .academy-mentor>small,.academy-page.academy-page--lesson .academy-mentor>.muted{grid-column:1/-1}}.pesto-mascot--mentor .pesto-avatar{width:116px}.pesto-mascot--mentor{justify-content:center}.pesto-mascot--mentor .pesto-copy{gap:8px}.pesto-mascot--mentor .pesto-copy>strong{font-size:18px}.pesto-mascot--result .pesto-avatar{width:124px}.pesto-mascot--result .pesto-copy{text-align:left;max-width:200px}.pesto-mascot--result .pesto-message{font-size:14px}.pesto-mascot--review .pesto-copy{display:none}.pesto-mascot--review .pesto-avatar{width:76px;min-height:44px}.review-insight.review-insight--pesto{display:grid;grid-template-columns:76px minmax(0,1fr);gap:10px;align-items:start}.review-coach-content{min-width:0}.review-coach-content>strong{display:flex;align-items:center;gap:6px;color:#c5e85a;font-size:13px}.review-insight .review-coach-speech{margin:0 0 8px;color:#fffdf4;font-size:12px;line-height:1.45}.review-coach-content .review-feedback{font-size:11px}.review-insight--pesto .pesto-mascot{position:sticky;top:0}.pesto-mascot--review .pesto-avatar{background:radial-gradient(ellipse at center,#a9cb3422,transparent 70%)}@media(max-width:1023px){.review-insight.review-insight--pesto{grid-template-columns:48px minmax(0,1fr);gap:6px}.pesto-mascot--review .pesto-avatar{width:48px}.review-insight .review-coach-speech{font-size:11px;margin-bottom:5px}.review-coach-content>strong{font-size:11px}.pesto-mascot--result .pesto-avatar{width:96px}.pesto-mascot--result .pesto-message{font-size:12px}}@media(max-width:1023px)and (max-height:700px){.game-screen--review .review-insight--pesto{max-height:96px}.game-screen--review .board-wrap--review{width:min(calc(100% - 36px),calc(100dvh - 332px))}.review-coach-content>strong{display:none}.review-coach-content:has(.review-branch)>strong{display:flex}.pesto-mascot--result .pesto-avatar{width:76px}}@media(max-width:760px){.academy-page.academy-page--lesson .mentor-identity .pesto-avatar{width:64px;height:58px}.academy-page.academy-page--lesson .mentor-identity .pesto-mascot{justify-content:center}.academy-page.academy-page--lesson .mentor-bubble{position:relative;background:#2c3320;border-color:#667c42}.academy-page.academy-page--lesson .mentor-bubble:before{content:"";position:absolute;left:-6px;top:24px;width:10px;height:10px;transform:rotate(45deg);background:#2c3320;border-left:1px solid #667c42;border-bottom:1px solid #667c42}}@media(max-width:1023px)and (max-height:700px){.game-screen--review .game-report .review-insight--pesto{max-height:96px}.game-screen--review .board-wrap--review{width:min(calc(100% - 36px),calc(100dvh - 342px))}}@media(max-width:1023px)and (max-height:700px){.game-screen.game-screen--review .board-wrap--review{width:min(calc(100% - 36px),calc(100dvh - 342px))}.game-screen--review .game-report .report-moves{min-height:60px}.game-screen--review .game-report .report-moves-heading{position:static}}@media(max-width:600px)and (max-height:700px){.result-popup.result-popup--chess:has(.pesto-mascot){padding:12px 14px;max-height:calc(100dvh - 20px)}.result-popup.result-popup--chess:has(.pesto-mascot) .result-popup__hero{margin-bottom:6px}.result-popup.result-popup--chess .pesto-mascot--result{margin-bottom:0}.result-popup.result-popup--chess .pesto-mascot--result .pesto-avatar{width:68px}.result-popup.result-popup--chess .result-popup__title{font-size:27px}.result-popup.result-popup--chess .result-review-intro{font-size:12px;line-height:1.4;margin:8px auto 12px}.result-popup.result-popup--chess .result-review-primary{padding:12px 10px;gap:8px}.result-popup.result-popup--chess .result-review-primary strong{font-size:17px}.result-popup.result-popup--chess .result-review-primary small{font-size:10px}.result-popup.result-popup--chess .result-review-primary>svg{width:20px}.result-popup.result-popup--chess .result-popup__actions-block{gap:8px}.result-popup.result-popup--chess .result-popup__tertiary{padding:9px 6px;font-size:12px;min-height:44px}.result-popup.result-popup--chess .result-self-review{margin-top:10px}}@media(max-width:1023px){.game-report--coach .report-moves,.game-report--coach .opening-explorer,.game-report--coach .review-own-summary,.game-report--coach .report-game-actions,.game-report--moves .review-insight{display:none}.game-report--coach .review-insight--pesto{flex:1;min-height:70px;max-height:none;overflow:auto;margin-top:6px}.game-report .review-mobile-tabs button{padding:6px 7px}.game-report--coach .review-coach-content>strong{display:flex}}@media(max-width:1023px)and (max-height:700px){.game-screen--review .game-report--coach .review-insight--pesto{max-height:none;min-height:82px}.game-screen.game-screen--review .board-wrap--review{width:min(calc(100% - 36px),calc(100dvh - 370px))}}@media(max-width:1023px)and (max-height:600px){.game-screen--review .game-report--coach .review-insight--pesto{min-height:64px}}.pesto-scene--portrait .stage>g>.cat-shadow{display:block}@media(max-width:1023px){.game-screen--review .game-report--coach .review-insight--pesto{flex:1;max-height:none;overflow:auto}.game-screen--review .game-report--coach .report-game-actions{display:none}}.game-report .review-insight.review-insight--pesto{grid-template-columns:112px minmax(0,1fr);gap:12px;padding:14px}.game-report .pesto-mascot--review .pesto-avatar{width:112px}.game-report .review-insight .review-coach-speech{font-size:15px;line-height:1.6;color:#fffdf4;margin-bottom:12px}.review-line-details{font-size:12px;color:#b9bda9;margin:8px 0}.review-line-details summary{cursor:pointer;min-height:30px}@media(max-width:1023px){.game-report .review-insight.review-insight--pesto{grid-template-columns:80px minmax(0,1fr);gap:10px;padding:10px}.game-report .pesto-mascot--review .pesto-avatar{width:80px}.game-report .review-insight .review-coach-speech{font-size:14px;line-height:1.55}}.review-coach-expand{background:none;border:0;color:#c5e85a;padding:6px 0;cursor:pointer;font-size:12px;margin-bottom:8px}.review-coach-dialog{box-sizing:border-box;position:fixed;top:0;right:0;bottom:0;left:0;width:min(660px,calc(100% - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:24px;border:2px solid #637c42;border-radius:26px;background:radial-gradient(ellipse at 50% 20%,#2c3320,#1f231a 70%);color:#fffdf4;box-shadow:0 25px 100px #0009;overflow:auto}.review-coach-dialog::backdrop{background:#2b2f1e73;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.review-coach-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:20px}.review-coach-dialog header button{border:0;background:#ffffff10;color:inherit;border-radius:12px;width:44px;height:44px;font-size:28px;cursor:pointer}.review-coach-dialog .pesto-mascot{justify-content:center;margin:12px auto}.review-coach-dialog .pesto-avatar{width:190px}.review-coach-dialog .pesto-copy{display:none}.review-coach-dialog>p{font-size:21px;line-height:1.65;margin:16px 0 28px}.review-coach-dialog nav{display:flex;gap:12px}.review-coach-dialog nav button{flex:1;border:1px solid #738c48;background:#a8d337;color:#202b13;font-weight:800;min-height:48px;border-radius:14px;cursor:pointer}.review-coach-dialog nav button:disabled{opacity:.4;cursor:default}@media(max-width:600px){.review-coach-dialog{padding:18px}.review-coach-dialog>p{font-size:18px}.review-coach-dialog .pesto-avatar{width:150px}}
