:root{--green:#aa69ff;--deep:#281650;--muted:#c8bddf;--paper:#fffaff;--line:#d9c7ff;--shadow:0 10px 26px #31105a24}
body.adventure-theme{color:#271848;background:radial-gradient(ellipse at 14% 9%,#7048c9 0,transparent 34%),radial-gradient(ellipse at 92% 20%,#ed6dbd 0,transparent 23%),radial-gradient(ellipse at 50% 94%,#336cb7 0,transparent 36%),linear-gradient(160deg,#171333,#282153 48%,#171333);background-attachment:fixed}
body.adventure-theme:before{position:fixed;inset:0;z-index:-1;pointer-events:none;content:"";opacity:.3;background-image:radial-gradient(#fff 1px,transparent 1.8px),radial-gradient(#f8d98a 1px,transparent 2px);background-position:0 0,31px 47px;background-size:73px 73px,113px 113px;animation:star-drift 42s linear infinite}
@keyframes star-drift{to{background-position:73px 73px,144px 160px}}
button,a{ -webkit-tap-highlight-color:transparent }
body.main-adventure .app-shell{position:relative;overflow:hidden;background:linear-gradient(180deg,#fffafffa,#f6effff7);border:1px solid #ffffff55;border-top:0;border-radius:0 0 34px 34px;box-shadow:0 18px 70px #0a061f66}
body.main-adventure .topbar{border-color:#e9d9ff}
body.main-adventure .brand{color:#39206f}
body.main-adventure .brand-leaf{filter:drop-shadow(0 2px 5px #f0a9ff);font-size:30px}
body.main-adventure .brand small{color:#796b99}
body.main-adventure .mascot-bubble{background:linear-gradient(135deg,#f6dfff,#e1ddff);border:1px solid #fff;color:#603d93;box-shadow:0 4px 0 #d6c3f1}
body.main-adventure .header-fox{filter:drop-shadow(0 5px 6px #613a9a55)}
body.main-adventure .eyebrow{color:#8863bd;font-weight:900;letter-spacing:1px}
body.main-adventure .section-title{color:#321d62;text-shadow:0 2px #fff}
body.main-adventure .section-subtitle{color:#776990}
body.main-adventure .today-banner{border:1px solid #fff;background:linear-gradient(115deg,#7352c9,#a15bcb 58%,#e279b9);box-shadow:0 7px 0 #503788,0 12px 25px #4d25752e;color:#fff}
body.main-adventure .today-banner h2,body.main-adventure .today-banner p{color:#fff}
body.main-adventure .today-banner:after{content:"✦  ✧  ✦";color:#ffe388;letter-spacing:8px}
body.main-adventure .game-list{gap:14px}
body.main-adventure .game-card{min-height:148px;border:2px solid #ffffffb5;border-radius:27px;box-shadow:0 7px 0 #32235b,0 13px 22px #110c2e36;transition:transform .18s,filter .18s,box-shadow .18s}
body.main-adventure .game-card:hover{filter:saturate(1.08) brightness(1.035);transform:translateY(-2px)}
body.main-adventure .game-card:active{transform:translateY(3px) scale(.99);box-shadow:0 3px 0 #32235b}
body.main-adventure .game-card.quest{background:linear-gradient(110deg,#c5eaff,#92c7f7 58%,#c8a8ff)}
body.main-adventure .game-card.truck{background:linear-gradient(110deg,#ffe0d1,#ff9e9e 57%,#ffcf76)}
body.main-adventure .game-card.treasure{background:linear-gradient(110deg,#fff0b7,#ffc966 58%,#ff9b9d)}
body.main-adventure .game-card.pony-academy{background:linear-gradient(110deg,#dac5ff,#a991f3 58%,#f6a6da)}
body.main-adventure .game-copy h3{color:#2c1d54;text-shadow:0 1px #ffffffb5}
body.main-adventure .game-copy p{color:#4a3c67}
body.main-adventure .game-tag{background:#fffdf0d9;color:#704ca0;border:1px solid #fff}
body.main-adventure .play-button{background:linear-gradient(180deg,#ff8cdb,#d848b7);box-shadow:0 4px 0 #9f278e;color:#fff}
body.main-adventure .game-art{filter:drop-shadow(0 8px 7px #49306e54)}
body.main-adventure .game-card .game-art img{animation:mascot-hover 2.8s ease-in-out infinite}
@keyframes mascot-hover{50%{transform:translateY(-5px) rotate(2deg)}}
body.main-adventure .bottom-nav{background:#241847f5;border-color:#7955ae;box-shadow:0 -7px 28px #120a2b77}
body.main-adventure .bottom-nav button{color:#b9abd5}
body.main-adventure .bottom-nav button[aria-current="page"]{color:#ffe28a}
body.main-adventure .bottom-nav button[aria-current="page"] span{filter:none;opacity:1}
body.main-adventure .toolbar .search,body.main-adventure .search{border:2px solid #dac6ff;background:#fffaff;color:#322058;box-shadow:0 5px 0 #d1bce9}
body.main-adventure .chip{border:1px solid #d8c7f3;background:#fffaff;color:#684b91;box-shadow:0 3px 0 #dfd4ee}
body.main-adventure .chip.active{background:linear-gradient(135deg,#8554d1,#d85bbd);border-color:#fff;color:#fff;box-shadow:0 4px 0 #65369e}
body.main-adventure .word-card{border:2px solid #fff;background:linear-gradient(145deg,#fff,#f2e9ff);box-shadow:0 5px 0 #d7c5ed,0 9px 17px #43286e12;border-radius:20px}
body.main-adventure .word-icon{filter:drop-shadow(0 3px 4px #8f69b744)}
body.main-adventure .word-title{color:#392263}
body.main-adventure .audio-button{background:linear-gradient(140deg,#ffe582,#ffb95d);box-shadow:0 3px 0 #d18a45;color:#57316e}
body.main-adventure .tree-panel{border:3px solid #fff;background:radial-gradient(ellipse at 50% 30%,#7a69ce,#353260 64%,#211b46);box-shadow:0 8px 0 #302253,0 15px 26px #21133d55}
body.main-adventure .tree-svg{filter:drop-shadow(0 7px 9px #110a30aa)}
body.main-adventure .tree-svg ellipse{fill:#7359b8!important;stroke:#efc1ff;stroke-width:5}
body.main-adventure .tree-svg ellipse:nth-of-type(2){fill:#9b78df!important;opacity:.45}
body.main-adventure .tree-svg>path{stroke:#e5b9ff!important;stroke-width:8}
body.main-adventure .tree-svg>path:nth-of-type(2){stroke:#f1a8e2!important;stroke-width:6}
body.main-adventure .tree-svg>path:nth-of-type(3){stroke:#ffe08a!important;stroke-width:6}
body.main-adventure .tree-node circle{stroke:#fff1ff;stroke-width:3}
body.main-adventure .tree-node[data-tree="all"] circle{fill:#d958bd!important;stroke:#ffe28a;stroke-width:5}
body.main-adventure .tree-node{filter:drop-shadow(0 4px 5px #100a2b88);cursor:pointer;transition:filter .18s}
body.main-adventure .tree-node:hover{filter:drop-shadow(0 0 9px #ffe48b)}
body.main-adventure .tree-controls button{border:2px solid #fff;background:linear-gradient(#fff,#e9dcff);box-shadow:0 4px 0 #8b69bb;color:#56328b}
body.main-adventure .legend{color:#f8edff}
body.main-adventure .metric{border:2px solid #fff;background:linear-gradient(145deg,#fff,#efe5ff);box-shadow:0 5px 0 #d4bee9}
body.main-adventure .metric b{color:#492d7d}
body.main-adventure .record-row,body.main-adventure .setting-row{border:1px solid #e4d5f7;background:#fffaff;box-shadow:0 4px 0 #e1d4f0;border-radius:18px}
body.main-adventure .record-list-heading{color:#452a77}
body.main-adventure .settings-list{overflow:hidden;border:2px solid #fff;border-radius:23px;background:#fffaff;box-shadow:0 6px 0 #d8c4ed}
body.main-adventure .toggle{background:#c8b8df}
body.main-adventure .toggle[aria-checked="true"]{background:#c44eb3}
body.main-adventure .panel,body.main-adventure .quiz-card{border:2px solid #fff;background:linear-gradient(145deg,#fffaff,#eee3ff);box-shadow:0 7px 0 #d4c1ec,0 12px 22px #3a20621f}
body.main-adventure .quiz-option{border:2px solid #fff;background:#fffaff;color:#38235f;box-shadow:0 4px 0 #d4c3e9}
body.main-adventure .quiz-option:active,body.main-adventure .fruit-option:active{transform:translateY(2px)}
body.main-adventure .quiz-option.correct,body.main-adventure .fruit-option.selected{border-color:#ffe28a;background:#fff2bf;color:#634014;box-shadow:0 4px 0 #d8a951}
body.main-adventure .primary-button{background:linear-gradient(180deg,#ff8ada,#d94ab9);box-shadow:0 5px 0 #98297f;color:#fff}
body.main-adventure .score-pill{border:1px solid #fff3b8;background:linear-gradient(130deg,#ffe997,#ffc961);box-shadow:0 3px 0 #d08c3e;color:#6b3a55}
body.main-adventure .game-progress{background:#ded2f0}
body.main-adventure .game-progress i{background:linear-gradient(90deg,#ff83ce,#ffd36c)}
body.main-adventure .truck-scene{border:4px solid #fff;border-radius:27px;box-shadow:0 8px 0 #50377d,0 14px 24px #130d2e44}
body.main-adventure .feedback{color:#7447aa}
body.main-adventure .privacy-note,body.main-adventure .bottom-note{color:#766390}
body.academy-adventure .magic-app{width:min(100%,660px);padding-left:17px;padding-right:17px}
body.academy-adventure .magic-header{border-bottom:1px solid #d4baf4}
body.academy-adventure .magic-brand{color:#412375}
body.academy-adventure .magic-brand,body.academy-adventure .magic-brand small{color:#fff4ff}
body.academy-adventure .brand-mark{background:linear-gradient(145deg,#f8a9dd,#9675ed);box-shadow:0 4px 0 #6342a4}
body.academy-adventure .star-count{border:1px solid #ffe28a;background:linear-gradient(130deg,#fff0a8,#ffc964);box-shadow:0 4px 0 #d1913f;color:#71415f}
body.academy-adventure .hero{border:2px solid #fff;background:radial-gradient(circle at 77% 25%,#fff8cc55 0 2px,transparent 3px),radial-gradient(circle at 88% 55%,#fff8cc55 0 2px,transparent 3px),linear-gradient(130deg,#5943b0,#8756cb 52%,#df6db8);box-shadow:0 8px 0 #45317d,0 16px 30px #27124c55}
body.academy-adventure .hero h1{color:#fff;text-shadow:0 3px 0 #4f3788}
body.academy-adventure .hero p{color:#f9edff}
body.academy-adventure .hero .hero-cta{background:linear-gradient(#ff9ce0,#e254bc);box-shadow:0 4px 0 #a82f8c;color:#fff}
body.academy-adventure .hero:before{background:#fff3}
body.academy-adventure .progress-card{border:2px solid #fff;background:linear-gradient(120deg,#fffaff,#f2e8ff);box-shadow:0 5px 0 #d8c5ee}
body.academy-adventure .progress-track{background:#d9cdec}
body.academy-adventure .progress-track i{background:linear-gradient(90deg,#e85bbb,#ffc95e)}
body.academy-adventure .progress-score{color:#a14c9c}
body.academy-adventure .eyebrow,body.academy-adventure .section-heading h2,body.academy-adventure .page-title{color:#fff4ff;text-shadow:0 2px 0 #473276}
body.academy-adventure .section-heading button,body.academy-adventure .link-button{color:#ffe28a}
body.academy-adventure .page-subtitle,body.academy-adventure .small-note{color:#e7d9ff}
body.academy-adventure .panel .page-title,body.academy-adventure .panel .page-subtitle{color:#49306f;text-shadow:none}
body.academy-adventure .feature-card{border:2px solid #fff;background:linear-gradient(145deg,#fffaff,#eadcff);box-shadow:0 5px 0 #cdb5e8;color:#40236b}
body.academy-adventure .feature-card:nth-child(2){background:linear-gradient(145deg,#fff4cc,#ffd2ec)}
body.academy-adventure .feature-card:nth-child(3){background:linear-gradient(145deg,#e8e3ff,#c6dcff)}
body.academy-adventure .feature-card:nth-child(4){background:linear-gradient(145deg,#ffe1f4,#ffcebd)}
body.academy-adventure .mission,body.academy-adventure .word-row,body.academy-adventure .report-row{border:1px solid #e0d0f4;background:#fffaff;box-shadow:0 4px 0 #dfd1ee}
body.academy-adventure .mission-status.ready{background:#ffe9a5;color:#755021}
body.academy-adventure .panel,body.academy-adventure .quiz-card,body.academy-adventure .lesson-hero{border:2px solid #fff;background:linear-gradient(145deg,#fffaff,#eee3ff);box-shadow:0 7px 0 #d7c3ed}
body.academy-adventure .unit-tab{border:1px solid #dccaf2;background:#fffaff;color:#704f98;box-shadow:0 3px 0 #e5d9f0}
body.academy-adventure .unit-tab.active{background:linear-gradient(110deg,#8754d0,#dd5cbb);color:#fff;box-shadow:0 4px 0 #713b9b}
body.academy-adventure .pill-button{background:linear-gradient(#9c79ef,#674cd0);box-shadow:0 4px 0 #483597}
body.academy-adventure .pill-button.soft{background:linear-gradient(#fff,#f3e6ff);box-shadow:0 4px 0 #d7c2ef;color:#684299}
body.academy-adventure .quiz-option{border:2px solid #fff;background:#fffaff;color:#39225f;box-shadow:0 4px 0 #d8c5ec}
body.academy-adventure .quiz-option.correct{border-color:#ffe28a;background:#fff1b8;color:#644217;box-shadow:0 4px 0 #d3a64d}
body.academy-adventure .quiz-option.wrong{border-color:#ffb8d2;background:#ffe8f2;color:#ad3b75}
body.academy-adventure .primary,body.academy-adventure .primary.blue{background:linear-gradient(#ff8cdb,#d94ab8);box-shadow:0 5px 0 #98277f}
body.academy-adventure .battle-arena{border:2px solid #fff;background:linear-gradient(110deg,#b8ddff,#ead4ff,#ffcee7);box-shadow:0 6px 0 #59418a}
body.academy-adventure .magic-card{border:2px solid #fff;background:linear-gradient(150deg,#c8e6ff,#bda7ff 58%,#ffc9ec);box-shadow:0 5px 0 #8260b3}
body.academy-adventure .magic-card:nth-child(3n+2){background:linear-gradient(150deg,#fff0a8,#ffb9df 68%,#d5c7ff)}
body.academy-adventure .magic-card:nth-child(3n){background:linear-gradient(150deg,#bcf5ee,#a8cfff 68%,#ead1ff)}
body.academy-adventure .magic-card.locked{filter:saturate(.5);background:linear-gradient(150deg,#d7d0e4,#bcb4ce)}
body.academy-adventure .magic-nav{border-color:#8060b6;background:#241846f5;box-shadow:0 -8px 26px #120a2a80}
body.academy-adventure .magic-nav button{color:#c2b1df}
body.academy-adventure .magic-nav button[aria-current="page"]{color:#ffe28a}
body.academy-adventure .magic-nav span{filter:grayscale(.2);opacity:.9}
body.academy-adventure .magic-toast{background:#39225e;box-shadow:0 5px 0 #21133b}
body.academy-adventure .back,body.academy-adventure .tree-controls button{border:1px solid #fff;background:linear-gradient(#fff,#ebddff);box-shadow:0 4px 0 #ab8ad2;color:#58348b}
body.adventure-theme :focus-visible{outline:3px solid #ffd969;outline-offset:3px}
@media(max-width:380px){body.main-adventure .game-card{min-height:137px}body.academy-adventure .magic-app{padding-left:12px;padding-right:12px}body.academy-adventure .hero{border-radius:23px}}
@media(min-width:700px){body.main-adventure .app-shell{border-radius:0 0 38px 38px}body.academy-adventure .magic-app{padding-left:24px;padding-right:24px}}
@media(prefers-reduced-motion:reduce){body.adventure-theme:before,body.adventure-theme .game-card .game-art img{animation:none}}
body.academy-adventure .map-banner{position:relative;display:flex;align-items:center;min-height:184px;overflow:hidden;margin:3px 0 15px;padding:17px 15px;border:2px solid #fff;border-radius:25px;background:radial-gradient(circle at 10% 100%,#ffdb8c 0 3px,transparent 4px),linear-gradient(135deg,#6350bd,#9870dc 58%,#ee89c8);box-shadow:0 7px 0 #45317d,0 14px 24px #10082655;color:#fff}
body.academy-adventure .map-banner:after{position:absolute;inset:0;content:"✦　·　✧　　✦　·　✧";display:flex;align-items:flex-start;justify-content:space-around;padding-top:12px;color:#ffe28a66;font-size:17px;pointer-events:none}
body.academy-adventure .map-banner-copy{position:relative;z-index:1;width:67%}
body.academy-adventure .map-banner h1{margin:10px 0 5px;color:#fff;font-size:27px;text-shadow:0 3px 0 #503685}
body.academy-adventure .map-banner p{margin:0;color:#fff2ff;font-size:11px;line-height:1.55}
body.academy-adventure .map-banner-stats{margin-top:10px;color:#fff4b2;font-size:11px;font-weight:950}
body.academy-adventure .map-banner img{position:absolute;right:4px;bottom:0;width:36%;height:95%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 7px 5px #20133c66);z-index:1}
body.academy-adventure .map-section-heading{display:flex;align-items:center;justify-content:space-between;margin:8px 3px 11px;color:#fff4ff;font-weight:950;font-size:14px}
body.academy-adventure .map-section-heading small{color:#ffe28a;font-size:10px}
body.academy-adventure .pony-map{position:relative;min-height:540px;overflow:hidden;border:2px solid #fff9;border-radius:26px;background:radial-gradient(ellipse at 50% 55%,#fff6a766,transparent 45%),radial-gradient(ellipse at 12% 25%,#a7f3e666,transparent 30%),linear-gradient(155deg,#6bd1d4,#74b9da 38%,#a6d783 39%,#58a96d 100%);box-shadow:0 8px 0 #47327d,0 16px 30px #150b394d}
body.academy-adventure .pony-map:after{position:absolute;inset:0;z-index:1;content:"";pointer-events:none;background:center/100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 520'%3E%3Cpath d='M80 92 C240 108 250 155 270 205 S240 285 100 315 S130 390 265 430' fill='none' stroke='%23fff4bd' stroke-width='12' stroke-linecap='round' stroke-dasharray='2 19' opacity='.92'/%3E%3Cpath d='M80 92 C240 108 250 155 270 205 S240 285 100 315 S130 390 265 430' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-dasharray='2 19' opacity='.95'/%3E%3C/svg%3E")}
body.academy-adventure .pony-map:before{position:absolute;inset:0;content:"☁️　　✧　　　　 ☁️\A\A　🌳　　　　　　🌸\A\A　　　☁️　　🌲";white-space:pre;display:block;padding:22px 10px;color:#ffffffb0;font-size:24px;line-height:6.5;pointer-events:none}
body.academy-adventure .map-stop{position:absolute;z-index:2;width:42%;min-height:104px;padding:8px 7px;border:2px solid #fff;border-radius:20px;background:linear-gradient(145deg,#fffdf4,#f3e4ff);box-shadow:0 6px 0 #7152a7,0 8px 16px #34215155;color:#483270;text-align:center;transition:transform .2s,filter .2s}
body.academy-adventure .map-stop:after{content:"";position:absolute;inset:4px;border:1px dashed #ddc8f2;border-radius:14px;pointer-events:none}
body.academy-adventure .map-stop.active{border-color:#ffe68e;box-shadow:0 6px 0 #b765a7,0 0 0 5px #ffe28a66,0 8px 18px #34215155;animation:map-stop-glow 1.8s ease-in-out infinite}
body.academy-adventure .map-stop.cleared{background:linear-gradient(145deg,#fff6bb,#ffe0f5)}
body.academy-adventure .map-stop.locked{filter:saturate(.4);opacity:.86}
body.academy-adventure .map-stop-pony{position:absolute;top:-15px;left:-8px;z-index:2;display:grid;place-items:center;width:33px;height:33px;border:2px solid #fff;border-radius:50%;background:#9b74e0;font-size:18px;box-shadow:0 3px 0 #654796}
body.academy-adventure .map-stop-icon{display:block;font-size:26px;line-height:1.15}
body.academy-adventure .map-stop b{display:block;margin:3px 0;color:#542e82;font-size:12px}
body.academy-adventure .map-stop small{display:block;color:#806a9a;font-size:9px;line-height:1.3}
body.academy-adventure .map-stop i{display:inline-block;margin-top:4px;padding:2px 7px;border-radius:99px;background:#eeddfb;color:#70499b;font-size:8px;font-style:normal;font-weight:950}
body.academy-adventure .map-stop.stop-1{top:5%;left:6%}
body.academy-adventure .map-stop.stop-2{top:28%;right:6%}
body.academy-adventure .map-stop.stop-3{top:52%;left:6%}
body.academy-adventure .map-stop.stop-4{top:75%;right:6%}
body.academy-adventure .map-twilight{position:absolute;right:0;bottom:-4px;width:27%;height:22%;object-fit:contain;object-position:right bottom;filter:drop-shadow(0 4px 3px #274b4566);pointer-events:none}
body.academy-adventure .map-reward{display:flex;align-items:center;gap:10px;margin:14px 0;padding:12px;border:2px solid #fff;border-radius:18px;background:linear-gradient(110deg,#fff8ce,#ffe3f6);box-shadow:0 5px 0 #c7a0db;color:#513275}
body.academy-adventure .map-reward>span{font-size:27px}
body.academy-adventure .map-reward div{min-width:0;flex:1}
body.academy-adventure .map-reward b,body.academy-adventure .map-reward small{display:block}
body.academy-adventure .map-reward small{margin-top:3px;color:#866c9b;font-size:9px}
body.academy-adventure .map-reward button,body.academy-adventure .map-shortcuts button{border:0;border-radius:99px;background:linear-gradient(#f987d1,#df55ae);box-shadow:0 3px 0 #a83f8b;color:#fff;font-size:10px;font-weight:950;padding:8px 10px}
body.academy-adventure .map-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:9px}
body.academy-adventure .map-shortcuts button{min-height:43px;background:linear-gradient(#a38aef,#7257ce);box-shadow:0 4px 0 #4b3b98}
@keyframes map-stop-glow{50%{transform:translateY(-3px);filter:brightness(1.06)}}
@media(max-width:380px){body.academy-adventure .pony-map{min-height:520px}body.academy-adventure .map-stop{width:45%;min-height:100px}body.academy-adventure .map-stop.stop-1,body.academy-adventure .map-stop.stop-3{left:4%}body.academy-adventure .map-stop.stop-2,body.academy-adventure .map-stop.stop-4{right:4%}body.academy-adventure .map-banner-copy{width:70%}body.academy-adventure .map-banner img{width:34%}}
