:root{
  --ink:#253052;--muted:#74809d;--purple:#7457f5;--purple-dark:#5238c9;
  --mint:#35d1a2;--mint-dark:#18a97f;--coral:#ff6f78;--coral-dark:#db4d5a;
  --yellow:#ffd452;--sky:#59c8ff;--blue:#3f86f7;--cream:#fffaf0;--white:#fff;
  --line:#e5e8f3;--bg:#f7f8ff;--shadow:0 14px 35px rgba(50,49,100,.13);
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;font-family:ui-rounded,"SF Pro Rounded","Nunito",system-ui,-apple-system,sans-serif;color:var(--ink);background:linear-gradient(180deg,#f3fbff 0,#faf8ff 45%,#fff8ef 100%)}button,input,select{font:inherit}button{cursor:pointer}.ambient{position:fixed;border-radius:50%;filter:blur(3px);z-index:-1;opacity:.42}.a1{width:420px;height:420px;background:#c9eaff;right:-150px;top:80px}.a2{width:330px;height:330px;background:#ffe5a3;left:-130px;bottom:-40px}.hidden{display:none!important}
.topbar{height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(18px,5vw,70px);border-bottom:1px solid rgba(90,96,160,.12);background:rgba(255,255,255,.86);backdrop-filter:blur(16px);position:sticky;top:0;z-index:30}.brand{display:flex;align-items:center;gap:11px;border:0;background:none;font-weight:950;font-size:20px;color:var(--ink)}.logo-img{width:44px;height:44px;border-radius:14px;object-fit:cover;box-shadow:0 5px 0 #d9d5f6}.top-actions{display:flex;gap:10px;align-items:center}.streak,.xp{background:white;border:2px solid var(--line);padding:9px 13px;border-radius:15px;font-size:14px;box-shadow:0 4px 0 #e6e8f0}.streak b{color:var(--coral)}.xp b{color:var(--purple)}.avatar{border:0;background:linear-gradient(145deg,var(--coral),#ff9b67);color:white;width:40px;height:40px;border-radius:14px;font-weight:900;box-shadow:0 5px 0 var(--coral-dark)}
.screen{display:none;animation:screenIn .35s ease}.screen.active{display:block}@keyframes screenIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}.eyebrow{display:inline-block;font-size:11px;letter-spacing:1.5px;font-weight:950;color:var(--purple);background:#eeeaff;padding:6px 10px;border-radius:20px}.hero{min-height:610px;display:grid;grid-template-columns:1.03fr .97fr;align-items:center;max-width:1200px;margin:auto;padding:50px 40px}.hero h1{font-size:clamp(48px,6vw,76px);letter-spacing:-3.5px;line-height:.99;margin:16px 0 22px;max-width:650px}.hero h1 em{font-style:normal;color:var(--purple);position:relative}.hero h1 em:after{content:"";position:absolute;height:9px;left:0;right:0;bottom:-3px;border-radius:50%;background:var(--yellow);z-index:-1;transform:rotate(-2deg)}.hero p{font-size:18px;line-height:1.65;color:var(--muted);max-width:555px}.primary{border:0;color:white;background:linear-gradient(145deg,var(--purple),#8d6cff);font-weight:950;border-radius:16px;padding:15px 22px;box-shadow:0 7px 0 var(--purple-dark),0 12px 25px rgba(116,87,245,.2);transition:.16s;display:flex;align-items:center;justify-content:center;gap:12px}.primary:hover{transform:translateY(-2px);filter:saturate(1.1)}.primary:active{transform:translateY(5px);box-shadow:0 2px 0 var(--purple-dark)}.primary.big{font-size:17px;margin-top:28px}.primary:disabled{opacity:.6;cursor:wait}.trust{display:flex;gap:10px;flex-wrap:wrap;margin-top:29px}.trust span{background:#fff;border:1px solid var(--line);border-radius:18px;padding:7px 10px;color:var(--muted);font-size:12px;font-weight:750}.hero-art{height:470px;position:relative;display:grid;place-items:center}.halo{position:absolute;width:390px;height:390px;border-radius:48% 52% 55% 45%;background:linear-gradient(145deg,#c6f6e7,#aee5ff);animation:haloFloat 6s ease-in-out infinite}.halo:before,.halo:after{content:"";position:absolute;border-radius:50%;background:#fff;opacity:.8}.halo:before{width:80px;height:28px;left:-28px;top:65px}.halo:after{width:100px;height:35px;right:-40px;bottom:70px}.mascot-image{width:370px;height:370px;object-fit:cover;border-radius:46%;mix-blend-mode:multiply;position:relative;z-index:2;animation:mascotFloat 3.3s ease-in-out infinite}.ground{position:absolute;bottom:30px;width:390px;height:48px;border-radius:50%;background:#a9dcce;filter:blur(2px)}.hero-speech{position:absolute;z-index:4;right:8px;top:28px;background:white;color:var(--purple);border:2px solid #cfc4ff;border-radius:19px 19px 5px 19px;padding:11px 15px;font-size:13px;font-weight:950;box-shadow:0 6px 0 #ddd6ff;animation:speechPop .5s ease both}.hero-speech:after{content:"";position:absolute;right:18px;bottom:-10px;border:7px solid transparent;border-top-color:#cfc4ff;transform:rotate(-15deg)}@keyframes speechPop{from{opacity:0;transform:scale(.7) rotate(4deg)}to{opacity:1;transform:scale(1)}}.float-card{position:absolute;z-index:3;background:white;padding:12px 15px;border-radius:16px;font-size:11px;letter-spacing:.6px;font-weight:950;box-shadow:0 7px 0 #d8d7e9,0 16px 30px rgba(50,50,90,.13)}.fc1{left:-4px;top:90px;transform:rotate(-6deg);color:var(--coral)}.fc2{right:0;bottom:105px;transform:rotate(7deg);color:var(--purple)}@keyframes mascotFloat{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-12px) rotate(1deg)}}@keyframes haloFloat{0%,100%{transform:rotate(0)}50%{transform:rotate(6deg)}}
.how{max-width:1100px;margin:0 auto 80px;padding:0 30px}.how>h2{text-align:center;font-size:31px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.steps article{position:relative;background:white;border:2px solid var(--line);border-radius:24px;padding:24px;box-shadow:0 8px 0 #e6e8f1}.steps article>span{position:absolute;right:20px;color:#d4d9e8;font-weight:950}.steps h3{margin:13px 0 7px}.steps p{margin:0;color:var(--muted);font-size:14px}.step-icon{width:50px;height:50px;border-radius:16px;display:grid;place-items:center;font-size:23px;font-weight:950;color:white}.purple{background:linear-gradient(145deg,var(--purple),#9d83ff);box-shadow:0 5px 0 var(--purple-dark)}.coral{background:linear-gradient(145deg,var(--coral),#ff9a77);box-shadow:0 5px 0 var(--coral-dark)}.mint{background:linear-gradient(145deg,var(--mint),#6fe4bd);box-shadow:0 5px 0 var(--mint-dark)}
.narrow{max-width:760px;margin:45px auto;padding:0 24px}.section-head{display:flex;align-items:center;gap:18px;margin-bottom:17px}.section-head h2{margin:5px 0 0;font-size:32px}.progress-label{margin-left:auto;color:var(--muted);font-weight:850}.back{border:2px solid var(--line);background:white;border-radius:14px;width:45px;height:45px;font-size:20px;color:var(--ink);box-shadow:0 4px 0 #e5e7ef}.progress-track{height:11px;background:#e9eaf3;border-radius:10px;overflow:hidden}.progress-track i{display:block;height:100%;background:linear-gradient(90deg,var(--mint),var(--sky));border-radius:10px;transition:width .35s}.panel{margin-top:26px;background:white;border:2px solid var(--line);border-radius:25px;padding:28px;box-shadow:0 10px 0 #e7e8f2,var(--shadow)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:21px}.form-grid label>span,.goal>span{display:block;font-size:13px;font-weight:900;margin-bottom:9px}.form-grid select,.form-grid input{width:100%;padding:15px;border:2px solid var(--line);border-radius:14px;background:#fbfcff;color:var(--ink);outline:none}.form-grid select:focus,.form-grid input:focus{border-color:var(--purple);box-shadow:0 0 0 4px #eeeaff}.full{grid-column:1/-1;width:100%}.choice-row{display:flex;gap:10px}.choice-row button{flex:1;padding:12px;border:2px solid var(--line);background:white;border-radius:13px;font-weight:850;color:var(--muted);box-shadow:0 4px 0 #e8e9f0}.choice-row button.selected{background:var(--purple);border-color:var(--purple);color:white;box-shadow:0 4px 0 var(--purple-dark)}.tone-choice button:last-child.selected{background:linear-gradient(145deg,var(--coral),#ff9a67);border-color:var(--coral);box-shadow:0 4px 0 var(--coral-dark)}.tone-note{display:block;color:var(--muted);font-size:11px;line-height:1.45;margin-top:9px}.dropzone{border:2px dashed #bcb5e8;border-radius:21px;min-height:245px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:linear-gradient(145deg,#fbfaff,#f2fbff);transition:.2s}.dropzone.drag{border-color:var(--purple);background:#eeeaff}.dropzone input{display:none}.dropzone h3{margin:13px 0 4px}.dropzone p,.dropzone small{margin:2px;color:var(--muted)}.upload-orb{width:65px;height:65px;border-radius:21px;background:linear-gradient(145deg,var(--purple),#a689ff);box-shadow:0 6px 0 var(--purple-dark);color:white;font-size:32px;display:grid;place-items:center}.file-card{display:flex;align-items:center;gap:13px;margin:15px 0;padding:12px;border:2px solid var(--line);border-radius:15px}.file-card>div:nth-child(2){display:flex;flex-direction:column;overflow:hidden}.file-card b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-card small{color:var(--muted)}.file-card button{margin-left:auto;border:0;background:#f1f2f8;border-radius:50%;width:30px;height:30px}.file-icon{background:#ffe9eb;color:var(--coral);padding:12px 8px;border-radius:10px;font-size:11px;font-weight:950}.note{display:flex;gap:10px;background:#fff7d6;padding:14px;border-radius:14px;margin:18px 0;font-size:13px;line-height:1.5;border:1px solid #ffe899}
.center-screen{text-align:center;padding:130px 20px}.center-screen.active{display:block}.loader-mascot{width:115px;height:115px;margin:auto;position:relative;display:grid;place-items:center}.ring{position:absolute;inset:0;border:8px solid #e6e2ff;border-top-color:var(--purple);border-radius:50%;animation:spin 1s linear infinite}.mini-face{width:76px;height:68px;border-radius:45%;background:linear-gradient(145deg,var(--purple),#9379ff);color:white;display:grid;place-items:center;font-weight:950;font-size:20px}@keyframes spin{to{transform:rotate(360deg)}}.center-screen h2{font-size:30px;margin:24px 0 8px}.center-screen p{color:var(--muted)}.loading-bar{height:11px;background:#e9eaf2;max-width:350px;margin:25px auto;border-radius:20px;overflow:hidden}.loading-bar i{display:block;height:100%;width:40%;background:linear-gradient(90deg,var(--mint),var(--sky),var(--purple));border-radius:20px;animation:load 1.3s ease-in-out infinite}@keyframes load{0%{transform:translateX(-100%)}100%{transform:translateX(350%)}}
.dashboard-layout.active{display:grid}.dashboard-layout{grid-template-columns:315px 1fr;gap:36px;max-width:1200px;margin:34px auto;padding:0 24px;align-items:start}.side-card{position:sticky;top:102px;background:white;padding:24px;border:2px solid var(--line);border-radius:25px;box-shadow:0 9px 0 #e7e9f2,var(--shadow)}.date-badge{background:linear-gradient(135deg,var(--coral),#ff9a69);color:white;padding:14px;border-radius:17px;display:flex;align-items:baseline;gap:7px;box-shadow:0 6px 0 var(--coral-dark)}.date-badge b{font-size:29px}.date-badge span{font-weight:850}.side-card h3{font-size:21px;margin:20px 0 8px}.side-card>p{font-size:13px;line-height:1.5;color:var(--muted)}.guide-card{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#eefbff,#f3eeff);border:1px solid #d9e4f5;border-radius:17px;padding:11px;margin:17px 0}.guide-duo{display:flex;min-width:62px}.guide-duo img{width:58px;height:58px;border-radius:15px;object-fit:cover;background:white;border:2px solid white;box-shadow:0 3px 8px rgba(40,60,100,.12)}.guide-duo img+img{margin-left:-17px}.guide-card>div:last-child{display:flex;flex-direction:column}.guide-card small{font-size:8px;letter-spacing:1px;color:var(--purple);font-weight:950}.guide-card b{font-size:13px}.guide-card span{font-size:10px;color:var(--muted)}.readiness{margin:22px 0}.readiness>div:first-child{display:flex;justify-content:space-between;font-size:13px;margin-bottom:8px}.today{border-top:2px dashed var(--line);margin:20px 0;padding-top:18px;display:flex;flex-direction:column;gap:6px}.today span{font-size:10px;color:var(--purple);font-weight:950;letter-spacing:1px}.ghost{border:0;background:none;color:var(--muted);font-weight:850;margin-top:14px;padding:10px}.path-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.path-head h2{font-size:34px;margin:8px 0}.mode-pill{font-size:11px;background:#e8fff6;color:#148862;padding:8px 12px;border:1px solid #b8f0dc;border-radius:20px;font-weight:900}
/* Original adventure island learning map */
.learning-path{position:relative;min-height:900px;padding:95px 30px 100px;border-radius:34px;background:linear-gradient(rgba(255,255,255,.04),rgba(255,255,255,.04));border:3px solid white;box-shadow:0 14px 0 #c9e7ef,0 25px 60px rgba(54,112,140,.22);overflow:hidden}.learning-path:before{content:"";position:absolute;left:50%;top:110px;bottom:100px;width:15px;transform:translateX(-50%);border-left:8px dotted rgba(255,255,255,.9);filter:drop-shadow(0 3px 0 rgba(80,105,120,.18));z-index:0}.topic{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;margin:0 auto 40px;width:55%}.topic:nth-child(odd){transform:translateX(-28%)}.topic:nth-child(even){transform:translateX(28%)}.topic-header{display:flex;flex-direction:column;align-items:center;gap:9px}.topic-node{z-index:2;width:96px;height:96px;border-radius:50%;border:8px solid rgba(255,255,255,.9);display:grid;place-items:center;font-size:29px;color:white;background:linear-gradient(145deg,var(--mint),#69e6bc);box-shadow:0 9px 0 var(--mint-dark),0 13px 24px rgba(27,124,95,.25);transition:.2s}.topic-node:hover:not(:disabled){transform:scale(1.08) rotate(-4deg)}.topic.current .topic-node{background:linear-gradient(145deg,var(--purple),#a17fff);box-shadow:0 9px 0 var(--purple-dark),0 15px 25px rgba(89,57,190,.25);animation:nodePulse 1.8s ease-in-out infinite}.topic.locked .topic-node{background:linear-gradient(145deg,#aab2c5,#858da1);box-shadow:0 9px 0 #6e7689}.topic.completed .topic-node{background:linear-gradient(145deg,var(--yellow),#ffad3d);box-shadow:0 9px 0 #d68b24;color:white}.topic-copy{background:rgba(255,255,255,.94);padding:10px 16px;border-radius:17px;text-align:center;box-shadow:0 5px 0 rgba(105,120,140,.25);border:2px solid white;max-width:260px}.topic-copy h3{margin:0 0 4px;font-size:16px}.topic-copy span{font-size:11px;color:var(--muted);font-weight:750}.lessons{display:flex;gap:6px;margin-top:8px;justify-content:center;flex-wrap:wrap}.lesson-chip{border:1px solid rgba(255,255,255,.9);background:rgba(255,255,255,.89);padding:7px 9px;border-radius:11px;font-size:10px;font-weight:800;color:var(--muted);box-shadow:0 3px 0 rgba(85,100,120,.18)}.topic.locked{opacity:.82}@keyframes nodePulse{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-7px) scale(1.05)}}
.lesson-screen{max-width:900px;margin:25px auto;padding:0 25px}.lesson-top{display:flex;align-items:center;gap:20px}.lesson-progress{flex:1;height:13px;background:#e6e8f1;border-radius:20px;overflow:hidden}.lesson-progress i{display:block;height:100%;background:linear-gradient(90deg,var(--mint),var(--sky),var(--purple));border-radius:20px;transition:width .4s}.teaching-card{max-width:720px;margin:48px auto 90px;background:white;border:2px solid var(--line);border-radius:27px;padding:32px;box-shadow:0 10px 0 #e4e5f0,var(--shadow)}.teacher-row{display:flex;align-items:center;gap:18px;border-bottom:2px dashed var(--line);padding-bottom:20px;margin-bottom:22px}.lesson-duo{display:flex;min-width:112px;align-items:center}.teacher-row img{width:104px;height:104px;border-radius:25px;object-fit:cover;mix-blend-mode:multiply;background:#e8fbff;border:3px solid white;box-shadow:0 5px 12px rgba(50,70,110,.13)}.teacher-row img+img{margin-left:-28px;background:#fff2df}.teacher-row h2{font-size:30px;margin:6px 0 0}.lesson-intro{font-size:18px;line-height:1.65;margin:0 0 22px}.key-points{display:grid;gap:10px;margin:20px 0}.key-point{display:flex;gap:12px;align-items:flex-start;background:#f5f3ff;border-radius:15px;padding:14px;font-weight:750;line-height:1.45;border:1px solid #e4defe}.point-number{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:10px;background:var(--purple);color:white;font-size:12px;font-weight:950;box-shadow:0 3px 0 var(--purple-dark)}.example-box{border-left:5px solid var(--mint);background:#edfff8;padding:16px 18px;margin:22px 0;border-radius:0 15px 15px 0}.example-box span{font-size:10px;font-weight:950;letter-spacing:1.5px;color:var(--mint-dark)}.example-box p{margin:7px 0 0;line-height:1.55}.term-card{background:linear-gradient(135deg,var(--purple),#9877ff);color:white;border-radius:18px;padding:18px;margin:22px 0;box-shadow:0 6px 0 var(--purple-dark)}.term-card span{font-size:12px;font-weight:950;letter-spacing:1.3px}.term-card p{margin:7px 0 0;color:#f0ecff;line-height:1.5}.teaching-card>.primary{margin-top:25px}.quiz-card{position:relative;max-width:680px;margin:75px auto 130px;background:white;border:2px solid var(--line);border-radius:27px;padding:30px;box-shadow:0 10px 0 #e4e5ef,var(--shadow)}.challenge-head{display:flex;align-items:center;justify-content:space-between}.challenge-stats{display:flex;align-items:center;gap:7px}.challenge-stats>b{font-size:11px;color:var(--muted);background:#f0f2f8;padding:7px 10px;border-radius:20px}.combo-badge{color:#b85d00!important;background:#fff1c2!important;animation:comboPop .35s ease}.lives-display{white-space:nowrap;letter-spacing:2px}@keyframes comboPop{from{transform:scale(.55) rotate(-7deg)}to{transform:scale(1)}}.lives-display{white-space:nowrap;letter-spacing:2px}.quiz-card h2{font-size:31px;line-height:1.25;margin:15px 0 28px}.answers{display:grid;grid-template-columns:1fr 1fr;gap:12px}.answer{border:2px solid var(--line);background:white;border-radius:16px;padding:17px;text-align:left;font-weight:850;color:var(--ink);box-shadow:0 5px 0 #dfe2ec;transition:.16s}.answer:hover{border-color:var(--purple);background:#f6f3ff;transform:translateY(-2px)}.answer.correct{border-color:var(--mint);background:#eafff7;box-shadow:0 5px 0 var(--mint-dark)}.answer.wrong{border-color:var(--coral);background:#fff0f1;box-shadow:0 5px 0 var(--coral-dark)}.quiz-tools{display:flex;gap:9px;margin-top:20px}.tool-button{border:2px solid #dedcf0;background:#f8f6ff;color:var(--purple);padding:10px 13px;border-radius:13px;font-weight:900;box-shadow:0 3px 0 #ded9f4}.tool-button:hover{background:#eeeaff}.hint-box{margin-top:13px;background:#fff7d6;border:1px solid #ffe28b;border-radius:14px;padding:13px;font-size:13px;line-height:1.5;animation:screenIn .25s ease}.source{margin-top:20px;color:var(--muted);font-size:12px}.feedback{position:fixed;bottom:0;left:0;right:0;background:#eafff7;border-top:2px solid #b7ebd9;padding:20px max(25px,calc((100% - 800px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px;z-index:40}.feedback b{color:#168461;font-size:19px}.feedback p{margin:5px 0;color:#487569}.reaction-mascot{position:absolute;right:-205px;top:-20px;width:180px;height:180px;border:5px solid white;border-radius:50%;background:linear-gradient(145deg,#e7fbff,#f0eaff);box-shadow:0 8px 0 #c9dbea,0 14px 30px rgba(40,72,110,.18);display:grid;place-items:center;overflow:visible}.reaction-mascot img{width:166px;height:166px;object-fit:cover;border-radius:50%;mix-blend-mode:multiply;animation:mascotBreathe 2.6s ease-in-out infinite;transition:opacity .18s,transform .25s}.mascot-bubble{position:absolute;top:-45px;right:4px;z-index:2;background:white;border:2px solid var(--purple);color:var(--purple);border-radius:16px 16px 3px 16px;padding:9px 12px;font-size:11px;font-weight:950;white-space:nowrap;box-shadow:0 4px 0 #dcd5ff}.reaction-mascot.happy{animation:mascotCelebrate .65s ease both}.reaction-mascot.happy img{animation:happyBounce .75s ease 2}.reaction-mascot.encourage{animation:gentleTilt .7s ease both}.reaction-mascot.encourage img{animation:gentleNod 1.1s ease 2}@keyframes mascotBreathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-5px) scale(1.015)}}@keyframes mascotCelebrate{0%{transform:scale(.8) rotate(-8deg)}55%{transform:scale(1.12) rotate(6deg)}100%{transform:scale(1)}}@keyframes happyBounce{0%,100%{transform:translateY(0)}35%{transform:translateY(-15px) rotate(-3deg)}70%{transform:translateY(-5px) rotate(3deg)}}@keyframes gentleTilt{0%{transform:rotate(0)}45%{transform:rotate(-7deg)}100%{transform:rotate(0)}}@keyframes gentleNod{0%,100%{transform:translateY(0)}50%{transform:translateY(7px)}}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,100px);background:var(--ink);color:white;padding:12px 18px;border-radius:14px;z-index:99;opacity:0;transition:.25s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1100px){.reaction-mascot{position:relative;right:auto;top:auto;width:135px;height:135px;margin:0 0 25px auto}.reaction-mascot img{width:123px;height:123px}.mascot-bubble{top:-30px}}
@media(max-width:800px){.topbar{height:66px;padding:0 16px}.brand{font-size:17px}.logo-img{width:39px;height:39px}.streak,.xp{padding:7px;font-size:12px}.avatar{display:none}.hero{grid-template-columns:1fr;padding:45px 22px 20px}.hero h1{font-size:49px;letter-spacing:-2.5px}.hero-art{height:420px}.mascot-image{width:340px;height:340px}.halo{width:350px;height:350px}.steps{grid-template-columns:1fr}.how{margin-top:30px}.form-grid{grid-template-columns:1fr}.dashboard-layout.active{display:block}.side-card{position:static;margin-bottom:30px}.path-head{align-items:flex-start}.path-head h2{font-size:27px}.mode-pill{white-space:nowrap}.learning-path{padding-left:10px;padding-right:10px}.topic{width:70%}.answers{grid-template-columns:1fr}.quiz-card{margin-top:50px}.feedback{padding:18px;align-items:flex-end}.feedback p{font-size:12px}.feedback .primary{min-width:120px}.narrow{margin-top:25px}.panel{padding:19px}.trust{gap:8px}}
@media(max-width:600px){.teaching-card{margin-top:30px;padding:21px}.teacher-row img{width:72px;height:72px}.teacher-row h2{font-size:23px}.lesson-intro{font-size:16px}.reaction-mascot{width:108px;height:108px;margin-right:7px}.reaction-mascot img{width:98px;height:98px}.mascot-bubble{font-size:10px;top:-28px}.quiz-card{margin-top:65px;padding:21px}.learning-path{min-height:780px;border-radius:25px}.topic-node{width:78px;height:78px;border-width:6px}.topic-copy{padding:8px 11px}.lessons{display:none}}
@media(max-width:430px){.xp{display:none}.hero-art{transform:scale(.85);margin:-25px}.choice-row{flex-direction:column}.section-head h2{font-size:26px}.path-head{display:block}.mode-pill{display:inline-block}.feedback{flex-direction:column;align-items:stretch}.feedback .primary{width:100%}.topic{width:76%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.mascot-image,.halo,.topic.current .topic-node,.reaction-mascot,.reaction-mascot img{animation:none!important}}

/* Core interactive quiz pack */
.answers.true_false{grid-template-columns:1fr 1fr}.answers.true_false .answer{text-align:center;font-size:18px;padding:22px}.answers.fill_blank{display:flex;flex-wrap:wrap}.answers.fill_blank .answer{flex:1 1 42%;text-align:center;background:#fff9df;border-color:#f1d96e}.matching-game{display:grid;grid-template-columns:1fr 1fr;gap:14px}.match-column{display:grid;gap:10px}.match-btn{min-height:58px;border:2px solid var(--line);background:#fff;border-radius:15px;padding:12px;font-weight:850;color:var(--ink);box-shadow:0 5px 0 #dfe2ec;transition:.16s}.match-btn:hover,.match-btn.selected{border-color:var(--purple);background:#f2edff;transform:translateY(-2px)}.match-btn.matched{border-color:var(--mint);background:#eafff7;box-shadow:0 5px 0 var(--mint-dark)}.match-btn.wrong{border-color:var(--coral);background:#fff0f1;box-shadow:0 5px 0 var(--coral-dark)}.ordering-game{display:block}.order-slots{min-height:105px;border:2px dashed #bfb8e9;background:#f8f6ff;border-radius:17px;padding:13px;display:flex;flex-direction:column;gap:7px;margin-bottom:14px}.order-slots>span{margin:auto;color:var(--muted);font-size:13px}.order-slots b{background:white;border:1px solid #ded9f5;border-radius:10px;padding:8px;font-size:12px}.order-pool{display:grid;grid-template-columns:1fr 1fr;gap:9px}.order-btn{border:2px solid var(--line);background:white;border-radius:14px;padding:13px;font-weight:850;color:var(--ink);box-shadow:0 4px 0 #dfe2ec}.order-btn:hover{border-color:var(--purple);background:#f5f2ff}.order-btn:disabled{opacity:.38;box-shadow:none}.ordering-game>#orderReset{margin-top:13px}@media(max-width:600px){.matching-game{gap:8px}.match-btn{font-size:12px;padding:9px;min-height:52px}.order-pool{grid-template-columns:1fr}.answers.fill_blank .answer{flex-basis:100%}}

/* Long, vertically scrollable adventure map */
.path-area{min-width:0}
.map-container{
  position:relative;
  height:calc(100vh - 150px);
  min-height:620px;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scroll-behavior:smooth;
  scrollbar-gutter:stable;
  border:3px solid #fff;
  border-radius:34px;
  background:#bdebf3;
  box-shadow:0 14px 0 #c9e7ef,0 25px 60px rgba(54,112,140,.22);
}
.map-container::-webkit-scrollbar{width:11px}
.map-container::-webkit-scrollbar-track{background:rgba(255,255,255,.42);border-radius:20px}
.map-container::-webkit-scrollbar-thumb{background:linear-gradient(var(--mint),var(--purple));border:3px solid rgba(255,255,255,.65);border-radius:20px}
.learning-path{
  min-height:200vh;
  height:auto;
  width:100%;
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:visible;
  display:flex;
  flex-direction:column;
  justify-content:space-around;
  gap:90px;
  padding:130px 30px 150px;
  background-image:linear-gradient(rgba(255,255,255,.03),rgba(255,255,255,.03));
  background-position:center top;
  background-size:100% auto;
  background-repeat:repeat-y;
  background-attachment:local;
}
.learning-path:before{top:150px;bottom:150px}
.learning-path .topic{flex:0 0 auto;margin:0 auto;min-height:150px}
@media(max-width:800px){
  .map-container{height:74dvh;min-height:540px;border-radius:25px}
  .learning-path{min-height:220vh;padding:110px 10px 130px;gap:75px;background-size:auto 1000px}
}

/* Smart Breakdown — interactive concept composition */
.smart-breakdown{margin:25px 0;background:linear-gradient(145deg,#fbfaff,#f0fbff);border:2px solid #dddaf5;border-radius:22px;padding:20px;box-shadow:0 7px 0 #e5e3f1}.breakdown-head{display:flex;align-items:center;justify-content:space-between}.breakdown-head span,.reveal-head span,.reality-card>span{font-size:10px;letter-spacing:1.3px;font-weight:950;color:var(--purple)}.breakdown-head h3{font-size:20px;margin:5px 0}.breakdown-head>b{font-size:30px}.breakdown-display{background:linear-gradient(135deg,var(--ink),#414c73);color:white;border-radius:17px;padding:18px;text-align:center;font-size:clamp(20px,4vw,31px);font-weight:950;letter-spacing:.3px;margin:15px 0;box-shadow:0 6px 0 #131a32}.breakdown-parts{display:flex;gap:8px;flex-wrap:wrap}.part-chip{border:2px solid #ddd9f4;background:white;color:var(--purple);border-radius:13px;padding:9px 12px;font-size:12px;font-weight:900;box-shadow:0 3px 0 #dedaf1}.part-chip.active{background:var(--purple);border-color:var(--purple);color:white;box-shadow:0 3px 0 var(--purple-dark)}.part-detail{margin-top:11px;background:white;border:1px solid #e1e4ed;border-left:5px solid var(--purple);border-radius:0 14px 14px 0;padding:13px 15px;min-height:76px}.part-detail b{font-size:14px}.part-detail p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.5}.reveal-head{display:flex;justify-content:space-between;margin:22px 0 9px}.reveal-head small{color:var(--muted);font-weight:850}.reveal-steps{display:grid;gap:8px}.reveal-step{border-radius:14px;padding:12px 14px;transition:.25s}.reveal-step.revealed{background:#fff;border:1px solid #dfe3ed}.reveal-step.revealed>b{color:var(--mint-dark)}.reveal-step p{margin:5px 0 0;font-size:13px;line-height:1.5}.reveal-step.locked{background:#e8e9f0;color:#9197a9;filter:saturate(.3)}.reveal-button{width:100%;margin-top:10px;border:2px dashed #bcb4eb;background:#f4f1ff;color:var(--purple);border-radius:14px;padding:11px;font-weight:900}.reveal-button:hover{background:#eae5ff}.reality-card{margin-top:20px;background:linear-gradient(135deg,#fff6c9,#fff0d8);border:1px solid #ffe08a;border-radius:17px;padding:17px;position:relative;overflow:hidden}.reality-card:after{content:'✦';position:absolute;right:13px;top:8px;font-size:45px;color:rgba(255,184,45,.22)}.reality-card h4{font-size:17px;margin:7px 0 5px}.reality-card p{font-size:14px;line-height:1.55;margin:0 0 8px}.reality-card small{display:block;color:#8b6a29;line-height:1.4;font-weight:750}@media(max-width:600px){.smart-breakdown{padding:15px;margin-left:-4px;margin-right:-4px}.breakdown-display{font-size:21px;padding:15px}.part-chip{flex:1 1 42%}}

/* Multiple learning paths and lightweight visual question cues */
.course-library{margin:16px 0;background:#f8f7ff;border:1px solid #e0ddf4;border-radius:16px;padding:12px}.course-library>div:first-child{display:flex;align-items:center;justify-content:space-between}.course-library small{font-size:9px;letter-spacing:1px;color:var(--purple);font-weight:950}.course-library b{font-size:11px;color:var(--muted)}.course-tabs{display:flex;gap:7px;overflow-x:auto;padding:9px 1px 4px}.course-tab{flex:0 0 auto;max-width:160px;border:2px solid #e0e2eb;background:white;color:var(--muted);border-radius:12px;padding:8px 10px;font-size:10px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 3px 0 #e1e3eb}.course-tab.active{background:var(--purple);border-color:var(--purple);color:white;box-shadow:0 3px 0 var(--purple-dark)}.question-visual{display:flex;align-items:center;gap:13px;background:linear-gradient(135deg,#eefbff,#f6f0ff);border:1px solid #d7e9f3;border-radius:17px;padding:13px 16px;margin-bottom:16px}.question-visual b{font-size:35px;letter-spacing:5px;filter:drop-shadow(0 3px 2px rgba(40,60,100,.12))}.question-visual span{font-size:12px;line-height:1.4;color:var(--muted);font-weight:800}@media(max-width:600px){.question-visual b{font-size:28px}.question-visual{padding:11px}}

/* Real-app account, usage, path management */
.profile-screen{max-width:1050px;margin:35px auto;padding:0 24px}.profile-head{display:flex;align-items:center;gap:16px;margin-bottom:25px}.profile-head h2{margin:5px 0 2px}.profile-head p{margin:0;color:var(--muted);font-size:12px}.profile-avatar{width:72px;height:72px;border-radius:23px;background:linear-gradient(145deg,#e7fbff,#eee8ff);display:grid;place-items:center;font-size:34px;border:2px solid white;box-shadow:0 6px 0 #dce1ee}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.account-card{background:white;border:2px solid var(--line);border-radius:22px;padding:21px;box-shadow:0 7px 0 #e7e9f2}.account-card h3{margin:0 0 17px}.account-card label{display:block;font-size:12px;font-weight:850;margin:12px 0}.account-card input,.account-card select{display:block;width:100%;margin-top:6px;border:2px solid var(--line);border-radius:12px;padding:11px;background:#fbfcff}.link-account,.help-row{width:100%;border:1px solid var(--line);background:#f7f8fc;border-radius:12px;padding:11px;margin-top:10px;text-align:left;color:var(--muted);font-weight:800}.help-row{display:flex;justify-content:space-between;text-decoration:none;align-items:center}.plan-row,.usage-meter>div:first-child,.card-title{display:flex;justify-content:space-between;align-items:center}.plan-row{background:#eeeaff;color:var(--purple);padding:13px;border-radius:13px}.usage-meter{margin-top:18px}.muted{color:var(--muted);font-size:11px}.profile-paths{grid-column:1/-1}.profile-path-item{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:14px;padding:11px;margin:8px 0}.profile-path-item>div{flex:1;min-width:0}.profile-path-item b,.profile-path-item small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-path-item small{color:var(--muted)}.path-action{border:0;border-radius:10px;padding:8px;font-weight:850}.path-open{background:#eeeaff;color:var(--purple)}.path-delete{background:#fff0f1;color:var(--coral-dark)}.path-restore{background:#eafff7;color:var(--mint-dark)}.setting-toggle{display:flex!important;align-items:center;justify-content:space-between}.setting-toggle input{width:auto;margin:0}.danger-card{border-color:#ffd5d8}.danger-button{width:100%;border:1px solid #ffc6cb;background:#fff1f2;color:var(--coral-dark);border-radius:12px;padding:11px;font-weight:850}@media(max-width:750px){.profile-grid{grid-template-columns:1fr}.profile-paths{grid-column:auto}.profile-head{align-items:flex-start}.profile-avatar{width:58px;height:58px}}

/* Home account status, expandable onboarding, energy modal */
.user-mini{display:flex;flex-direction:column;align-items:flex-end}.user-mini>span{font-size:12px;font-weight:950;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-mini small{font-size:9px;color:var(--muted)}.heart-pill{border:2px solid #ffe0e2;background:white;border-radius:15px;padding:7px 10px;box-shadow:0 4px 0 #f3d8da;display:flex;flex-direction:column;align-items:center}.heart-pill>span{font-size:11px;white-space:nowrap}.heart-pill small{font-size:8px;color:var(--coral-dark);font-weight:850}.how-subtitle{text-align:center;color:var(--muted);font-size:13px}.expand-step{cursor:pointer;transition:.25s}.expand-step:hover{transform:translateY(-3px)}.step-detail{display:none;margin-top:15px;border-top:2px dashed var(--line);padding-top:13px}.step-detail b{font-size:13px}.step-detail ul{padding-left:18px;margin:9px 0;color:var(--muted);font-size:12px;line-height:1.7}.expand-step.expanded .step-detail{display:block;animation:screenIn .25s ease}.step-toggle{border:0;background:none;color:var(--purple);font-size:11px;font-weight:900;padding:12px 0 0}.modal-backdrop{position:fixed;inset:0;background:rgba(25,30,55,.55);backdrop-filter:blur(5px);z-index:100;display:grid;place-items:center;padding:20px}.energy-modal{width:min(460px,100%);background:white;border-radius:27px;padding:27px;box-shadow:0 25px 80px rgba(20,20,50,.3);position:relative}.modal-close{position:absolute;right:16px;top:14px;border:0;background:#eff1f6;width:34px;height:34px;border-radius:50%;font-size:21px}.energy-icon{font-size:48px}.energy-modal h2{margin:5px 0}.energy-modal>p{color:var(--muted)}.energy-option{display:flex;align-items:center;justify-content:space-between;gap:12px;border:2px solid var(--line);border-radius:16px;padding:13px;margin:10px 0}.energy-option>div{display:flex;flex-direction:column}.energy-option span{font-size:11px;color:var(--muted);margin-top:4px}.mini-buy{border:0;background:var(--purple);color:white;border-radius:11px;padding:9px 12px;font-weight:900}.mini-buy.secondary{background:var(--mint-dark)}.billing-preview{background:#f8f7fb}.energy-modal>small{display:block;text-align:center;color:var(--muted);margin-top:12px}@media(max-width:700px){.user-mini{display:none}.heart-pill>span{font-size:9px}.heart-pill{padding:6px}.top-actions{gap:6px}}
@media(max-width:700px){.user-mini{display:flex}.user-mini>span{font-size:10px;max-width:72px}.user-mini small{display:none}}

/* Full My Paths library */
.paths-screen{max-width:1100px;margin:35px auto;padding:0 24px}.paths-top{display:flex;align-items:center;gap:16px}.paths-top>div{flex:1}.paths-top h2{font-size:34px;margin:6px 0}.paths-top p{margin:0;color:var(--muted)}.paths-toolbar{display:grid;grid-template-columns:1fr 220px 180px;gap:10px;margin:25px 0}.paths-toolbar input,.paths-toolbar select{border:2px solid var(--line);background:white;border-radius:14px;padding:12px;color:var(--ink)}.path-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:22px}.path-stats>div{background:white;border:2px solid var(--line);border-radius:17px;padding:15px;display:flex;flex-direction:column;box-shadow:0 5px 0 #e7e9f1}.path-stats b{font-size:23px;color:var(--purple)}.path-stats span{font-size:10px;color:var(--muted);font-weight:800}.all-paths-list{max-height:68vh;overflow-y:auto;padding:3px 12px 20px 3px;scrollbar-gutter:stable}.journey-card{background:white;border:2px solid var(--line);border-radius:22px;padding:20px;margin-bottom:15px;box-shadow:0 7px 0 #e5e7f0;display:grid;grid-template-columns:1fr auto;gap:18px}.journey-card-main{min-width:0}.journey-card h3{font-size:20px;margin:7px 0}.journey-meta{display:flex;gap:8px;flex-wrap:wrap}.journey-meta span{background:#f2f3f8;color:var(--muted);font-size:10px;font-weight:800;border-radius:15px;padding:6px 9px}.journey-progress-head{display:flex;justify-content:space-between;font-size:11px;font-weight:850;margin:16px 0 7px}.island-mini-row{display:flex;gap:7px;margin-top:14px;overflow:hidden}.island-mini{width:31px;height:31px;flex:0 0 31px;border-radius:50%;display:grid;place-items:center;background:#e5e7ee;color:#8b91a1;font-size:11px;font-weight:950}.island-mini.completed{background:var(--mint);color:white}.island-mini.current{background:var(--purple);color:white;box-shadow:0 3px 0 var(--purple-dark)}.journey-actions{width:145px;display:flex;flex-direction:column;justify-content:center;gap:9px}.journey-actions button{width:100%}.empty-paths{text-align:center;background:white;border:2px dashed #d9dbe6;border-radius:22px;padding:55px 20px}.empty-paths b{font-size:45px}.empty-paths h3{margin:12px 0 6px}@media(max-width:750px){.paths-top{align-items:flex-start;flex-wrap:wrap}.paths-top .primary{width:100%}.paths-toolbar{grid-template-columns:1fr}.path-stats{grid-template-columns:1fr 1fr}.journey-card{grid-template-columns:1fr}.journey-actions{width:100%;flex-direction:row}.all-paths-list{max-height:none;overflow:visible}}
/* Keep Цоохор crisply in front of the green hero halo */
.hero-art{isolation:isolate}.hero-art .halo{z-index:0}.hero-art .ground{z-index:1}.hero-art .mascot-image{z-index:5;mix-blend-mode:normal!important;filter:drop-shadow(0 18px 16px rgba(39,74,91,.22))}.hero-art .hero-speech,.hero-art .float-card{z-index:7}.reaction-mascot img,.teacher-row img,.guide-duo img{mix-blend-mode:normal!important}

/* Цоохор analyzes the uploaded material */
.analyzer-stage{width:210px;height:210px;margin:0 auto;position:relative;display:grid;place-items:center}.analyzer-stage img{position:relative;z-index:3;width:175px;height:175px;object-fit:contain;filter:drop-shadow(0 13px 10px rgba(63,72,120,.2));animation:analyzerThink 2.3s ease-in-out infinite}.scan-orbit{position:absolute;inset:4px;border-radius:50%;border:7px solid #e9e4ff;border-top-color:var(--purple);border-right-color:var(--mint);animation:spin 2.1s linear infinite}.scan-orbit:after{content:'';position:absolute;inset:15px;border:2px dashed rgba(116,87,245,.25);border-radius:50%;animation:spin 5s linear infinite reverse}.analysis-particle{position:absolute;z-index:5;background:white;border:2px solid var(--line);border-radius:12px;padding:6px;font-size:18px;box-shadow:0 5px 0 #e1e3ec;animation:particleFloat 1.8s ease-in-out infinite}.analysis-particle.p1{left:-5px;top:30px;transform:rotate(-8deg)}.analysis-particle.p2{right:0;top:25px;color:var(--yellow);animation-delay:.35s}.analysis-particle.p3{right:-10px;bottom:28px;animation-delay:.7s}.loading-note{display:block;color:var(--muted);font-size:11px;margin-top:15px}@keyframes analyzerThink{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-8px) rotate(1.5deg)}}@keyframes particleFloat{0%,100%{margin-top:0}50%{margin-top:-9px}}@media(max-width:600px){.analyzer-stage{width:185px;height:185px}.analyzer-stage img{width:150px;height:150px}}

/* XP dashboard and dark theme */
.xp{font-family:inherit}.xp-total-card{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#fff4bd,#ffe4a0);border-radius:16px;padding:15px;margin:15px 0}.xp-total-card b{font-size:28px;color:#a66a00}.xp-subject-row{margin:9px 0}.xp-subject-row>div{display:flex;justify-content:space-between;font-size:12px;margin-bottom:5px}.xp-history{max-height:150px;overflow-y:auto}.xp-history-row{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:9px 2px;font-size:11px}.xp-history-row b.positive{color:var(--mint-dark)}.xp-history-row b.negative{color:var(--coral-dark)}
html[data-theme="dark"]{--ink:#f1f3ff;--muted:#a8b0c8;--bg:#101321;--white:#191d2f;--line:#303750;--pale:#252a41;--shadow:0 18px 50px rgba(0,0,0,.3)}html[data-theme="dark"] body{background:linear-gradient(180deg,#101827,#151426 55%,#1b1520)}html[data-theme="dark"] .topbar{background:rgba(18,22,38,.92)}html[data-theme="dark"] .panel,html[data-theme="dark"] .steps article,html[data-theme="dark"] .side-card,html[data-theme="dark"] .teaching-card,html[data-theme="dark"] .quiz-card,html[data-theme="dark"] .account-card,html[data-theme="dark"] .journey-card,html[data-theme="dark"] .energy-modal,html[data-theme="dark"] .profile-path-item,html[data-theme="dark"] .course-library{background:#191d2f}html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] .answer,html[data-theme="dark"] .match-btn,html[data-theme="dark"] .order-btn,html[data-theme="dark"] .course-tab{background:#141829;color:var(--ink)}html[data-theme="dark"] .key-point,html[data-theme="dark"] .question-visual,html[data-theme="dark"] .smart-breakdown{background:#20263b}html[data-theme="dark"] .part-detail,html[data-theme="dark"] .reveal-step.revealed{background:#171b2c}html[data-theme="dark"] .reality-card{background:#352d1c;color:#fff1be}html[data-theme="dark"] .ambient{opacity:.1}html[data-theme="dark"] .help-row,html[data-theme="dark"] .link-account{background:#141829;color:var(--muted)}

/* Dark-mode contrast fixes for onboarding and file upload */
html[data-theme="dark"] .dropzone{
  background:linear-gradient(145deg,#20263a,#1b2235);
  border-color:#65739b;
  color:#f5f7ff;
}
html[data-theme="dark"] .dropzone:hover,
html[data-theme="dark"] .dropzone.drag{
  background:linear-gradient(145deg,#292847,#202d43);
  border-color:#9b89ff;
}
html[data-theme="dark"] .dropzone h3{color:#f5f7ff}
html[data-theme="dark"] .dropzone p{color:#c4cce1}
html[data-theme="dark"] .dropzone small{color:#aeb8d3}
html[data-theme="dark"] .dropzone u{color:#b8a8ff;text-decoration-color:#8d76ff}
html[data-theme="dark"] .upload-orb{color:#fff;background:linear-gradient(145deg,#7658f5,#9678ff);box-shadow:0 6px 0 #4d36bb}
html[data-theme="dark"] .file-card{background:#171c2e;border-color:#353d58;color:#f4f6ff}
html[data-theme="dark"] .file-card small{color:#aeb7d0}
html[data-theme="dark"] .file-card button{background:#30374d;color:#fff}
html[data-theme="dark"] .file-icon{background:#4a2832;color:#ffb7bd}
html[data-theme="dark"] .note{background:#3b3218;border-color:#776322;color:#ffe9a3}
html[data-theme="dark"] .note span{color:#ffe9a3}
html[data-theme="dark"] .section-head h2{color:#f5f6ff}
html[data-theme="dark"] .section-head .back{background:#1d2336;border-color:#3a435e;color:#f4f6ff;box-shadow:0 4px 0 #0b0e18}
html[data-theme="dark"] .progress-label{color:#b4bdd5}
html[data-theme="dark"] .panel{border-color:#343d57}
html[data-theme="dark"] .form-grid label>span,
html[data-theme="dark"] .goal>span{color:#e7eaff}
html[data-theme="dark"] .choice-row button{background:#171c2d;border-color:#37405a;color:#bbc3d9;box-shadow:0 4px 0 #0d101d}
html[data-theme="dark"] .choice-row button.selected{background:var(--purple);border-color:#9d88ff;color:#fff;box-shadow:0 4px 0 #4a32b7}

/* Distinct aerial landscapes: 4–6 islands per world, never repeat one background */
.learning-path{display:block;min-height:0;padding:0;background:none!important;background-image:none!important}
.learning-path:before{display:none}
.world-zone{position:relative;min-height:1400px;padding:115px 25px 120px;background-position:center bottom;background-size:cover;background-repeat:no-repeat;isolation:isolate}
.world-zone:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.06),transparent 20%,transparent 80%,rgba(15,40,45,.12));z-index:-1;pointer-events:none}
.world-zone+.world-zone{border-top:0}
.world-label{position:sticky;top:18px;z-index:8;width:max-content;max-width:85%;margin:0 auto 75px;background:rgba(255,255,255,.92);backdrop-filter:blur(9px);border:3px solid white;border-radius:20px;padding:11px 20px;text-align:center;box-shadow:0 7px 0 rgba(62,82,95,.22)}
.world-label small{font-size:9px;letter-spacing:1.4px;color:var(--purple);font-weight:950}.world-label h3{margin:3px 0;font-size:18px}.world-label span{font-size:10px;color:var(--muted);font-weight:800}
.world-trail{position:relative;min-height:1100px;display:flex;flex-direction:column;justify-content:space-around;gap:95px}
.world-trail:before{content:'';position:absolute;left:50%;top:30px;bottom:30px;border-left:9px dotted rgba(255,255,255,.9);filter:drop-shadow(0 3px 0 rgba(50,75,80,.18));transform:translateX(-50%)}
.world-trail .topic{position:relative;z-index:2;flex:0 0 auto;margin:0 auto;width:55%;min-height:150px}
.world-trail .topic:nth-child(odd){transform:translateX(-28%)}.world-trail .topic:nth-child(even){transform:translateX(28%)}
html[data-theme="dark"] .world-label{background:rgba(24,29,47,.94);border-color:#353e58;color:var(--ink)}
@media(max-width:800px){.world-zone{min-height:1200px;padding:95px 10px 100px;background-position:center bottom}.world-trail{min-height:970px;gap:65px}.world-trail .topic{width:72%}.world-label{top:10px;margin-bottom:55px}}
.save-status{display:block;text-align:center;color:var(--mint-dark);font-size:10px;font-weight:850;margin-top:10px}.save-status.unsaved{color:var(--coral-dark)}
/* Broader dark-mode surface consistency */
html[data-theme="dark"] .profile-head,html[data-theme="dark"] .paths-top{color:var(--ink)}
html[data-theme="dark"] .path-stats>div,html[data-theme="dark"] .empty-paths,html[data-theme="dark"] .date-badge,html[data-theme="dark"] .today{border-color:#343c56}
html[data-theme="dark"] .paths-toolbar input,html[data-theme="dark"] .paths-toolbar select{background:#171c2d;border-color:#343d56;color:var(--ink)}
html[data-theme="dark"] .journey-meta span,html[data-theme="dark"] .challenge-stats>b{background:#252b40;color:#c1c9dc}
html[data-theme="dark"] .order-slots,html[data-theme="dark"] .hint-box{background:#20253a;border-color:#4b5573;color:var(--ink)}
html[data-theme="dark"] .term-card{background:linear-gradient(135deg,#4d38af,#6d53d9)}
html[data-theme="dark"] .feedback{background:#1b2f2b!important;border-color:#31574e}html[data-theme="dark"] .feedback b,html[data-theme="dark"] .feedback p{color:#d9fff2}
html[data-theme="dark"] .modal-backdrop{background:rgba(2,4,12,.72)}html[data-theme="dark"] .energy-option,html[data-theme="dark"] .plan-row{background:#20263a;border-color:#37405b;color:var(--ink)}
.camera-row{display:flex;align-items:center;gap:10px;margin:14px 0}.camera-row span{font-size:11px;color:var(--muted)}@media(max-width:600px){.camera-row{align-items:stretch;flex-direction:column}.camera-row span{text-align:center}}
.premium-tool{background:linear-gradient(135deg,#fff3c4,#ffe0a0);border-color:#f1ca55;color:#8b5b00;box-shadow:0 3px 0 #d8ad35}.hint-box{white-space:pre-line}
html[data-theme="dark"] .premium-tool{background:linear-gradient(135deg,#3a3118,#4c3b18);border-color:#7d6428;color:#ffe69a}

/* Prevent profile/avatar, XP and hearts from overlapping in the header */
.topbar{gap:14px}.top-actions{min-width:0;flex-shrink:1;justify-content:flex-end}.top-actions>*{flex-shrink:0}.xp,.heart-pill{white-space:nowrap}.user-mini{min-width:0}.avatar{position:relative;z-index:2}
@media(max-width:820px){.topbar{padding-left:12px;padding-right:12px;gap:8px}.top-actions{gap:6px}.user-mini>span{max-width:62px}.xp{padding:7px 8px}.heart-pill{padding:6px 8px}.brand{gap:7px}}
@media(max-width:620px){.topbar{display:grid;grid-template-columns:auto 1fr;height:auto;min-height:66px;padding-top:7px;padding-bottom:7px}.top-actions{width:100%;overflow:visible}.user-mini>span{max-width:52px}.xp-label{display:none}.xp{font-size:11px}.heart-pill>span{font-size:11px}.heart-pill small{font-size:7px}.avatar{width:34px;height:34px}.logo-img{width:35px;height:35px}.brand{font-size:15px}}
@media(max-width:430px){.brand>span{display:none}.topbar{grid-template-columns:40px 1fr}.user-mini>span{max-width:55px}.top-actions{justify-content:flex-end}.xp,.heart-pill{box-shadow:none}}
.usage-facts{display:grid;grid-template-columns:1fr auto;gap:9px;margin-top:16px;font-size:11px}.usage-facts span{color:var(--muted)}.billing-line{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:11px 2px;font-size:12px}
/* Place each island directly on a stopping point in its landscape */
.world-trail{display:block;min-height:1100px}.world-trail .topic{position:absolute;width:55%;margin:0}.world-trail .topic:nth-child(1){top:4%;left:5%;transform:none}.world-trail .topic:nth-child(2){top:23%;right:2%;left:auto;transform:none}.world-trail .topic:nth-child(3){top:43%;left:7%;transform:none}.world-trail .topic:nth-child(4){top:63%;right:3%;left:auto;transform:none}.world-trail .topic:nth-child(5){top:82%;left:23%;transform:none}.world-trail:before{left:50%;top:8%;bottom:7%;transform:translateX(-50%) rotate(-3deg)}@media(max-width:800px){.world-trail .topic{width:72%}.world-trail .topic:nth-child(1){left:0}.world-trail .topic:nth-child(2){right:-3%}.world-trail .topic:nth-child(3){left:0}.world-trail .topic:nth-child(4){right:-3%}.world-trail .topic:nth-child(5){left:14%}}
.saved-explanations{margin:22px 0;background:#f6f3ff;border:2px solid #ddd6ff;border-radius:18px;padding:16px}.saved-explanation{background:white;border:1px solid var(--line);border-radius:13px;padding:11px;margin:8px 0}.saved-explanation summary{cursor:pointer;font-weight:850;font-size:12px}.saved-explanation p{white-space:pre-line;font-size:12px;line-height:1.6;color:var(--muted)}.saved-explanation small{color:var(--muted)}html[data-theme="dark"] .saved-explanations{background:#20243a;border-color:#3d4563}html[data-theme="dark"] .saved-explanation{background:#171b2c}
.legal-links{display:grid;gap:7px;margin:13px 0}.legal-links a{display:flex;justify-content:space-between;border:1px solid var(--line);border-radius:11px;padding:9px 11px;color:var(--purple);font-size:11px;font-weight:850;text-decoration:none}.legal-links a:after{content:'→'}html[data-theme="dark"] .legal-links a{background:#171c2d;border-color:#363f59;color:#b9aaff}

/* Final header layout: equal-height controls with no overlap */
.topbar{overflow:visible}
.top-actions{
  display:grid!important;
  grid-template-columns:minmax(70px,auto) 92px 92px 42px;
  align-items:center;
  justify-content:end;
  gap:8px!important;
  min-width:320px;
}
.top-actions .user-mini{height:42px;justify-content:center;align-items:flex-end;overflow:hidden}
.top-actions .heart-pill,
.top-actions .xp,
.top-actions .avatar{
  height:42px!important;
  min-height:42px;
  margin:0!important;
  border:2px solid var(--line);
  border-radius:14px;
  background:var(--white);
  box-shadow:0 4px 0 #e4e6ee;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  inset:auto;
  transform:none;
}
.top-actions .heart-pill,.top-actions .xp{width:92px;padding:5px 7px!important}
.top-actions .heart-pill{flex-direction:column;line-height:1.05}
.top-actions .heart-pill>span{font-size:11px}.top-actions .heart-pill small{font-size:8px;margin-top:3px}
.top-actions .xp{font-size:12px;white-space:nowrap}
.top-actions .avatar{width:42px!important;padding:0;color:#fff;background:linear-gradient(145deg,var(--coral),#ff9b67);border-color:#ff8d7f;box-shadow:0 4px 0 var(--coral-dark)}
html[data-theme="dark"] .top-actions .heart-pill,html[data-theme="dark"] .top-actions .xp{background:#191d2f;border-color:#353d57;box-shadow:0 4px 0 #080b13;color:var(--ink)}
@media(max-width:760px){
  .topbar{grid-template-columns:auto 1fr!important}
  .top-actions{grid-template-columns:minmax(48px,1fr) 78px 72px 38px;min-width:0;width:100%;gap:5px!important}
  .top-actions .heart-pill,.top-actions .xp{width:100%;height:38px!important;min-height:38px;padding:4px!important}
  .top-actions .avatar{width:38px!important;height:38px!important;min-height:38px}
  .top-actions .user-mini{height:38px;align-items:flex-end}.top-actions .user-mini>span{max-width:70px;font-size:9px}.top-actions .user-mini small{display:none}
  .top-actions .heart-pill small{display:none}.top-actions .heart-pill>span,.top-actions .xp{font-size:10px}
}
@media(max-width:430px){
  .topbar{grid-template-columns:36px 1fr!important;gap:5px!important}
  .top-actions{grid-template-columns:minmax(36px,1fr) 65px 58px 34px;gap:4px!important}
  .top-actions .avatar{width:34px!important;height:34px!important;min-height:34px;border-radius:11px}
  .top-actions .heart-pill,.top-actions .xp{height:34px!important;min-height:34px;border-radius:11px;border-width:1px}
  .top-actions .user-mini{height:34px}.top-actions .user-mini>span{max-width:48px;font-size:8px}
}
/* Avatar picker */
.avatar{overflow:hidden}.avatar-image{width:100%;height:100%;object-fit:cover;border-radius:inherit}.profile-avatar{position:relative;padding:0;overflow:hidden;cursor:pointer}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-avatar small{position:absolute;left:0;right:0;bottom:0;background:rgba(20,25,45,.72);color:#fff;font-size:8px;padding:3px}.preset-avatars{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin:18px 0}.preset-avatars button{aspect-ratio:1;border:3px solid transparent;border-radius:18px;padding:0;overflow:hidden;background:#eef0f7;box-shadow:0 4px 0 #dfe2ec}.preset-avatars button:hover,.preset-avatars button.selected{border-color:var(--purple);transform:translateY(-2px)}.preset-avatars img{width:100%;height:100%;object-fit:cover}.avatar-modal>small{display:block;color:var(--muted);font-size:10px;line-height:1.5;margin-top:14px}html[data-theme="dark"] .preset-avatars button{background:#171c2d;box-shadow:0 4px 0 #090c14}@media(max-width:450px){.preset-avatars{grid-template-columns:repeat(2,1fr)}}
/* Clear profile navigation instead of the ambiguous floating arrow */
.profile-back{align-self:flex-start;height:40px;border:2px solid var(--line);border-radius:13px;background:var(--white);color:var(--ink);padding:0 13px;display:flex;align-items:center;gap:7px;font-weight:850;font-size:12px;box-shadow:0 4px 0 #e3e5ed;white-space:nowrap}.profile-back span{font-size:18px;color:var(--purple)}.profile-back:hover{transform:translateY(-2px);border-color:#cfc7ff}.profile-back:active{transform:translateY(3px);box-shadow:0 1px 0 #e3e5ed}html[data-theme="dark"] .profile-back{background:#191d2f;border-color:#363e58;box-shadow:0 4px 0 #080b13;color:var(--ink)}@media(max-width:560px){.profile-head{display:grid;grid-template-columns:auto 58px 1fr}.profile-back{grid-column:1/-1;width:max-content}.profile-avatar{width:58px;height:58px}}

/* Anchor every island circle exactly on the center road; move only its information card */
.world-trail .topic,
.world-trail .topic:nth-child(odd),
.world-trail .topic:nth-child(even){
  position:absolute;
  left:0!important;
  right:auto!important;
  width:100%!important;
  min-height:155px;
  margin:0!important;
  transform:none!important;
}
.world-trail .topic:nth-child(1){top:3%}
.world-trail .topic:nth-child(2){top:22%}
.world-trail .topic:nth-child(3){top:41%}
.world-trail .topic:nth-child(4){top:60%}
.world-trail .topic:nth-child(5){top:79%}
.world-trail .topic-header{position:relative;width:100%;min-height:105px;display:block}
.world-trail .topic-node{position:absolute;z-index:5;left:50%;top:0;transform:translateX(-50%)!important;margin:0}
.world-trail .topic-node:hover:not(:disabled){transform:translateX(-50%) scale(1.08) rotate(-4deg)!important}
.world-trail .topic.current .topic-node{animation:centerNodePulse 1.8s ease-in-out infinite}
@keyframes centerNodePulse{0%,100%{transform:translateX(-50%) translateY(0) scale(1)}50%{transform:translateX(-50%) translateY(-7px) scale(1.05)}}
.world-trail .topic-copy{position:absolute;top:7px;width:min(260px,calc(50% - 82px));max-width:260px}
.world-trail .topic:nth-child(odd) .topic-copy{right:calc(50% + 72px)}
.world-trail .topic:nth-child(even) .topic-copy{left:calc(50% + 72px)}
.world-trail .lessons{position:absolute;top:103px;width:min(390px,calc(50% - 28px));margin:0}
.world-trail .topic:nth-child(odd) .lessons{right:calc(50% + 22px);justify-content:flex-end}
.world-trail .topic:nth-child(even) .lessons{left:calc(50% + 22px);justify-content:flex-start}
.world-trail:before{left:50%!important;transform:translateX(-50%)!important}
@media(max-width:700px){
  .world-trail .topic-copy{top:98px;left:50%!important;right:auto!important;transform:translateX(-50%);width:240px;max-width:72vw}
  .world-trail .lessons{display:none}
  .world-trail .topic{min-height:190px}
  .world-trail .topic:nth-child(1){top:1%}.world-trail .topic:nth-child(2){top:20%}.world-trail .topic:nth-child(3){top:39%}.world-trail .topic:nth-child(4){top:58%}.world-trail .topic:nth-child(5){top:77%}
}

/* True top-down game maps with longer travel between island circles */
.world-zone{min-height:1900px;background-position:center center;background-size:cover}
.world-trail{min-height:1650px}
.world-trail .topic:nth-child(1){top:7%}
.world-trail .topic:nth-child(2){top:26%}
.world-trail .topic:nth-child(3){top:45%}
.world-trail .topic:nth-child(4){top:64%}
.world-trail .topic:nth-child(5){top:83%}
.world-trail:before{top:8%;bottom:7%}
@media(max-width:800px){.world-zone{min-height:1650px;background-size:cover}.world-trail{min-height:1430px}.world-trail .topic:nth-child(1){top:6%}.world-trail .topic:nth-child(2){top:25%}.world-trail .topic:nth-child(3){top:44%}.world-trail .topic:nth-child(4){top:63%}.world-trail .topic:nth-child(5){top:82%}}

/* Clean cartoon game road: UI islands follow the actual painted S-path */
.world-trail:before{display:none!important}
.world-trail .topic,
.world-trail .topic:nth-child(1),.world-trail .topic:nth-child(2),.world-trail .topic:nth-child(3),.world-trail .topic:nth-child(4),.world-trail .topic:nth-child(5){top:var(--node-y)!important;left:0!important;right:auto!important;width:100%!important;transform:none!important}
.world-trail .topic-node{left:var(--node-x)!important;top:0;transform:translateX(-50%)!important}
.world-trail .topic-node:hover:not(:disabled){transform:translateX(-50%) scale(1.08)!important}
.world-trail .topic-copy{top:3px;width:250px;max-width:32vw}
.world-trail .topic.card-right .topic-copy{left:calc(var(--node-x) + 70px)!important;right:auto!important}
.world-trail .topic.card-left .topic-copy{left:calc(var(--node-x) - 320px)!important;right:auto!important}
.world-trail .topic.card-right .lessons{left:calc(var(--node-x) + 28px)!important;right:auto!important;justify-content:flex-start}
.world-trail .topic.card-left .lessons{right:calc(100% - var(--node-x) + 28px)!important;left:auto!important;justify-content:flex-end}
.world-zone{background-position:center center;background-size:cover;background-repeat:no-repeat}
@media(max-width:700px){
 .world-trail .topic-copy,.world-trail .topic.card-right .topic-copy,.world-trail .topic.card-left .topic-copy{top:96px;left:var(--node-x)!important;right:auto!important;transform:translateX(-50%);width:230px;max-width:72vw}
}
/* Clear formula, matrix and concept sketches */
.concept-sketch{margin:12px 0;background:white;border:1px solid var(--line);border-radius:16px;padding:8px;min-height:120px}.concept-sketch svg{display:block;width:100%;height:130px}.matrix-display{display:flex;align-items:center;justify-content:center;gap:12px}.matrix-bracket{font-family:Georgia,serif;font-size:70px;font-weight:300;line-height:1}.matrix-grid{display:grid;grid-template-columns:repeat(var(--cols),minmax(34px,auto));gap:10px 18px}.matrix-grid b{font-size:20px;font-weight:850}html[data-theme="dark"] .concept-sketch{background:#171b2c;border-color:#37405a}html[data-theme="dark"] .concept-sketch text{fill:#eef1ff}
.review-island-btn{margin-top:8px;border:1px solid #cfc6ff;background:#f2efff;color:var(--purple);border-radius:10px;padding:6px 10px;font-size:10px;font-weight:900;cursor:pointer}.review-island-btn:hover{background:var(--purple);color:#fff}html[data-theme="dark"] .review-island-btn{background:#292541;border-color:#51477e;color:#cbbfff}html[data-theme="dark"] .review-island-btn:hover{background:var(--purple);color:#fff}
/* Guest account → verified email linking */
.account-security{margin-top:13px;border:1px solid #dcd7ff;background:#f7f5ff;border-radius:14px;padding:12px}.account-security>div{display:flex;justify-content:space-between;gap:10px;align-items:center}.account-security b{font-size:12px;color:var(--purple)}.account-security span{font-size:10px;color:var(--muted)}.account-security .link-account{background:var(--purple);color:#fff;text-align:center;border:0}.email-field{display:block;font-size:12px;font-weight:850;margin:18px 0}.email-field input{display:block;width:100%;margin-top:7px;border:2px solid var(--line);border-radius:13px;padding:13px;background:#fbfcff;color:var(--ink)}.email-link-status{margin-top:15px;padding:12px;border-radius:13px;background:#eafff7;color:#18765a;font-size:12px;line-height:1.5}.email-link-modal>small{display:block;color:var(--muted);line-height:1.5;margin-top:14px}html[data-theme="dark"] .account-security{background:#20243a;border-color:#413a69}html[data-theme="dark"] .email-field input{background:#171c2d;border-color:#37405a;color:var(--ink)}html[data-theme="dark"] .email-link-status{background:#17342d;color:#b9ffe7}
/* Readable topic-specific diagrams with wrapping labels */
.concept-sketch{padding:14px;min-height:145px;overflow:visible}.diagram-title{text-align:center;font-size:12px;font-weight:950;color:var(--ink);margin-bottom:13px}.diagram-flow{display:flex;align-items:center;justify-content:center;gap:8px;min-height:82px}.diagram-flow.vertical{flex-direction:column;gap:5px}.diagram-node{min-width:72px;max-width:150px;padding:10px 12px;border:1.5px solid #9ca5bd;border-radius:13px;background:#f6f7fb;color:var(--ink);font-size:11px;font-weight:800;line-height:1.35;text-align:center;white-space:normal;overflow-wrap:anywhere}.diagram-flow.vertical .diagram-node{width:min(260px,90%);max-width:260px;padding:8px 14px}.diagram-arrow{color:var(--purple);font-size:22px;font-weight:950;line-height:1}.diagram-flow.vertical .diagram-arrow{font-size:18px}.diagram-node.purple{background:#eeeaff;border-color:#9b87f5}.diagram-node.green{background:#e7fff6;border-color:#6bd7b4}.diagram-node.yellow{background:#fff3d2;border-color:#e4bf61}.diagram-node.coral{background:#ffe9ec;border-color:#ef9ca5}.diagram-comparison{display:flex;align-items:center;justify-content:center;gap:15px;min-height:80px}.diagram-comparison .diagram-node{width:42%;max-width:210px}.diagram-comparison>b{font-size:24px;color:var(--coral)}.diagram-cycle{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}.diagram-cycle .diagram-node{min-width:95px}.diagram-molecule{display:flex;align-items:center;justify-content:center;min-height:88px;flex-wrap:wrap}.atom{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;padding:6px;color:white;font-size:10px;font-weight:900;text-align:center;overflow-wrap:anywhere}.atom-0{background:#7457f5}.atom-1{background:#35b78e}.atom-2{background:#f35f6c}.atom-3{background:#d5a51f}.bond{width:26px;height:7px;background:#68708d}.diagram-center{width:min(240px,80%);margin:auto;background:var(--purple);color:white;border-radius:15px;padding:11px;text-align:center;font-weight:900;font-size:11px}.diagram-branches{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.diagram-branches .diagram-node{max-width:none}.concept-sketch svg{height:145px}html[data-theme="dark"] .diagram-node{color:#eff2ff;background:#22283c;border-color:#56617f}html[data-theme="dark"] .diagram-node.purple{background:#31285c}html[data-theme="dark"] .diagram-node.green{background:#173b32}html[data-theme="dark"] .diagram-node.yellow{background:#443919}html[data-theme="dark"] .diagram-node.coral{background:#45252d}@media(max-width:600px){.diagram-flow:not(.vertical){flex-direction:column}.diagram-flow:not(.vertical) .diagram-arrow{transform:rotate(90deg)}.diagram-node{width:min(250px,92%);max-width:250px}.diagram-comparison{gap:7px}.diagram-comparison .diagram-node{width:44%;font-size:10px;padding:8px}.diagram-branches{grid-template-columns:1fr}}
.math-frac{display:inline-flex;vertical-align:middle;flex-direction:column;align-items:stretch;text-align:center;line-height:1.05;margin:0 5px;font-size:.8em}.math-frac>span:first-child{border-bottom:2px solid currentColor;padding:0 5px 3px}.math-frac>span:last-child{padding:3px 5px 0}.breakdown-display sub{font-size:.55em;vertical-align:-.35em}.breakdown-display sup{font-size:.55em;vertical-align:.65em}
.account-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.account-actions .link-account{margin:0}.danger-link{background:#fff0f1!important;color:var(--coral-dark)!important}.auth-modal>div>p{color:var(--muted);line-height:1.5}.auth-modal>div>small{display:block;margin-top:13px;color:var(--muted);line-height:1.5}html[data-theme="dark"] .danger-link{background:#45252d!important;color:#ffb9c0!important}@media(max-width:480px){.account-actions{grid-template-columns:1fr}}
/* Step 6A — study days and notification preferences */
.study-days>span{display:block;font-size:12px;font-weight:850;margin-bottom:8px}.day-chips{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.day-chips label{margin:0!important}.day-chips input{position:absolute;opacity:0;pointer-events:none}.day-chips b{height:38px;display:grid;place-items:center;border:2px solid var(--line);border-radius:11px;background:#fff;color:var(--muted);font-size:11px;cursor:pointer;box-shadow:0 3px 0 #e2e4ec}.day-chips input:checked+b{background:var(--purple);border-color:var(--purple);color:#fff;box-shadow:0 3px 0 var(--purple-dark)}.notification-fields{margin-top:12px}.notification-fields>label{display:inline-block;width:calc(50% - 5px);vertical-align:top}.quiet-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.notification-types{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.notification-types label{display:flex;align-items:center;gap:7px;margin:0;background:#f7f8fc;border:1px solid var(--line);border-radius:10px;padding:8px;font-size:11px}.notification-types input{width:auto;margin:0}.notification-card small{display:block;text-align:center;margin-top:10px}html[data-theme="dark"] .day-chips b{background:#171c2d;border-color:#37405a;box-shadow:0 3px 0 #080b13}html[data-theme="dark"] .notification-types label{background:#171c2d}@media(max-width:560px){.day-chips{gap:4px}.day-chips b{height:34px;font-size:9px}.notification-fields>label{display:block;width:100%}.notification-types{grid-template-columns:1fr}.quiet-row{grid-template-columns:1fr}}
/* Step 7A — multi-file bundle preflight */
.multi-file-list{display:grid;gap:8px;margin:14px 0}.multi-file-list .file-card{margin:0}.preflight-card{border:2px solid #dcd8f4;background:linear-gradient(145deg,#fbfaff,#effbff);border-radius:18px;padding:16px;margin:15px 0}.preflight-title{display:flex;justify-content:space-between;align-items:center}.preflight-title>span{background:#e8fff6;color:var(--mint-dark);border-radius:12px;padding:6px 9px;font-size:10px;font-weight:900}.preflight-title>span.paid{background:#fff0d2;color:#9a6400}.preflight-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:13px 0}.preflight-grid>div{background:white;border:1px solid var(--line);border-radius:12px;padding:10px;text-align:center}.preflight-grid b,.preflight-grid span{display:block}.preflight-grid b{font-size:18px;color:var(--purple)}.preflight-grid span{font-size:9px;color:var(--muted)}.preflight-card>p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}html[data-theme="dark"] .preflight-card{background:#20263a;border-color:#3d4662}html[data-theme="dark"] .preflight-grid>div{background:#171c2d}@media(max-width:560px){.preflight-grid{grid-template-columns:1fr 1fr}}
/* Step 7B — post-analysis program and schedule confirmation */
.plan-preview-screen{max-width:1080px;margin:35px auto;padding:0 24px}.plan-preview-head{display:flex;align-items:center;gap:20px;background:linear-gradient(135deg,#eefbff,#f3eeff);border:2px solid white;border-radius:25px;padding:24px;box-shadow:0 8px 0 #e1e5ef}.plan-preview-head>div{flex:1}.plan-preview-head h2{font-size:34px;margin:8px 0}.plan-preview-head p{color:var(--muted);line-height:1.5}.plan-preview-head img{width:130px;height:130px;object-fit:contain}.plan-summary-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:23px 0}.plan-summary-grid>div{background:white;border:2px solid var(--line);border-radius:16px;padding:13px;text-align:center;box-shadow:0 4px 0 #e5e7ef}.plan-summary-grid b,.plan-summary-grid span{display:block}.plan-summary-grid b{font-size:20px;color:var(--purple)}.plan-summary-grid span{font-size:9px;color:var(--muted);font-weight:850}.plan-preview-layout{display:grid;grid-template-columns:1fr 310px;gap:20px}.plan-world-list{display:grid;gap:12px}.plan-world{background:white;border:2px solid var(--line);border-radius:19px;overflow:hidden;box-shadow:0 5px 0 #e5e7ef}.plan-world summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:15px}.plan-world summary::-webkit-details-marker{display:none}.plan-world summary>div{flex:1}.plan-world summary b,.plan-world summary small{display:block}.plan-world summary small{color:var(--muted);margin-top:4px}.difficulty-tag{font-size:9px;padding:5px 8px;border-radius:10px;background:#eeeaff;color:var(--purple);font-weight:900}.plan-islands{border-top:1px solid var(--line);padding:8px 14px 14px}.plan-island{display:grid;grid-template-columns:28px 1fr auto;gap:9px;align-items:center;padding:9px 0;border-bottom:1px dashed var(--line)}.plan-island:last-child{border:0}.plan-island>i{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#eeeaff;color:var(--purple);font-size:10px;font-style:normal;font-weight:900}.plan-island b{font-size:12px}.plan-island small{color:var(--muted);font-size:9px}.priority-tag{font-size:8px;color:var(--coral-dark);font-weight:900}.schedule-preview{position:sticky;top:95px;align-self:start;background:white;border:2px solid var(--line);border-radius:21px;padding:18px;box-shadow:0 7px 0 #e4e6ef}.schedule-day{display:flex;gap:10px;align-items:center;border-bottom:1px solid var(--line);padding:10px 0}.schedule-day>span{width:36px;height:36px;border-radius:11px;background:var(--mint);color:white;display:grid;place-items:center;font-size:9px;font-weight:900}.schedule-day b,.schedule-day small{display:block}.schedule-day b{font-size:11px}.schedule-day small{font-size:9px;color:var(--muted)}.schedule-preview button{margin-top:10px}html[data-theme="dark"] .plan-preview-head{background:#20263a;border-color:#343d57}html[data-theme="dark"] .plan-summary-grid>div,html[data-theme="dark"] .plan-world,html[data-theme="dark"] .schedule-preview{background:#191d2f;border-color:#343d57;box-shadow:0 5px 0 #080b13}@media(max-width:800px){.plan-summary-grid{grid-template-columns:repeat(3,1fr)}.plan-preview-layout{grid-template-columns:1fr}.schedule-preview{position:static}.plan-preview-head img{width:95px;height:95px}.plan-preview-head h2{font-size:27px}}@media(max-width:480px){.plan-summary-grid{grid-template-columns:1fr 1fr}.plan-preview-head{align-items:flex-start}.plan-preview-head img{width:72px;height:72px}.plan-island{grid-template-columns:26px 1fr}.plan-island>div+span{grid-column:2}}

/* Smoothly blend consecutive landscape worlds instead of showing a hard seam */
.world-zone+.world-zone{
  border-top:0!important;
  margin-top:-180px;
  padding-top:285px;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.18) 3%,rgba(0,0,0,.65) 8%,#000 14%,#000 100%);
  mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.18) 3%,rgba(0,0,0,.65) 8%,#000 14%,#000 100%);
}
.world-zone+.world-zone:before{content:'';position:absolute;left:0;right:0;top:0;height:230px;background:linear-gradient(to bottom,rgba(255,255,255,0),rgba(255,255,255,.08),rgba(255,255,255,0));pointer-events:none;z-index:0}
.world-zone+.world-zone .world-label,.world-zone+.world-zone .world-trail{position:relative;z-index:2}
@media(max-width:800px){.world-zone+.world-zone{margin-top:-130px;padding-top:220px;-webkit-mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.55) 8%,#000 16%);mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.55) 8%,#000 16%)}}
/* Coordinate islands against the full background image, not the inner content flow */
.world-zone,.world-zone+.world-zone{padding:0!important;background-size:100% 100%!important;background-position:center center!important}
.world-trail{position:absolute!important;inset:0!important;width:100%;height:100%;min-height:0!important;z-index:1}
.world-label{position:sticky!important;top:18px;margin:24px auto 0!important;z-index:10}
.world-zone+.world-zone .world-trail{position:absolute!important;z-index:1}
@media(max-width:800px){.world-zone,.world-zone+.world-zone{padding:0!important;background-size:100% 100%!important}.world-label{top:10px;margin-top:18px!important}}

/* Final clean crossfade: remove tinted bands and clip cards to their own world */
.world-zone{overflow:hidden}
.world-zone:after{display:none!important}
.world-zone+.world-zone{
  border:0!important;
  margin-top:-220px!important;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,rgba(0,0,0,.12) 25px,rgba(0,0,0,.45) 90px,rgba(0,0,0,.8) 165px,#000 220px,#000 100%)!important;
  mask-image:linear-gradient(to bottom,transparent 0,rgba(0,0,0,.12) 25px,rgba(0,0,0,.45) 90px,rgba(0,0,0,.8) 165px,#000 220px,#000 100%)!important;
}
.world-zone+.world-zone:before{display:none!important}
@media(max-width:800px){.world-zone+.world-zone{margin-top:-160px!important;-webkit-mask-image:linear-gradient(to bottom,transparent 0,rgba(0,0,0,.5) 75px,#000 160px,#000 100%)!important;mask-image:linear-gradient(to bottom,transparent 0,rgba(0,0,0,.5) 75px,#000 160px,#000 100%)!important}}
/* Keep world names below the crossfade area and away from island nodes */
.world-label,.world-zone+.world-zone .world-label{position:absolute!important;top:235px!important;left:50%!important;transform:translateX(-50%)!important;margin:0!important;z-index:10}
@media(max-width:800px){.world-label,.world-zone+.world-zone .world-label{top:185px!important}}
.field-hint{display:block!important;color:var(--muted);font-size:9px!important;line-height:1.4;margin-top:6px}
