@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Noto+Serif:wght@500;600;700;800&display=swap');
:root{font-family:'Be Vietnam Pro',system-ui,-apple-system,sans-serif;color:#3e382e;background:#f6f3eb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;font-size:15px;scroll-behavior:smooth}
*,*:before,*:after{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 12% 0%,#f6e9d3 0%,transparent 45%),#f6f3eb}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,input:focus-visible{outline:3px solid #be7f39;outline-offset:3px}button:not(:disabled){-webkit-tap-highlight-color:transparent}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:'Noto Serif',Georgia,serif}p{line-height:1.65}a{color:inherit}.app-shell{max-width:1440px;margin:auto;min-height:100svh;display:flex;flex-direction:column}.site-header{display:flex;align-items:center;justify-content:space-between;padding:18px clamp(18px,5vw,76px);position:relative;z-index:4;background:#fffdf7;border-bottom:1px solid #e8dfce;gap:14px}.site-brand{appearance:none;display:flex;align-items:center;gap:13px;background:transparent;border:0;text-align:left;color:#4a3a2e;padding:0}.site-brand b{font-size:17px;letter-spacing:.035em;display:block}.site-brand b em{font-style:normal;color:#a94e2d}.site-brand small{display:block;color:#7e7465;font-weight:500;margin-top:4px;font-size:12px}.logo-mark{display:grid;place-items:center;width:48px;height:48px;background:#5c4031;border:3px solid #ad8060;outline:2px solid #e3c79f;outline-offset:2px;border-radius:13px;color:#eac998;font:700 28px Georgia,serif;transform:rotate(-4deg)}.header-right{display:flex;align-items:center;gap:18px}.header-stars{font-size:17px;font-weight:800;color:#ad7536}.sound-button{background:#f4ecda;border:1px solid #e1d0b6;width:43px;height:43px;border-radius:13px;font-size:21px}.sound-button:hover{background:#ead7bb}main{flex:1}.hero{padding:25px clamp(15px,4.8vw,68px) 0}.scene-wrap{height:450px;border-radius:28px;position:relative;overflow:hidden;background:#b5d4c1;box-shadow:0 15px 34px #65482d25;border:7px solid #fff9ef}.campus-art{display:block;width:100%;height:100%;object-fit:cover;min-width:100%;animation:scene-enter .75s ease-out}.scene-overlay{position:absolute;inset:0;display:flex;align-items:center;pointer-events:none;background:linear-gradient(90deg,rgba(27,39,28,.70) 0%,rgba(44,47,29,.53) 41%,rgba(44,47,29,0) 72%)}.ribbon{position:absolute;top:20px;right:22px;background:#fef5dcf0;border-radius:30px;padding:9px 15px;color:#695038;font-weight:700;font-size:11px;letter-spacing:.09em;box-shadow:0 5px 12px #0002}.hero-copy{padding:12px 0 12px clamp(25px,5vw,60px);color:#fffdf2;max-width:615px;pointer-events:auto}.eyebrow{font-size:11px;letter-spacing:.18em;font-weight:800;color:#a16337;margin-bottom:10px}.hero .eyebrow{color:#f7d49b}.hero-copy h1{font-size:clamp(31px,4.7vw,58px);line-height:1.24;margin-bottom:17px;text-shadow:0 3px 8px #0003}.hero-copy h1 span{color:#f6cd85}.hero-copy p:not(.eyebrow){font-size:14px;line-height:1.85;max-width:455px;color:#fff7ea;margin-bottom:25px}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:16px;background:#a84d2d;color:#fff9ec;font-weight:800;border:2px solid transparent;padding:14px 23px;min-height:50px;border-radius:13px;box-shadow:0 5px 0 #71351f,0 8px 18px #70482e2e;transition:transform .15s,background .15s;white-space:normal}.primary-button:hover{background:#bd5933;transform:translateY(-2px)}.primary-button:active{transform:translateY(2px);box-shadow:0 2px 0 #71351f}.primary-button:disabled{opacity:.5;box-shadow:none}.status-strip{margin:-30px auto 0;position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,1fr);width:calc(100% - clamp(30px,9.6vw,136px) - 70px);max-width:1020px;background:#fffefa;border:1px solid #ebe2cf;border-radius:20px;box-shadow:0 14px 25px #5f4b2920;padding:22px 28px}.status-strip>div{display:flex;align-items:center;gap:14px;padding:0 23px;border-right:1px solid #e9e1d1}.status-strip>div:last-child{border-right:0}.status-icon{font-size:30px;background:#f5ecdb;border-radius:14px;width:54px;height:54px;display:grid;place-items:center}.status-strip b{font-family:'Noto Serif',serif;display:block;font-size:24px}.status-strip small{color:#8a7d6b;font-size:11px;display:block;margin-top:2px}.choose{padding:77px clamp(20px,5vw,77px) 36px}.section-top{display:flex;align-items:center;justify-content:space-between;gap:35px}.section-top h2{font-size:36px;margin-bottom:13px}.section-top p:not(.eyebrow){color:#817767}.teacher-note{display:flex;align-items:center;max-width:345px;background:#fffdf7;border:1px solid #eadfcb;border-radius:18px;gap:10px;padding:12px 20px 12px 10px;box-shadow:0 10px 30px #63432a10}.teacher-note svg{flex:none}.teacher-note p{font-size:12px;color:#685341;font-weight:600;font-style:italic;margin:0}.teacher-note small{display:block;margin-top:4px;font-weight:500;color:#9e886c}.grade-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin-top:24px}.grade-card{border:1.5px solid #e5d9c5;border-radius:20px;text-align:left;background:linear-gradient(165deg,#fffef9,#f5f0e5);padding:22px 18px 17px;box-shadow:0 7px 0 #e9e2d5,0 10px 20px #54372208;transition:transform .18s,border-color .18s;min-height:220px;display:flex;flex-direction:column;color:#493e32}.grade-card:hover{transform:translateY(-5px);border-color:#b89461}.grade-icon{font-size:34px;display:block;margin-bottom:13px}.grade-title{font-size:19px;font-weight:800;display:block}.grade-title strong{font:800 32px 'Noto Serif',serif}.grade-sub{font-size:11px;color:#786e60;line-height:1.55;display:block;margin:9px 0 auto;min-height:35px}.grade-progress{border-top:1px solid #eae0d1;padding-top:12px;font-size:11px;color:#94704e;display:flex;justify-content:space-between;gap:6px;font-weight:800}.grade-1{background:linear-gradient(165deg,#fdfef1,#ecf3df)}.grade-2{background:linear-gradient(165deg,#f7fcf9,#e4f0e7)}.grade-3{background:linear-gradient(165deg,#fff9f5,#f8e6d9)}.grade-4{background:linear-gradient(165deg,#faf8ff,#ece6f4)}.grade-5{background:linear-gradient(165deg,#fffbf0,#f8edcb)}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;padding:5px clamp(20px,5vw,77px) 35px}.features>div{background:#fffdf7;border-radius:18px;border:1px solid #e8ddca;padding:21px 23px}.features span{font-size:28px}.features h3{font-size:17px;margin:9px 0 7px}.features p{font-size:12px;color:#807364;margin:0}.disclaimer{color:#8c8071;max-width:950px;margin:0 auto 34px;text-align:center;font-size:12px;padding:0 22px}.footer{padding:24px clamp(18px,5vw,76px);display:flex;justify-content:space-between;gap:14px;font-size:11px;color:#978a78;border-top:1px solid #e6ded0;background:#fffdf7}.footer span:first-child{font-weight:800;color:#8c694a}.inner-page,.lesson-page,.result-page{padding:28px clamp(18px,5vw,75px) 40px}.breadcrumb{display:flex;align-items:center;gap:10px;font-size:12px;color:#968774;margin-bottom:25px;flex-wrap:wrap}.breadcrumb button{color:#866245;background:transparent;border:0;padding:3px;font-weight:700}.breadcrumb button:hover{text-decoration:underline}.breadcrumb strong{color:#4d4235}.chapter-header{background:#e4eddf;border:1px solid #cadbc5;border-radius:25px;padding:34px 42px;display:flex;align-items:center;justify-content:space-between;gap:30px;overflow:hidden;position:relative}.chapter-header h1{font-size:38px;color:#394c3a}.chapter-header p:not(.eyebrow){color:#60705d;max-width:530px}.chapter-header small{color:#53664c;font-size:11px;font-weight:700}.chapter-portrait{display:flex;flex-direction:column;align-items:center;gap:6px;color:#62765e;font-weight:700;font-size:12px}.mini-progress,.lesson-progress{height:12px;border-radius:100px;background:#f6f7ef;overflow:hidden;margin:16px 0 7px}.mini-progress{width:min(350px,100%)}.mini-progress>div,.lesson-progress>div{height:100%;background:linear-gradient(90deg,#89a95f,#527c57);border-radius:100px;transition:width .2s}.chapter-list{display:grid;gap:13px;margin:25px 0}.chapter-card{display:flex;align-items:center;gap:19px;border:1.5px solid #e8dcc8;border-radius:18px;padding:18px 23px;background:#fffdf8;text-align:left;box-shadow:0 5px 14px #553d2810;color:#4b3a2c;width:100%;transition:transform .15s,border .15s}.chapter-card:not(:disabled):hover{transform:translateX(4px);border-color:#ba8b54}.chapter-card.locked{opacity:.65;background:#f1eee7}.chapter-number{font-size:36px;display:grid;place-items:center;background:#f1e8d5;width:75px;height:70px;border-radius:14px;flex:none}.chapter-description{display:flex;flex-direction:column;gap:5px;flex:1}.chapter-description small{font-size:10px;font-weight:800;color:#ad8155;letter-spacing:.08em}.chapter-description strong{font:800 21px 'Noto Serif',serif}.chapter-description>span{font-size:12px;color:#80766a}.chapter-reward{font-size:14px;color:#97663b;font-weight:800;white-space:nowrap}.help-banner{display:flex;gap:15px;align-items:start;background:#f5ecda;padding:18px 21px;border-radius:15px;color:#6c5e4b}.help-banner>span{font-size:25px}.help-banner p{margin:0;font-size:13px}.text-link{background:none;border:0;color:#926743;font-weight:700;padding:15px 0;margin-top:10px}.lesson-topline{display:flex;justify-content:space-between;font-size:14px;font-weight:800;color:#5b523f;gap:12px}.lesson-progress{margin-top:14px;margin-bottom:25px;background:#e8dfcf}.lesson-layout{display:grid;grid-template-columns:minmax(220px,270px) 1fr;align-items:start;gap:25px}.mentor{background:linear-gradient(160deg,#f8ead0,#f4dcc0);border:1px solid #e6cdab;border-radius:23px;padding:28px 21px;text-align:center;min-height:430px}.mentor-avatar{width:178px;height:178px;margin:0 auto}.mentor-avatar svg{width:100%;height:100%;filter:drop-shadow(0 9px 10px #88683a22)}.mentor-name{font-size:12px;letter-spacing:.13em;font-weight:800;color:#87613a;margin:12px 0}.mentor-bubble{border:1px solid #e0caad;border-radius:14px;background:#fffaf0;padding:17px 13px;font-family:'Noto Serif',serif;line-height:1.65;font-size:13px;color:#624e3a}.mentor-tip{border:1px solid #ad8658;color:#705338;border-radius:11px;padding:11px 8px;margin-top:13px;width:100%;background:transparent;font-weight:700;font-size:12px}.mentor-tip:hover{background:#fff3db}.mentor-decoration{margin-top:21px;font-size:22px;letter-spacing:8px}.question-card{min-height:440px;border:1px solid #e7dbc5;border-radius:23px;background:#fffef9;padding:clamp(21px,4vw,42px);box-shadow:0 10px 28px #6b4f2d12}.challenge-type{display:inline-block;background:#f3e6cc;border-radius:30px;color:#946b45;font-size:11px;padding:8px 13px;font-weight:800;letter-spacing:.08em}.question-card h1{font-size:clamp(20px,2.5vw,30px);line-height:1.65;margin:20px 0 24px;color:#44362c}.choice-list{display:grid;gap:12px}.choice-button{display:flex;align-items:center;gap:15px;width:100%;text-align:left;padding:13px 16px;background:#fffefb;border:1.5px solid #ded5c6;border-radius:14px;color:#41382c;transition:background .16s,border .16s;min-height:64px}.choice-button:hover:not(:disabled){background:#f8efdb;border-color:#b99059}.choice-index{font-weight:800;background:#f0e9d9;color:#8c7153;border-radius:10px;width:38px;height:38px;display:grid;place-items:center;flex:none}.choice-button.correct{border-color:#4c9667;background:#e9f6e9}.choice-button.incorrect{border-color:#c67568;background:#fceaea}.choice-button.correct .choice-index{background:#4c9667;color:white}.choice-status{margin-left:auto;color:#327d47;font-size:22px;font-weight:800}.choice-button:disabled{opacity:1;cursor:default}.listen-button{background:#e8eee6;border:1px solid #afc2a8;border-radius:13px;padding:13px 17px;color:#40604b;font-weight:800;margin-bottom:14px}.listen-button:hover{background:#dbe9d5}.speech-notice{font-size:12px;color:#7b6450}.instruction{font-size:13px;color:#786a59;font-weight:600}.order-picked{min-height:79px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;border:2px dashed #cfad85;border-radius:14px;background:#fff7e9;padding:14px;margin:15px 0 24px}.order-picked button{background:#b77447;color:white;border:0;padding:10px 12px;border-radius:9px;font-weight:700}.order-picked button span{margin-left:10px}.empty-hint{color:#a58d74;font-style:italic;font-size:12px}.token-bank{display:flex;flex-wrap:wrap;gap:9px}.token-bank button{border:1px solid #bb9368;background:#f0e2cc;padding:12px 15px;border-radius:9px;color:#664830;font-weight:700}.token-bank button:disabled{opacity:.3}.check-order{margin-top:25px}#fill-form{display:grid;gap:13px;max-width:500px}#fill-answer{min-height:55px;width:100%;padding:13px 16px;border:1.5px solid #cbbca7;background:#fffdf7;border-radius:12px;color:#43382f;font-size:16px}#fill-form .primary-button{justify-self:start}.feedback-card{border-radius:15px;padding:17px 22px;margin:24px 0 12px;border:1px solid #bad8bd;background:#edf8eb;color:#366041}.feedback-card.try-again{border-color:#e5c7a2;background:#fdf3e2;color:#7e5832}.feedback-label{font-weight:800}.feedback-card p{font-size:13px;margin:9px 0 0}.next-button{margin-top:14px}.study-footer{text-align:center;color:#9e8c71;font-size:12px;margin-top:26px}.result-page{display:flex;flex-direction:column;align-items:center}.result-certificate{max-width:800px;width:100%;text-align:center;padding:40px 35px;border:8px double #d1ae79;outline:1px solid #b28b5b;outline-offset:8px;background:radial-gradient(ellipse at center,#fffefa,#f7ead4);border-radius:9px;margin:26px auto 35px;box-shadow:0 18px 40px #6a432022}.result-laurel{font-size:58px}.result-certificate h1{font-size:clamp(27px,4.2vw,45px);color:#825033;margin:11px 0}.result-lesson{color:#7a6750;font-size:16px}.big-stars{font-size:60px;letter-spacing:12px;color:#d9a444;text-shadow:0 2px 2px #0001}.big-stars span{color:#d9d0b8}.result-number{font:800 60px 'Noto Serif',serif;color:#75513b;margin:9px}.result-number small{font:700 16px 'Be Vietnam Pro',sans-serif}.result-message{font-size:15px;color:#665340}.best-record{font-size:13px;color:#8f775b}.result-actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:25px 0 10px}.outline-button{border:1.5px solid #ba9469;background:#fff8ea;padding:13px 17px;border-radius:13px;color:#885534;font-weight:800;min-height:50px}.outline-button:hover{background:#f1dfc6}@keyframes scene-enter{from{opacity:.25;transform:scale(1.015)}to{opacity:1;transform:scale(1)}}
@media(max-width:1080px){.grade-grid{gap:10px}.grade-card{padding:17px 12px}.grade-title{font-size:17px}.grade-title strong{font-size:27px}.status-strip{width:calc(100% - 70px)}.status-strip>div{padding:0 14px}.hero-copy{max-width:530px}.scene-wrap{height:400px}}
@media(max-width:760px){.site-header{padding:14px 20px}.site-brand b{font-size:13px}.site-brand small{font-size:10px}.logo-mark{width:40px;height:40px;font-size:24px}.hero{padding:14px 13px 0}.scene-wrap{height:400px;border-width:4px;border-radius:20px}.campus-art{width:100%;height:100%;object-position:60% 50%;min-width:690px;position:absolute;right:-210px}.scene-overlay{background:linear-gradient(90deg,rgba(34,42,31,.76) 0%,rgba(34,42,31,.57) 59%,rgba(34,42,31,.06) 100%)}.hero-copy{padding:22px;max-width:410px}.hero-copy h1{font-size:34px}.hero-copy p:not(.eyebrow){font-size:13px}.ribbon{font-size:9px;top:11px;right:11px}.status-strip{width:calc(100% - 36px);margin-top:-20px;padding:15px 12px}.status-strip>div{gap:8px;padding:0 6px}.status-icon{font-size:20px;width:36px;height:36px}.status-strip b{font-size:18px}.status-strip small{font-size:9px}.choose{padding:54px 19px 30px}.section-top{align-items:flex-start;flex-direction:column;gap:13px}.section-top h2{font-size:29px}.teacher-note{max-width:100%;width:100%}.grade-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.grade-card{min-height:181px;padding:20px}.grade-title strong{font-size:33px}.features{grid-template-columns:1fr;padding:0 19px 25px}.features>div{padding:17px 20px}.features h3{font-size:16px}.footer{padding:20px;flex-wrap:wrap}.inner-page,.lesson-page,.result-page{padding:20px 16px 32px}.chapter-header{padding:25px 20px}.chapter-header h1{font-size:29px}.chapter-portrait{display:none}.lesson-layout{grid-template-columns:1fr;gap:14px}.mentor{display:grid;grid-template-columns:75px 1fr;min-height:0;padding:12px 15px;text-align:left;align-items:center;gap:6px 13px}.mentor-avatar{width:72px;height:72px;grid-row:1/3}.mentor-name{margin:0}.mentor-bubble{padding:10px 14px;font-size:12px}.mentor-tip{grid-column:2;margin-top:0}.mentor-decoration{display:none}.question-card{min-height:0}.question-card h1{font-size:23px}.result-certificate{margin:22px auto 30px}.big-stars{font-size:42px}.result-number{font-size:43px}}
@media(max-width:450px){.site-brand b{font-size:11px}.site-brand small{font-size:9px}.header-stars{font-size:14px}.sound-button{width:38px;height:38px}.hero-copy h1{font-size:30px}.hero-copy p:not(.eyebrow){font-size:12px}.scene-wrap{height:390px}.ribbon{display:none}.status-strip small{font-size:8px}.status-icon{display:none}.status-strip b{font-size:17px}.status-strip>div{padding:0 6px}.grade-grid{gap:9px}.grade-card{padding:17px 14px}.chapter-card{padding:14px 11px;gap:10px}.chapter-number{width:54px;height:58px;font-size:26px}.chapter-description strong{font-size:17px}.chapter-reward{font-size:11px}.question-card{padding:20px 15px}.question-card h1{font-size:20px}.choice-button{padding:12px 10px}.choice-index{width:33px;height:33px}.result-certificate{padding:26px 16px}.result-actions{flex-direction:column;align-items:stretch}.result-actions>*{width:100%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* CP1.2 — SÂN TỰ HỌC: separate peaceful courtyard, low-motion weather + accessible controls */
.courtyard-main{width:min(1320px,100%);padding:30px clamp(16px,5vw,76px) 56px;margin:0 auto}
.courtyard-intro{margin:24px 0 22px}.courtyard-intro h1{font-size:clamp(32px,4vw,48px);color:#60452e;margin:5px 0 8px}.courtyard-intro>p{max-width:760px;color:#665949}
.courtyard-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.9fr);gap:22px;align-items:start}
.yard-scene{position:relative;isolation:isolate;background:linear-gradient(180deg,#d0e4d5,#c8ad8c);min-height:540px;border-radius:26px;overflow:hidden;border:6px solid #fef8e9;box-shadow:0 14px 35px #4c392222}
.yard-landscape{position:absolute;inset:0;overflow:hidden}.yard-landscape svg{width:100%;height:100%;object-fit:cover;object-position:center;min-height:300px}
.yard-scene:after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:#17384600;transition:background 1s ease}.yard-scene.is-raining:after{background:#17384637}
.yard-weather-rain{position:absolute;inset:-50%;z-index:2;pointer-events:none;opacity:0;transform:rotate(14deg);background:repeating-linear-gradient(180deg,transparent 0 11px,#dceeffaa 12px 14px,transparent 15px 32px);background-size:9px 80px;transition:opacity .4s;animation:yard-rain 1s linear infinite}.yard-scene.is-raining .yard-weather-rain{opacity:.48}
.yard-weather-wind{position:absolute;z-index:3;top:18%;right:-20%;font-size:38px;pointer-events:none;opacity:0;white-space:nowrap;animation:yard-wind 7s linear infinite}.yard-scene.is-windy .yard-weather-wind{opacity:.85}
@keyframes yard-rain{from{background-position:0 0}to{background-position:0 80px}}@keyframes yard-wind{from{transform:translateX(0)}to{transform:translateX(-380%)}}
.yard-groups{position:absolute;z-index:4;bottom:16px;left:16px;right:16px;display:flex;flex-wrap:wrap;align-items:flex-end;gap:9px}.yard-group{display:grid;gap:6px;text-align:center;place-items:center;padding:10px 11px;border:1px solid #ffe2a2;border-radius:14px;background:#fff7dfeb;box-shadow:0 4px 12px #3b30284d;min-width:103px}.yard-group-people{font-size:23px}.yard-group strong{font-size:12px;color:#51402f}.yard-group button{color:white;background:#825235;border:0;border-radius:7px;padding:7px 9px;font-size:11px;font-weight:700}.yard-group button:hover{background:#a3643a}.yard-empty{background:#fff7dded;border-radius:12px;padding:12px;color:#503f2b;font-weight:600}
.yard-control-panel{background:#fffdf6;border:1px solid #e3d6c0;border-radius:22px;padding:19px;box-shadow:0 8px 30px #70512d10}.yard-shared-clock{background:linear-gradient(135deg,#51392d,#846041);padding:21px;border-radius:17px;color:#fff9ed;text-align:center}.yard-clock-label{font-size:11px;font-weight:800;letter-spacing:.08em;margin-bottom:6px;color:#ffe3ae}.yard-countdown{font-family:ui-monospace,'SFMono-Regular',Menlo,Consolas,monospace;font-size:clamp(43px,6vw,58px);line-height:1.2;font-weight:800;font-variant-numeric:tabular-nums}.yard-status{font-weight:700;margin:7px 0}.yard-status[data-mode="break"]{color:#c5f5c7}.yard-caption{min-height:43px;font-size:12px;margin:12px 0 0;line-height:1.45;color:#f5e5d0}.yard-clock-note{font-size:11px;line-height:1.55;color:#eed9bf;margin:12px 0 0}.yard-panel-section{padding:20px 0 5px}.yard-panel-section+.yard-panel-section{border-top:1px solid #e5d9c6;margin-top:12px}.yard-panel-section h2{font-size:18px;margin:0 0 15px}.yard-effects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.yard-effects button,.yard-grade-controls button{border:1.5px solid #d9c8aa;background:#f8f2e6;color:#6e5239;border-radius:11px;padding:11px 8px;font-size:13px;font-weight:700;min-height:45px}.yard-effects button.is-on,.yard-grade-controls button.is-on{border-color:#56905f;background:#e6f5e1;color:#326b40}.yard-effects button:hover,.yard-grade-controls button:hover{border-color:#9e7148}.yard-grade-controls{display:flex;flex-wrap:wrap;gap:7px}.yard-grade-controls button{flex:1 0 calc(33.333% - 7px)}.yard-small-note{font-size:11px;color:#827666;line-height:1.6;margin:10px 0 0}.yard-footnote{margin:18px 4px;font-size:12px;color:#776a56}
.yard-entry-banner{display:flex;gap:18px;align-items:center;justify-content:space-between;background:linear-gradient(110deg,#e1edda,#f5e8d1);border:1px solid #c5d6bb;padding:21px 25px;border-radius:18px;margin:22px auto}.yard-entry-banner h2{font-size:20px;margin:4px 0 5px;color:#4d5b43}.yard-entry-banner p{font-size:13px;margin:0;color:#555b4d}.yard-entry-banner button{flex-shrink:0;border:0;background:#3f6849;color:#fff;padding:12px 19px;border-radius:10px;font-weight:800}.yard-entry-banner button:hover{background:#2c5238}
@media(max-width:950px){.courtyard-layout{grid-template-columns:1fr}.yard-scene{min-height:420px}.yard-landscape svg{width:100%;height:100%}.yard-control-panel{display:grid;grid-template-columns:1fr 1fr;gap:15px}.yard-shared-clock{grid-column:1/-1}.yard-panel-section+.yard-panel-section{border-top:0;margin-top:0}}
@media(max-width:600px){.courtyard-main{padding:16px 12px 40px}.courtyard-intro{margin-top:14px}.courtyard-intro h1{font-size:30px}.yard-scene{min-height:365px;border-width:4px}.yard-group{padding:7px;min-width:88px}.yard-group-people{font-size:18px}.yard-group button{padding:7px}.yard-control-panel{display:block;padding:13px}.yard-panel-section+.yard-panel-section{border-top:1px solid #e5d9c6}.yard-entry-banner{flex-direction:column;align-items:flex-start;padding:18px}.yard-entry-banner button{width:100%}.yard-countdown{font-size:50px}}
@media(prefers-reduced-motion:reduce){.yard-weather-rain,.yard-weather-wind{animation:none}.yard-scene.is-windy .yard-weather-wind{right:2%;top:9%}}

/* CP1.4 – walkable schoolyard. Character movement is local; no progress data mutation. */
.scene-play{touch-action:manipulation;cursor:crosshair}
.scene-play .scene-overlay{z-index:2;align-items:flex-start;background:linear-gradient(180deg,#223928e6 0%,#2239286b 29%,transparent 68%)}
.scene-play .hero-copy{padding:17px clamp(16px,4vw,36px);max-width:790px}
.scene-play .hero-copy h1{font-size:clamp(23px,3vw,36px);margin:6px 0 11px}
.scene-play .hero-copy p:not(.eyebrow){display:none}
.scene-play .hero-copy .primary-button{padding:8px 16px;min-height:40px;font-size:12px;box-shadow:0 3px 0 #71351f}
.scene-play .campus-art{position:absolute;inset:0;width:100%;height:100%;min-width:100%;object-fit:cover}
.walk-player-layer{position:absolute;inset:0;z-index:5;pointer-events:none}
.walk-avatar{position:absolute;width:clamp(42px,5vw,68px);height:auto;aspect-ratio:70/88;transform:translate(-50%,-100%);filter:drop-shadow(0 6px 4px #33251477);will-change:left,top;pointer-events:none;transition:filter .18s}
.walk-avatar svg{width:100%;height:100%;display:block}
.walk-avatar.is-walking .walk-feet{animation:walk-feet-step .18s ease-in-out infinite alternate;transform-origin:center 68px}
@keyframes walk-feet-step{from{transform:rotate(-5deg)}to{transform:rotate(5deg)}}
.walk-site{position:absolute;transform:translate(-50%,-100%);border:1.5px solid #fff0b8;border-radius:12px;background:#fff8dcee;color:#4a3423;display:flex;align-items:center;flex-direction:column;gap:1px;min-width:62px;padding:7px 8px;font-weight:800;box-shadow:0 4px 8px #36291e66;pointer-events:auto;z-index:6}
.walk-site span{font-size:20px;line-height:1}.walk-site small{font-size:10px;white-space:nowrap}.walk-site:hover,.walk-site:focus-visible{background:#fff4c2;border-color:#a6682a;outline-offset:2px}
.walk-destination{position:absolute;transform:translate(-50%,-50%);color:#ffde74;font-size:32px;font-weight:900;text-shadow:0 2px 6px #352414;pointer-events:none;animation:walk-target-pulse .6s ease-in-out infinite alternate}
.walk-destination[hidden],.walk-interface button[hidden]{display:none!important}
@keyframes walk-target-pulse{from{opacity:.55;transform:translate(-50%,-50%) scale(.83)}to{opacity:1;transform:translate(-50%,-50%) scale(1.1)}}
.walk-interface{position:absolute;z-index:7;right:12px;bottom:12px;display:flex;align-items:center;gap:7px;max-width:calc(100% - 24px);background:#283f34e8;border:1px solid #e1d4aa77;color:#fff6df;border-radius:12px;padding:8px 11px;font-size:11px;font-weight:700;pointer-events:auto;box-shadow:0 6px 12px #1b291f55}
.walk-interface button{border:0;border-radius:8px;background:#f8db91;color:#453521;padding:9px 10px;font-weight:900;font-size:11px;white-space:nowrap}
.walk-interface button:hover{background:#ffe9af}
.yard-scene .walk-interface{top:10px;right:10px;bottom:auto}
.yard-scene .walk-site{min-width:52px;padding:6px 6px}.yard-scene .walk-site small{font-size:10px}
.yard-scene .walk-avatar{width:55px}
@media(max-width:760px){.scene-play .scene-overlay{background:linear-gradient(180deg,#223928dd 0%,#22392866 28%,transparent 64%)}.scene-play .hero-copy{padding:14px}.scene-play .hero-copy h1{font-size:25px;margin:3px 0 6px}.scene-play .hero-copy .primary-button{min-height:34px;padding:6px 10px}.scene-play .hero-copy .eyebrow{font-size:9px;margin-bottom:4px}.scene-play .campus-art{min-width:0;right:auto}.walk-interface{left:7px;right:7px;bottom:7px;justify-content:space-between}.walk-site{min-width:51px;padding:6px 5px}.walk-site small{font-size:9px}.walk-avatar{width:44px}.yard-scene .walk-site{min-width:42px;padding:5px 3px}.yard-scene .walk-site span{font-size:17px}.yard-scene .walk-site small{font-size:9px}.yard-scene .walk-interface{top:9px;left:9px;right:9px;justify-content:space-between}}
@media(prefers-reduced-motion:reduce){.walk-avatar.is-walking .walk-feet,.walk-destination{animation:none!important}}

/* CP2 · Adventure world: handcrafted lightweight 2D village environment */
.exp-shell{background:linear-gradient(180deg,#edf5e6,#f9f3e7);padding:30px clamp(14px,3.5vw,58px) 45px;min-height:75svh;--exp-ink:#344e3d;--exp-leaf:#417953}
.exp-shell button{font:inherit}.exp-shell button:focus-visible{outline:3px solid #f9e294;outline-offset:3px}
.exp-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:4px 0 22px}.exp-heading h1{font-size:clamp(26px,3vw,39px);color:#355441;margin:0 0 5px}.exp-heading p:not(.eyebrow){color:#607362;font-size:13px;margin:0;max-width:690px}.exp-heading .eyebrow{font-size:10px;color:#987047}
.exp-heading-actions{display:flex;gap:8px;flex-wrap:wrap}.exp-heading-actions button{background:#fffefa;color:#416547;border:1px solid #becfaf;border-radius:11px;padding:10px 14px;font-weight:800;font-size:12px}.exp-heading-actions button:hover{background:#e1edd7}
.exp-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,302px);gap:18px;align-items:start}
.exp-playframe{border:6px solid #fdf9ec;border-radius:25px;overflow:hidden;background:#edf1db;box-shadow:0 15px 35px #394e2c22;min-width:0}
.exp-topbar{display:flex;align-items:center;gap:8px;padding:11px 13px;background:#324b3f;color:#f7f1e1;min-height:52px}.exp-topbar .exp-chip{font-size:11px;font-weight:800;white-space:nowrap}.exp-topbar .exp-chip:first-child{color:#ffe0a1}.exp-topbar button{margin-left:auto;font-size:11px;color:#f6f4de;background:#526c51;border:1px solid #90a17c;padding:7px 10px;border-radius:8px;white-space:nowrap}
.exp-viewport{position:relative;height:min(68svh,650px);min-height:450px;background:#719f78;overflow:hidden;touch-action:none;outline:none;isolation:isolate;cursor:crosshair}
.exp-world{position:absolute;top:0;left:0;transform:translate3d(0,0,0);will-change:transform;isolation:isolate}.exp-map-art{width:100%;height:100%;display:block;position:absolute;inset:0;pointer-events:none}
.exp-site{position:absolute;transform:translate(-50%,-98%);z-index:3;display:grid;place-items:center;min-width:80px;gap:3px;padding:9px 10px;background:#fffbebf5;border:2px solid #c69b67;border-bottom:5px solid #9c7757;border-radius:13px;color:#62442a;box-shadow:0 6px 13px #243a2980;cursor:pointer;transition:transform .16s,background .16s}
.exp-site span{font-size:26px;line-height:1.2}.exp-site small{font-size:12px;font-weight:800;white-space:nowrap}.exp-site:hover,.exp-site:focus-visible{background:#fff1c3;transform:translate(-50%,-104%)}.exp-site-npc{border-color:#d6ad68;background:#fff1d5}.exp-site-activity{border-color:#83b57f}
.exp-letter{z-index:4;position:absolute;transform:translate(-50%,-80%);width:53px;height:53px;border-radius:50%;font-size:26px;font-weight:900;border:4px solid #fff1c0;background:linear-gradient(135deg,#f8ce54,#df9832);color:#653b19;box-shadow:0 5px 14px #67431d8c;animation:exp-float 2.2s ease-in-out infinite alternate;cursor:pointer}
.exp-letter[hidden]{display:none}.exp-click-marker{position:absolute;z-index:2;font-size:43px;transform:translate(-50%,-50%);color:#fdf6a2;text-shadow:0 1px 7px #674f33;animation:exp-float .55s ease-in-out infinite alternate;pointer-events:none}.exp-click-marker[hidden]{display:none}
.exp-avatar{position:absolute;z-index:5;transform:translate(-50%,-91%);height:110px;width:83px;pointer-events:none;filter:drop-shadow(0 8px 5px #2e513e8f);will-change:top,left}.exp-avatar svg{width:100%;height:100%;display:block}.exp-avatar.moving .exp-leg{animation:exp-run .22s ease-in-out infinite alternate;transform-origin:50% 80%}
@keyframes exp-float{from{transform:translate(-50%,-85%)}to{transform:translate(-50%,-100%)}}@keyframes exp-run{from{transform:rotate(-5deg)}to{transform:rotate(5deg)}}
.exp-minimap{position:absolute;z-index:8;right:13px;top:12px;background:#f9f7e8ed;border:3px solid #fef6db;border-radius:13px;box-shadow:0 5px 13px #30453377;width:168px;overflow:hidden}.exp-minimap svg{width:100%;display:block}.exp-minimap>span{display:block;text-align:center;color:#50674c;font-weight:800;font-size:9px;padding:3px}
.exp-action-bar{position:absolute;z-index:9;bottom:10px;left:12px;right:12px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}.exp-live-message{background:#274b3ae8;color:#fff4d8;border:1px solid #d6d1a3b5;border-radius:10px;padding:9px 12px;font-size:12px;font-weight:700;box-shadow:0 3px 10px #1839247d;max-width:72%}.exp-action-bar button{pointer-events:auto;background:#ffe7a0;border:2px solid #fff6d3;color:#594328;padding:11px 13px;border-radius:11px;font-size:12px;font-weight:900;box-shadow:0 3px 9px #1d482866}.exp-action-bar button[hidden]{display:none}
.exp-toast{position:absolute;z-index:13;top:85px;left:50%;transform:translateX(-50%);background:#fdf1bd;border:2px solid #daa85a;padding:14px 19px;border-radius:16px;color:#6c4a24;font-weight:900;font-size:14px;box-shadow:0 7px 14px #31452e66;white-space:nowrap}.exp-toast[hidden]{display:none}
.exp-joystick{display:none;position:absolute;bottom:56px;left:15px;z-index:11;text-align:center;color:#fff;font-size:10px;font-weight:800;touch-action:none;user-select:none;-webkit-user-select:none}.exp-joystick-ring{position:relative;height:106px;width:106px;border:3px solid #fff5d8ad;border-radius:50%;background:#243b34a8;box-shadow:0 4px 15px #17392477;touch-action:none}.exp-joystick-knob{position:absolute;width:51px;height:51px;left:24px;top:24px;border-radius:50%;background:radial-gradient(circle at 32% 30%,#fff2b0,#d8ab68);box-shadow:0 4px 7px #1b3225a8;pointer-events:none}.exp-joystick small{display:block;margin-top:3px;text-shadow:0 1px 5px #213c2b}
.exp-under-map{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:12px 15px;font-size:11px;color:#62725b;font-weight:700}.exp-under-map button{border:1px solid #c6d3b5;color:#4c7556;border-radius:10px;padding:7px 10px;background:#f4faed;font-size:11px;font-weight:800;white-space:nowrap}
.exp-sidebar{display:grid;gap:14px;min-width:0}.exp-quest,.exp-inventory,.exp-help-quick{background:#fffdf5;border:1px solid #d5dfc8;border-radius:19px;box-shadow:0 9px 20px #3850320e;padding:18px}
.exp-quest-head{display:flex;gap:11px;align-items:center}.exp-quest-head .exp-quest-icon{font-size:29px}.exp-quest-head h2{font-size:16px;color:#385941;margin:2px 0 0}.exp-quest-head small{font-size:9px;letter-spacing:.1em;font-weight:800;color:#a07746}.exp-quest-count{margin-left:auto;background:#e4efdb;padding:6px 8px;border-radius:8px;font-weight:900;color:#5b8553}
.exp-quest-meter{height:9px;background:#ecedda;border-radius:12px;margin:15px 0;overflow:hidden}.exp-quest-meter>div{height:100%;background:linear-gradient(90deg,#7ca65c,#e5bf5e);transition:width .4s}.exp-quest-list{padding:0;list-style:none;display:grid;gap:11px;margin:0}.exp-quest-list li{font-size:12px;line-height:1.5;color:#817a66}.exp-quest-list li.done{color:#408253;font-weight:800}.exp-quest-note{font-size:11px;color:#7e745c;background:#f3f6e9;padding:10px;border-radius:10px;margin:16px 0 0}
.exp-inventory h3,.exp-help-quick h3{font-size:16px;color:#426047;margin:0 0 12px}.exp-letter-slots{display:flex;gap:8px}.exp-letter-slots span{width:49px;height:53px;display:grid;place-items:center;background:#ecf0de;border:2px dashed #c1cdb2;border-radius:11px;color:#a3b296;font-size:27px;font-weight:900}.exp-letter-slots span.filled{border:2px solid #d3a967;background:#fff1c7;color:#9b6032}.exp-inventory p{color:#70674e;font-size:12px;margin:13px 0 0}
.exp-quick-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.exp-quick-links button{background:#edf3e6;border:1px solid #ccdbc1;padding:10px 6px;border-radius:9px;font-size:10px;color:#456247;font-weight:800}.exp-quick-links button:hover{background:#dbedcc}
.exp-bottom-note{color:#8b8d78;font-size:11px;line-height:1.6;margin:17px 0 0}
.exp-modal-overlay{position:fixed;z-index:80;inset:0;background:#142b20a9;display:flex;align-items:center;justify-content:center;padding:22px;backdrop-filter:blur(5px)}.exp-modal-overlay[hidden]{display:none}.exp-dialog{position:relative;background:linear-gradient(145deg,#fff9e9,#f3edd7);border:5px double #ba9662;border-radius:24px;padding:29px;max-width:570px;width:100%;max-height:87vh;overflow:auto;box-shadow:0 20px 75px #0c251dab}.exp-dialog-x{position:absolute;top:13px;right:13px;background:#e9ddc9;border:0;border-radius:10px;padding:5px 11px;font-size:25px;color:#755938}.exp-dialog-content h2{font-size:24px;color:#704e2e;margin:0 31px 14px 0}.exp-dialog-content p{color:#5d5949;font-size:14px;line-height:1.85}.exp-dialog-content .exp-story{background:#fff4d9;border-radius:12px;padding:12px;border:1px solid #ead3a2}.exp-dialog-buttons{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.exp-dialog-buttons button{border:1px solid #b8a181;background:#fff8e9;padding:12px 16px;border-radius:11px;font-size:12px;font-weight:800;color:#745a3d}.exp-dialog-buttons button.primary{color:white;background:#a86839;border-color:#93623c}.exp-grade-choices{display:flex;flex-wrap:wrap;gap:9px;margin:17px 0}.exp-grade-choices button{border:1px solid #b4cbaa;border-radius:9px;background:#e6f1db;padding:11px 13px;color:#3e6944;font-weight:800}
@media(max-width:1050px){.exp-layout{grid-template-columns:minmax(0,1fr) 256px}.exp-sidebar{gap:10px}.exp-playframe{border-width:4px}.exp-minimap{width:135px}}
@media(max-width:830px){.exp-heading{flex-direction:column;align-items:flex-start}.exp-layout{grid-template-columns:1fr}.exp-sidebar{grid-template-columns:1fr 1fr}.exp-quest{grid-column:1/-1}.exp-shell{padding:18px 12px 32px}.exp-viewport{height:57svh;min-height:410px}.exp-joystick{display:block}.exp-action-bar{bottom:10px;left:130px}.exp-live-message{max-width:100%;font-size:10px}.exp-minimap{width:129px}.exp-action-bar button{font-size:10px}.exp-quest-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}
@media(max-width:510px){.exp-shell{padding:12px 8px 22px}.exp-heading{margin:0 8px 12px}.exp-heading h1{font-size:27px}.exp-heading-actions{width:100%}.exp-heading-actions button{flex:1}.exp-viewport{height:59svh;min-height:385px}.exp-topbar{padding:8px;min-height:45px}.exp-topbar .exp-chip{font-size:9px}.exp-topbar .exp-chip:first-child{display:none}.exp-minimap{width:116px;top:9px;right:9px}.exp-site{min-width:73px}.exp-site small{font-size:12px}.exp-joystick{left:9px;bottom:50px}.exp-joystick-ring{width:100px;height:100px}.exp-joystick-knob{left:22px;top:22px}.exp-action-bar{left:118px;right:8px;bottom:8px}.exp-live-message{font-size:9px;padding:8px;max-width:100%}.exp-action-bar button{padding:11px 8px;max-width:50%}.exp-sidebar{grid-template-columns:1fr}.exp-quest{grid-column:auto}.exp-quest-list{grid-template-columns:1fr}.exp-under-map span{font-size:10px}.exp-dialog{padding:22px 16px}.exp-dialog-content h2{font-size:22px}.exp-dialog-buttons{flex-direction:column}.exp-dialog-buttons button{width:100%}}
@media(prefers-reduced-motion:reduce){.exp-letter,.exp-click-marker,.exp-avatar.moving .exp-leg{animation:none!important}.exp-site{transition:none!important}}
/* Navigation entry stays accessible on all screens and makes exploration the main CTA. */
.world-entry-button{border:1px solid #b9cda9;background:#e7f1df;color:#446a43;border-radius:11px;padding:10px 12px;font-size:12px;font-weight:900;white-space:nowrap}.world-entry-button:hover{background:#d6e9c9}
.hero-class-link{margin-left:10px;background:#fff9eadd;color:#73523b;border:1px solid #efdbab;border-radius:12px;font-size:12px;padding:11px 16px;font-weight:800;box-shadow:none}.hero-class-link:hover{background:white}
@media(max-width:600px){.world-entry-button{font-size:11px;padding:8px}.header-right{gap:7px}.hero-class-link{margin:8px 0 0 0;display:block;width:max-content;max-width:100%;padding:7px 11px}.scene-play .hero-copy{max-width:93%}}

/* CP2.2 — compact immersive side-scrolling hub, isolated cv-* scope */
.cv-hub{max-width:1380px;margin:0 auto;padding:18px 18px 34px;color:#33513f;font-family:inherit}
.cv-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:2px 0 16px}
.cv-heading h1{font-family:Georgia,serif;font-weight:900;font-size:clamp(27px,3.5vw,44px);line-height:1.15;color:#65432d;margin:5px 0}
.cv-heading p{color:#71816c;font-size:13px;margin:0}
.cv-eyebrow{font-size:10px!important;letter-spacing:.14em;font-weight:900;color:#aa6b43!important}
.cv-change{border:1px solid #d4bb93;border-radius:12px;background:#fff9e9;color:#6a4e35;white-space:nowrap;font-size:13px;font-weight:800;padding:12px 15px;cursor:pointer}
.cv-frame{background:#f5f6df;border:6px solid #f9f2df;box-shadow:0 16px 45px #354d2d22;border-radius:25px;overflow:hidden}
.cv-hud{display:flex;gap:13px;align-items:center;justify-content:space-between;background:#314e40;color:#fff4d8;padding:10px 17px;font-weight:800;font-size:13px;min-height:48px}
.cv-hud>span:nth-child(2){display:flex;gap:18px;align-items:center}.cv-hud-star{color:#ffe295}
.cv-hud button{border:1px solid #e1ca9d;background:#f7e4b8;color:#5c4931;border-radius:9px;padding:7px 10px;font-size:11px;font-weight:800;cursor:pointer}
.cv-viewport{height:min(62svh,530px);min-height:415px;position:relative;background:linear-gradient(180deg,#91babb,#e6dfb8);overflow:hidden;outline:none;touch-action:pan-y}
.cv-viewport:focus-visible{outline:3px solid #e5af51;outline-offset:-3px}
.cv-distance{position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 28% 14%,#fffde088,transparent 18%),repeating-linear-gradient(110deg,transparent 0 170px,#fffdf411 170px 350px);transform:translateX(var(--cv-parallax,0));opacity:.55}
.cv-world{position:absolute;left:0;bottom:0;height:500px;will-change:transform;transform-origin:top left}
.cv-world>svg{width:2920px;height:500px;display:block}
.cv-zone{position:absolute;bottom:78px;transform:translateX(-50%);z-index:4;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px;width:190px;border:3px solid #fce4a6;border-radius:14px;padding:7px 8px 10px;background:#fffae5ed;color:#704b2e;box-shadow:0 7px 0 #98653e6e,0 11px 26px #283f334d;transition:filter .15s,margin-bottom .15s}
.cv-zone:hover,.cv-zone:focus-visible{filter:brightness(1.1);margin-bottom:5px}
.cv-zone-icon{font-size:25px;line-height:1.2}.cv-zone b{font-size:13px}.cv-zone small{font-size:10px;font-weight:700;line-height:1.3;white-space:nowrap;color:#826c4c}
.cv-hero{position:absolute;bottom:70px;transform:translateX(-50%);z-index:6;text-align:center;pointer-events:none;width:92px;filter:drop-shadow(0 6px 3px #374f345a)}
.cv-hero svg{display:block;margin:auto}.cv-hero>span{display:inline-block;max-width:130px;min-width:65px;padding:2px 6px;background:#fdf4d8e9;border:2px solid white;border-radius:12px;color:#624938;font-size:10px;font-weight:900;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.cv-hero.is-running .cv-feet{animation:cv-run .20s infinite alternate ease-in-out;transform-origin:center 82%}
.cv-hero.is-facing-left svg{transform:scaleX(-1)}
@keyframes cv-run{from{transform:rotate(-8deg)}to{transform:rotate(8deg)}}
.cv-statement{position:absolute;z-index:7;left:14px;bottom:18px;max-width:65%;border:1px solid #ffefd7;background:#26463bde;color:#fff8dc;padding:9px 12px;border-radius:12px;font-size:12px;font-weight:750;pointer-events:none}
.cv-action-row{position:absolute;z-index:8;right:10px;bottom:12px;display:flex;gap:8px;align-items:end}
.cv-action-row button{font-weight:900;cursor:pointer;border:2px solid #fff0c5;background:#fce09f;color:#61432b;border-radius:12px;min-height:44px;padding:9px 13px}
.cv-dpad{display:flex;gap:5px}.cv-dpad button{font-size:19px;min-width:46px;touch-action:none;user-select:none;-webkit-user-select:none}
.cv-enter{font-size:12px}.cv-enter[hidden]{display:none}
.cv-frame-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 15px;color:#6c745c;font-size:12px;font-weight:700}
.cv-frame-footer button{border:1px solid #d4cfab;background:#fffef6;color:#6c5a3e;border-radius:9px;padding:7px 11px;font-weight:800;cursor:pointer}
.cv-route{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:12px}
.cv-route button{background:#fdfbf1;border:1px solid #dcd8c4;border-radius:12px;padding:13px 8px;color:#50664e;font-size:12px;font-weight:800;cursor:pointer;box-shadow:0 4px 12px #374b2f0b}
.cv-route button:hover{background:#edf5e6}
.cv-disclaimer{color:#8a8d7c;font-size:11px;line-height:1.6;margin:14px 0 0}
.cv-overlay{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:16px;background:#192e26c2;backdrop-filter:blur(5px)}
.cv-overlay[hidden]{display:none}
.cv-pop{width:min(550px,100%);max-height:90svh;overflow:auto;border-radius:23px;border:4px solid #dfc28b;background:linear-gradient(160deg,#fffdf0,#f3edd7);box-shadow:0 25px 75px #071d174f;padding:27px;position:relative}
.cv-pop h2{font-family:Georgia,serif;font-size:27px;color:#694833;margin:8px 0 10px}
.cv-pop p{font-size:14px;line-height:1.6;color:#5b644f}
.cv-grade-picks{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:19px}
.cv-grade-picks button{border:2px solid #d8d0af;border-radius:13px;background:#f8f4df;color:#5a6947;padding:15px 6px;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:12px;cursor:pointer}
.cv-grade-picks b{font-size:14px}.cv-grade-picks small{font-size:9px;white-space:nowrap}.cv-grade-picks button:hover,.cv-grade-picks .chosen{border-color:#bf8b59;background:#fff2cb}
.cv-name-form{display:grid;gap:10px;margin:20px 0 0}.cv-name-form label{font-weight:800;color:#5e6349}
.cv-name-form input{padding:13px 14px;border:2px solid #dfd1ad;border-radius:12px;font-size:17px;background:white;color:#3b4635;min-width:0}
.cv-name-actions,.cv-dialog-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:12px;flex-wrap:wrap}
.cv-name-actions button,.cv-dialog-actions button{border:1px solid #cabb9a;border-radius:10px;padding:12px 15px;background:#fff9e8;color:#71593e;font-weight:800;cursor:pointer}
.cv-name-actions .cv-primary,.cv-dialog-actions .cv-primary{background:#99643e;color:white;border-color:#835434}
.cv-privacy{color:#8b876f;font-size:11px}.cv-error{color:#a43224!important;font-weight:800;min-height:1em}
.cv-close{position:absolute;right:12px;top:10px;border:0;background:#ecddc1;border-radius:8px;font-size:28px;padding:3px 11px;color:#755439;cursor:pointer}
@media(max-width:900px){.cv-route{grid-template-columns:repeat(3,minmax(0,1fr))}.cv-heading{align-items:start}.cv-viewport{height:55svh;min-height:400px}}
@media(max-width:580px){.cv-hub{padding:9px 7px 24px}.cv-heading{padding:7px;gap:6px;flex-direction:column}.cv-heading h1{font-size:27px}.cv-heading p{font-size:11px}.cv-change{font-size:11px;padding:9px 11px}.cv-frame{border-width:3px;border-radius:16px}.cv-hud{padding:8px;gap:5px;font-size:10px}.cv-hud>span:nth-child(2){gap:7px}.cv-hud button{font-size:9px;padding:6px}.cv-viewport{height:61svh;min-height:390px;touch-action:none}.cv-route{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.cv-route button{padding:12px 5px;font-size:11px}.cv-statement{bottom:69px;left:8px;max-width:95%;font-size:10px;padding:6px 9px}.cv-action-row{left:8px;right:8px;justify-content:space-between;bottom:9px}.cv-action-row button{min-height:48px}.cv-frame-footer{font-size:10px;padding:9px}.cv-frame-footer button{font-size:10px;white-space:nowrap}.cv-pop{padding:18px 14px}.cv-grade-picks{grid-template-columns:repeat(3,minmax(0,1fr))}.cv-pop h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){.cv-hero.is-running .cv-feet{animation:none}.cv-zone{transition:none}}

/* CP2.3 — NPC interactions, calm original ambience, touchscreen ergonomics. */
.cv-npc{position:absolute;bottom:72px;z-index:5;transform:translateX(-50%);min-width:104px;max-width:128px;border:2px solid #f8eed6;border-radius:13px;padding:7px 9px 8px;display:flex;align-items:center;flex-direction:column;gap:1px;background:#f9f2dae8;color:#4d5034;box-shadow:0 5px 16px #385a4650;cursor:pointer}
.cv-npc:hover,.cv-npc:focus-visible{background:#fff5c8;outline:2px solid #db9d57;outline-offset:2px}
.cv-npc-avatar{font-size:34px;line-height:1.3;animation:cv-npc-bob 2.6s ease-in-out infinite alternate;transform-origin:center bottom}
.cv-npc b{font-size:11px;line-height:1.2}.cv-npc small{font-size:9px;color:#72805a}
.cv-npc-hint{position:absolute;left:12px;top:54px;z-index:8;border:1px solid #f8e9c1;border-radius:10px;padding:8px 12px;background:#fffbeced;color:#53613e;font-size:12px;font-weight:850;max-width:min(330px,62vw);box-shadow:0 4px 13px #43604333}
.cv-npc-hint[hidden]{display:none}
.cv-clouds{animation:cv-cloud-drift 24s ease-in-out infinite alternate;transform-origin:center center}
.cv-butterflies{animation:cv-fly 4.5s ease-in-out infinite alternate;transform-origin:center center}
@keyframes cv-npc-bob{to{transform:translateY(-4px)}}
@keyframes cv-cloud-drift{to{transform:translateX(33px)}}
@keyframes cv-fly{to{transform:translate(18px,-13px)}}
.cv-hud button[aria-pressed="true"]{background:#d8e9c5;border-color:#94ad77;color:#355d41}
.cv-dpad button{min-width:49px;min-height:51px;-webkit-tap-highlight-color:transparent}
.cv-dpad button:active{transform:translateY(2px);background:#ffe8b8}
@media(max-width:580px){.cv-hud{flex-wrap:wrap;justify-content:space-between}.cv-hud>span:nth-child(2){order:3;width:100%;justify-content:center}.cv-hud button{font-size:10px;min-height:35px}.cv-npc{min-width:86px;padding:5px}.cv-npc-avatar{font-size:30px}.cv-npc-hint{top:12px;left:8px;font-size:10px;max-width:58vw;padding:6px 8px}.cv-dpad button{min-height:53px;min-width:54px}}
@media(prefers-reduced-motion:reduce){.cv-npc-avatar,.cv-clouds,.cv-butterflies{animation:none!important}}

/* CP2.4: distraction-free game hub. Important help available on demand. */
.cv-hub{padding-top:5px}
.cv-heading{margin:0 0 8px;display:flex;justify-content:space-between;align-items:center}
.cv-heading h1{font-size:clamp(21px,2.6vw,30px);margin:2px 0;color:#665035}
.cv-heading .cv-change{padding:7px 13px;font-size:20px;line-height:1;min-width:43px;min-height:39px}
.cv-hud{gap:7px;min-height:40px;padding:5px 12px}
.cv-hud .cv-hud-progress{display:flex;gap:12px;align-items:center;white-space:nowrap}
.cv-hud button{font-size:16px;min-width:34px;min-height:34px;padding:3px 7px}
.cv-zone{width:152px;padding:7px 5px;border-radius:13px;gap:2px}
.cv-zone b{font-size:12px;line-height:1.2}
.cv-zone-icon{font-size:29px}
.cv-npc{min-width:80px;max-width:94px;padding:4px 4px 5px;gap:0}
.cv-npc b{font-size:10px}
.cv-npc-avatar{font-size:30px}
.cv-statement[hidden]{display:none!important}
.cv-statement{bottom:79px;max-width:230px;font-size:11px;padding:7px 10px}
.cv-npc-hint{max-width:205px;padding:6px 9px}
.cv-enter{min-width:85px}
.cv-frame-footer{justify-content:flex-end;padding:5px 9px;min-height:35px}
.cv-frame-footer button{font-size:20px;line-height:1;padding:3px 11px}
.cv-route{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:9px}
.cv-route button{font-size:22px;flex:0 1 60px;min-width:47px;min-height:44px;padding:6px}
.cv-game-info{font-size:11px;color:#8b846d;margin:7px 2px 0}
.cv-game-info summary{cursor:pointer;display:inline-block;user-select:none}
.cv-game-info p{margin:5px 0;line-height:1.4;max-width:560px}
.cv-step-help:empty{display:none}
.cv-grade-picks{margin-top:12px}
.cv-grade-picks button{gap:4px}
.cv-dialog-actions button{min-height:42px}
@media(max-width:580px){
 .cv-hub{padding:4px 4px 16px}
 .cv-heading{flex-direction:row;align-items:center}
 .cv-heading h1{font-size:22px}
 .cv-heading .cv-change{font-size:19px;padding:7px 11px}
 .cv-hud{flex-wrap:wrap;gap:4px;min-height:38px;padding:5px 7px}
 .cv-hud>span:nth-child(2){order:0;width:auto;justify-content:initial}
 .cv-hud .cv-hud-progress{gap:5px;font-size:10px}
 .cv-hud button{font-size:15px;min-width:31px;min-height:32px;padding:3px 5px}
 .cv-zone{width:135px}
 .cv-zone b{font-size:11px}
 .cv-npc{min-width:70px;max-width:78px;padding:4px 2px}
 .cv-npc b{font-size:9px}
 .cv-route{gap:6px;justify-content:space-between}
 .cv-route button{flex:1 1 46px;font-size:21px;min-width:44px;max-width:72px}
 .cv-statement{bottom:71px;max-width:195px}
 .cv-npc-hint{font-size:10px;top:10px}
}

/* CP2.5: compact, unscored quiz shown inside the existing village viewport. */
.cv-mini-layer{position:absolute;inset:0;z-index:25;display:grid;place-items:center;padding:12px;background:#183329a6;backdrop-filter:blur(2px)}
.cv-mini-layer[hidden]{display:none!important}
.cv-mini-card{width:min(510px,100%);max-height:calc(100% - 6px);overflow:auto;border:3px solid #f1d39a;border-radius:20px;background:#fff9ea;color:#514c36;box-shadow:0 16px 38px #1d362a85;padding:14px 17px;display:grid;gap:10px}
.cv-mini-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.cv-mini-head strong{color:#80573b;font-size:15px}
.cv-mini-head button{font-size:25px;line-height:1;border:0;background:#e9ddbe;color:#70523c;border-radius:10px;min-width:38px;min-height:38px;cursor:pointer}
.cv-mini-meta{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#73816d;font-weight:700}
.cv-mini-card h2{font-size:clamp(18px,2.6vw,24px);font-family:Georgia,serif;color:#4e5238;line-height:1.32;margin:5px 0 12px}
.cv-mini-choices{display:grid;gap:8px}
.cv-mini-choices button{width:100%;border:2px solid #e0d5b7;border-radius:12px;background:#fffefa;text-align:left;padding:11px 13px;color:#4b4e39;font-weight:750;font-size:15px;cursor:pointer;display:flex;align-items:center;gap:11px;min-height:46px}
.cv-mini-choices button>span{flex:0 0 28px;border-radius:8px;background:#f1e8cf;color:#866344;text-align:center;padding:4px}
.cv-mini-choices button:not(:disabled):hover,.cv-mini-choices button:not(:disabled):focus-visible{border-color:#6b9a66;background:#f4fbe9}
.cv-mini-choices button.is-correct{background:#e2f3dd;border-color:#6ba75c}
.cv-mini-choices button.is-wrong{background:#ffe8dd;border-color:#d48d70}
.cv-mini-feedback{font-size:13px;line-height:1.4;color:#476947;font-weight:800;display:grid;gap:3px}
.cv-mini-feedback span{font-size:12px;font-weight:500;color:#59604e}
.cv-mini-next,.cv-mini-summary button{border:0;border-radius:11px;padding:11px 15px;min-height:44px;font-size:14px;font-weight:850;color:white;background:#458264;cursor:pointer}
.cv-mini-footer{display:flex;justify-content:space-between;align-items:center;gap:9px;border-top:1px solid #e7dbc2;padding-top:8px}
.cv-mini-footer small{font-size:10px;color:#958977}
.cv-mini-footer button{border:1px solid #bba47c;border-radius:10px;background:#f2e5c5;color:#71553c;font-weight:800;padding:9px 13px;min-height:40px;cursor:pointer}
.cv-mini-summary{text-align:center;display:grid;justify-items:center;gap:6px;padding:12px 4px}
.cv-mini-summary>span{font-size:38px}.cv-mini-summary h2{margin:0 0 8px}
@media(max-width:580px){.cv-mini-layer{padding:5px}.cv-mini-card{padding:10px 11px;border-radius:15px;gap:6px}.cv-mini-choices{gap:5px}.cv-mini-choices button{min-height:42px;padding:7px 10px;font-size:13px}.cv-mini-card h2{font-size:18px;margin:3px 0 6px}.cv-mini-feedback span{font-size:11px}.cv-mini-head button{min-height:36px}}

/* CP2.6: short listen and tap-to-order exercises, no extra instruction panels. */
.cv-mini-listen{border:2px solid #96b895;border-radius:13px;background:#e1f0d8;color:#3c6f55;font-size:18px;font-weight:900;min-height:49px;padding:7px 20px;cursor:pointer;width:100%;margin-bottom:7px}
.cv-mini-listen:focus-visible,.cv-mini-tokens button:focus-visible,.cv-mini-order-actions button:focus-visible{outline:3px solid #7fb8b2;outline-offset:2px}
.cv-mini-assembled{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-height:47px;padding:8px;background:#eef2db;border:2px dashed #beca9e;border-radius:11px;margin-bottom:8px}
.cv-mini-assembled span{font-size:14px;background:#fffdf7;border-radius:8px;padding:6px 9px;color:#485e40;font-weight:850}
.cv-mini-tokens{display:flex;flex-wrap:wrap;gap:7px}
.cv-mini-tokens button{border:2px solid #e1d1ae;background:#fffaf0;color:#61543b;border-radius:10px;padding:9px 12px;font-weight:800;font-size:15px;min-height:45px;cursor:pointer}
.cv-mini-tokens button.is-used{opacity:.33;text-decoration:line-through}
.cv-mini-order-actions{display:flex;gap:10px;margin-top:9px}
.cv-mini-order-actions button{border:1px solid #c7aa85;background:#f6ead1;color:#604e39;border-radius:10px;min-height:43px;padding:9px 15px;font-weight:850;cursor:pointer}
.cv-mini-order-actions button[data-cv-mini-submit]{flex:1;background:#478263;color:white;border:0}
.cv-mini-order-actions button:disabled{opacity:.45;cursor:default}
@media(max-width:580px){.cv-mini-listen{min-height:44px;font-size:16px;margin-bottom:3px}.cv-mini-assembled{padding:5px;min-height:40px}.cv-mini-tokens{gap:5px}.cv-mini-tokens button{font-size:13px;min-height:42px;padding:7px 9px}.cv-mini-order-actions{margin-top:5px}}

/* CP2.7: gentle, nonblocking correct/wrong cues, respecting reduced motion. */
.cv-mini-card{position:relative;isolation:isolate}
.cv-mini-spark{position:absolute;z-index:2;top:20px;right:72px;font-size:32px;opacity:0;pointer-events:none;transform:scale(.35)}
.cv-mini-card.cv-feedback-correct{animation:cv-mini-glow .55s ease-out}
.cv-mini-card.cv-feedback-correct .cv-mini-spark{animation:cv-mini-spark .6s ease-out}
.cv-mini-card.cv-feedback-incorrect{animation:cv-mini-soft-shake .32s ease-in-out}
.cv-hero.cv-hero-cheer svg{animation:cv-hero-cheer .55s ease-out}
.cv-hero.cv-hero-encourage svg{animation:cv-hero-encourage .35s ease-out}
@keyframes cv-mini-glow{0%{box-shadow:0 12px 34px #2c694b75}35%{box-shadow:0 0 0 7px #a3df8899,0 12px 34px #2c694b75}100%{box-shadow:0 12px 34px #2c694b75}}
@keyframes cv-mini-spark{0%{opacity:0;transform:scale(.35) translateY(10px)}30%{opacity:1;transform:scale(1.35) translateY(-3px)}100%{opacity:0;transform:scale(.85) translateY(-20px)}}
@keyframes cv-mini-soft-shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px)}50%{transform:translateX(3px)}75%{transform:translateX(-2px)}}
@keyframes cv-hero-cheer{0%,100%{transform:translateY(0)}45%{transform:translateY(-12px)}}
@keyframes cv-hero-encourage{0%,100%{transform:rotate(0)}50%{transform:rotate(-4deg)}}
@media(prefers-reduced-motion:reduce){
 .cv-mini-card.cv-feedback-correct,.cv-mini-card.cv-feedback-incorrect,
 .cv-mini-card.cv-feedback-correct .cv-mini-spark,.cv-hero.cv-hero-cheer svg,.cv-hero.cv-hero-encourage svg{animation:none!important}
 .cv-mini-spark{display:none}
 .cv-mini-card.cv-feedback-correct{outline:3px solid #8dbd83}
 .cv-mini-card.cv-feedback-incorrect{outline:3px solid #d9aa82}
}
