/* Espaniva — PLAYFUL PRACTICE THEME. The original grammar library styles remain intact. */
:root{--joy-purple:#7651e8;--joy-ink:#292742;--joy-coral:#ff7b71;--joy-yellow:#ffcf55;--joy-blue:#57b9f5;--joy-mint:#64ccae}
body.es3-app{background:#fbfaff;color:var(--joy-ink)}
body.es3-app .main{background:radial-gradient(circle at 98% 0%,#efeaff 0,transparent 29%),#fbfaff;max-width:none}
body.es3-app .sidebar{background:#fff;border-right:1px solid #ece8ff;box-shadow:5px 0 36px rgba(75,57,119,.035)}
body.es3-app .nav-section{color:#a4a0bf}
body.es3-app .navbtn.active{background:linear-gradient(105deg,#7651e8,#a067ef);color:white;box-shadow:0 7px 16px #7651e835}
body.es3-app .navbtn:hover:not(.active){background:#f4efff;color:#5944a1}
body.es3-app .mobilebar{background:#fff;border-top:1px solid #eae5f6}
body.es3-app .mobilebar>button.sel{color:#7550e2}
body.es3-app .es2-card{border-color:#ede9f7;border-radius:24px;box-shadow:0 12px 36px #6456900d}
body.es3-app .es2-btn{background:#7753e9;border-radius:15px;box-shadow:0 4px 0 #5f3cba;transition:transform .17s,box-shadow .17s}
body.es3-app .es2-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 0 #5f3cba}
body.es3-app .es2-btn:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #5f3cba}
body.es3-app .es2-btn.alt{background:#efe8ff;color:#6242b7;box-shadow:none}
body.es3-app .es2-btn.outline{background:#fff;color:#644bb4;border:1.5px solid #d9c9fb;box-shadow:none}
body.es3-app .es2-btn.is-selected{background:#6e45df;color:white}
body.es3-app .es2-qstem{color:#30264d}
body.es3-app .es2-option{border-radius:17px;border:2px solid #ece8f7;box-shadow:0 3px 0 #ece8f7;transition:transform .15s,border-color .15s,box-shadow .15s}
body.es3-app .es2-option:hover:not(:disabled){transform:translateY(-2px);border-color:#bbaaf0}
body.es3-app .es2-option.active{background:#f1ecff;border-color:#8667ed}
body.es3-app .es2-option.correct{background:#e0faf0;border-color:#3dbd95}
body.es3-app .es2-option.incorrect{background:#fff0ec;border-color:#f08b81}
body.es3-app .es2-option .letter{background:#f0eaff;color:#7753e9}
body.es3-app .es2-tile{background:white;border-color:#c9b8f4;box-shadow:0 4px 0 #ded2fa;border-radius:13px;transition:transform .14s,background .14s;animation:es3-tile-in .27s both}
body.es3-app .es2-tile:hover:not(:disabled){transform:translateY(-3px) rotate(-1deg)}
body.es3-app .es2-tile.active{background:#fff0c5;border-color:#ffc553;box-shadow:0 3px 0 #e8b146}
body.es3-app .es2-tilearea{border-color:#d7c6ff;background:#f9f6ff;min-height:80px}
body.es3-app .es2-match{border-radius:15px;border-color:#d9c9f4;transition:transform .15s}
body.es3-app .es2-match:hover{transform:scale(1.02)}
body.es3-app .es2-listening{background:linear-gradient(135deg,#ecf4ff,#f3edff);border-color:#ddd1fc}
body.es3-app .es2-feedback{background:#e9fff5;border:2px solid #a6e4c7;border-radius:18px;animation:es3-rise .38s cubic-bezier(.2,.8,.2,1)}
body.es3-app .es2-feedback.bad{background:#fff3ee;border-color:#ffd2bf}
body.es3-app .es2-progress{background:#ece7f9;height:13px}
body.es3-app .es2-progress>div{background:linear-gradient(90deg,#7954e6,#d26ce3,#f3b55a)}
body.es3-app .es2-flag.on{background:#fff0c8;border-color:#ffc860;color:#8d6105}
body.es3-app .es2-muted-box{background:#f7f4ff;border-color:#ebe5fb}
body.es3-app .es2-muted{color:#716f89}
body.es3-app .es2-label{color:#6e648d}
.es3-enter{animation:es3-rise .55s cubic-bezier(.2,.7,.2,1) both}
.es3-daily-shell{max-width:1220px;margin:auto;padding-bottom:14px}
.es3-big-hero{border-radius:33px;min-height:238px;padding:31px 34px;display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative;background:linear-gradient(116deg,#7049e4 0%,#9760f1 54%,#bd81ef 100%);box-shadow:0 20px 40px #7f56df31;color:#fff;margin-bottom:24px}
.es3-big-hero:before,.es3-big-hero:after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.es3-big-hero:before{width:230px;height:230px;background:#ffffff19;right:-60px;top:-95px}
.es3-big-hero:after{width:180px;height:180px;border:40px solid #ffffff12;right:16%;bottom:-160px}
.es3-hero-copy{position:relative;z-index:1;max-width:690px}
.es3-eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:950;color:#f1dcff;text-transform:uppercase}
.es3-eyebrow.purple{color:#7753da}.es3-eyebrow.blue{color:#3777d8}
.es3-hero-copy h1{color:#fff;font-size:clamp(30px,4vw,52px);letter-spacing:-1.7px;line-height:1.05;margin:13px 0 10px;font-weight:950}
.es3-hero-copy em{font-style:normal;color:#ffdc6b}
.es3-hero-copy p{color:#efe8ff;max-width:560px;font-size:15px;line-height:1.6;margin:0}
.es3-hero-meta{display:flex;gap:9px;flex-wrap:wrap;margin-top:19px}
.es3-hero-meta span{display:inline-block;border:1px solid #ffffff55;background:#ffffff20;border-radius:999px;padding:8px 13px;color:white;font-size:13px;font-weight:800}
.es3-companion-wrap{position:relative;min-width:190px;height:185px;display:flex;align-items:center;justify-content:center;z-index:1}
.es3-companion{width:132px;height:139px;border-radius:51% 49% 45% 48%;position:relative;background:linear-gradient(145deg,#ffdb6e,#ff9e58 85%);box-shadow:inset -13px -15px 0 #ec814c57,0 19px 26px #3f176a4d;transform:rotate(-6deg);animation:es3-bob 3s ease-in-out infinite}
.es3-face{position:absolute;left:34px;top:52px;display:flex;gap:37px}.es3-face i{width:8px;height:13px;border-radius:100%;background:#4d2d5e;animation:es3-blink 4.7s infinite}
.es3-smile{position:absolute;left:13px;top:16px;width:29px;height:15px;border-bottom:5px solid #4d2d5e;border-radius:0 0 40px 40px}
.es3-blush{position:absolute;top:77px;width:17px;height:8px;border-radius:50%;background:#e969647d}.es3-blush.left{left:17px}.es3-blush.right{right:22px}
.es3-speech{position:absolute;right:-5px;top:4px;transform:rotate(8deg);background:#fff;color:#6d48d4;border-radius:18px 18px 18px 4px;padding:9px 13px;font-weight:950;box-shadow:0 8px 18px #0002;font-size:14px;animation:es3-bubble 3s ease-in-out infinite}
.es3-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(285px,.85fr);gap:19px}
.es3-daily-main,.es3-daily-side{display:grid;gap:19px;align-content:start}
.es3-feature-card,.es3-score-card,.es3-week-card,.es3-backup-card{border-radius:26px;background:white;border:1px solid #eee9fb;box-shadow:0 13px 30px #493c7d0b;padding:24px}
.es3-section-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
.es3-section-head h2{color:#302b53;font-weight:950;font-size:clamp(21px,2.3vw,28px);line-height:1.2;letter-spacing:-.6px;margin:8px 0 8px}
.es3-section-head p{font-size:13px;color:#777389;margin:0;line-height:1.55}
.es3-ring-wrap{width:110px;height:110px;position:relative;flex:none}
.es3-ring{width:100%;height:100%;filter:drop-shadow(0 5px 8px #7554e818)}
.es3-ring circle:last-child{transition:stroke-dashoffset .65s cubic-bezier(.2,.8,.3,1)}
.es3-ring-wrap>div{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}
.es3-ring-wrap strong{font-weight:950;font-size:23px;color:#7050d9}
.es3-ring-wrap small{font-weight:850;color:#9b90bd;font-size:11px}
.es3-step-title{font-weight:900;color:#4a3a75;margin-top:22px;margin-bottom:12px;font-size:14px}
.es3-goals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.es3-goal{cursor:pointer;min-height:80px;border-radius:17px;border:2px solid #e8e2f6;background:#fdfcff;color:#65548b;display:flex;flex-direction:column;justify-content:center;gap:3px;align-items:center;font:inherit;box-shadow:0 4px 0 #e8e2f6;transition:transform .16s,box-shadow .16s,border-color .16s}
.es3-goal strong{font-size:24px;font-weight:950}.es3-goal small{font-weight:850;font-size:11px}
.es3-goal.selected{color:#7549dd;border-color:#8b65f1;background:#f2ebff;box-shadow:0 4px 0 #cbb8f8}
.es3-goal:hover{transform:translateY(-2px)}.es3-goal:active{transform:translateY(2px);box-shadow:0 1px 0 #cbb8f8}
.es3-mix-toggle,.es3-modes{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.es3-mix-toggle button,.es3-mode{background:#f7f5ff;color:#665889;border:1.5px solid #e9e2ff;min-height:42px;border-radius:13px;padding:9px 12px;font-size:12px;font-weight:850;cursor:pointer;transition:transform .15s;touch-action:manipulation}
.es3-mix-toggle button.selected,.es3-mode.chosen{background:#7851ec;color:#fff;border-color:#7851ec;box-shadow:0 3px 0 #5935bb}
.es3-mix-toggle button:hover,.es3-mode:hover{transform:translateY(-2px)}
.es3-helper{font-size:12px;color:#817b97;line-height:1.55;margin:9px 0}
.es3-recipe{border:1.5px solid #ece6f9;background:#fbfaff;border-radius:18px;padding:11px 12px}
.es3-recipe-row{display:grid;grid-template-columns:37px minmax(112px,1fr) minmax(100px,1.35fr) 22px;align-items:center;gap:9px;padding:7px 0}
.es3-recipe-row label{font-size:12px;color:#51466e;font-weight:800}
.es3-recipe-row input{accent-color:#8662e4;min-width:0;cursor:pointer;width:100%;height:28px}
.es3-recipe-row strong{color:#7355c6;font-size:14px}
.es3-recipe-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;font-size:19px}
.es3-preview-mix{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 18px}
.es3-mix-chip{padding:6px 10px;border-radius:99px;font-size:12px;font-weight:900}
.es3-mix-chip.violet,.es3-recipe-icon.violet{background:#f0e9ff;color:#7554cf}
.es3-mix-chip.coral,.es3-recipe-icon.coral{background:#ffebe5;color:#e06a53}
.es3-mix-chip.lemon,.es3-recipe-icon.lemon{background:#fff3ca;color:#926714}
.es3-mix-chip.blue,.es3-recipe-icon.blue{background:#e4f3ff;color:#3881c9}
.es3-mix-chip.sky,.es3-recipe-icon.sky{background:#e4faff;color:#209cae}
.es3-mix-chip.rose,.es3-recipe-icon.rose{background:#fff0f6;color:#c75b88}
.es3-mix-chip.mint,.es3-recipe-icon.mint{background:#e5faee;color:#258865}
.es3-main-cta{background:linear-gradient(115deg,#7853e6,#9a62ed);color:#fff;border:0;border-radius:17px;padding:15px 21px;min-height:55px;font:inherit;font-weight:950;font-size:15px;box-shadow:0 6px 0 #5f3cb6,0 10px 15px #7b56e92a;cursor:pointer;width:100%;display:flex;align-items:center;justify-content:center;gap:10px;transition:transform .15s,box-shadow .15s}
.es3-main-cta span{margin-left:auto;font-size:23px}.es3-main-cta:hover{transform:translateY(-2px);box-shadow:0 8px 0 #5f3cb6,0 12px 18px #7b56e92a}.es3-main-cta:active{transform:translateY(4px);box-shadow:0 2px 0 #5f3cb6}
.es3-score-card{background:linear-gradient(148deg,#fff9ed,#fffefc);border-color:#fce8bb}
.es3-score-card .es3-eyebrow{color:#aa7b1c}
.es3-score-main{display:flex;gap:13px;align-items:center;margin:16px 0 7px}
.es3-score-main>span{font-size:39px;animation:es3-star-wiggle 5s ease-in-out infinite}
.es3-score-main strong{display:block;font-size:36px;font-weight:950;color:#6e4bcf;line-height:1}
.es3-score-main small{color:#8a789c;font-weight:850}
.es3-text-button{padding:5px 0;border:0;background:transparent;color:#7955c9;font-size:12px;font-weight:900;cursor:pointer;text-align:left}
.es3-score-steps{display:grid;gap:7px;border-top:1px dashed #eadcb8;margin-top:16px;padding-top:15px}
.es3-score-steps span{display:flex;justify-content:space-between;color:#695c73;font-size:12px;gap:6px}
.es3-score-steps b{color:#6048af}
.es3-week-card{background:linear-gradient(145deg,#f5f2ff,#fff)}.es3-week-card .es3-eyebrow{color:#7955d7}
.es3-week-card h3{margin:8px 0 16px;color:#463e71;font-size:19px}
.es3-weekly{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.es3-weekly>div{height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:12px;background:#ece8f7;color:#a49abf;gap:1px}
.es3-weekly>div.active{background:#fff0c9;color:#a66d20}
.es3-weekly>div.today{outline:2px solid #a992ed}
.es3-weekly span{font-size:19px;font-weight:900}.es3-weekly small{font-size:10px;font-weight:900}
.es3-week-card p{color:#78708e;font-size:12px;line-height:1.5;margin:16px 0 0}
.es3-backup-card{display:flex;align-items:center;gap:11px;background:#edfbf6;border-color:#c8eee2;padding:15px}
.es3-backup-card>span{font-size:26px}.es3-backup-card>div{min-width:0;flex:1}.es3-backup-card b{font-size:12px;color:#337264}.es3-backup-card p{font-size:11px;margin:4px 0 0;color:#668d83}
.es3-mini-sync{border:0;border-radius:11px;background:#229f85;color:#fff;min-height:38px;padding:8px 12px;font-weight:900;cursor:pointer}
.es3-level-card .es3-sticker{font-size:34px;animation:es3-sway 4s infinite}
.es3-complete-banner{background:#e7f9eb;color:#358452;padding:15px;border-radius:15px;font-weight:850;line-height:1.7}
.es3-simple-hero{display:flex;align-items:center;justify-content:space-between;gap:15px;background:linear-gradient(125deg,#6a49d8,#b16eea);color:white;border-radius:29px;padding:27px 30px;margin-bottom:20px;box-shadow:0 18px 30px #865ed92a}
.es3-simple-hero .es3-eyebrow{color:#efdaff}.es3-simple-hero h1{font-size:clamp(26px,3.5vw,37px);line-height:1.2;margin:8px 0;color:white;letter-spacing:-.7px}
.es3-simple-hero p{margin:0;color:#eee5ff;font-size:14px}.es3-hero-emoji{font-size:56px;animation:es3-bob 3s infinite}
.es3-skills-setup{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:23px;background:#fff;border:1px solid #ece6fa;border-radius:25px;margin-bottom:17px}
.es3-skills-setup h2{margin:0 0 7px;font-size:20px;color:#403360}.es3-skills-setup p{color:#857b9f;font-size:13px;margin:0}.es3-skills-level{font-size:12px;font-weight:800;color:#645687}.es3-skills-modes{grid-column:1/-1}
.es3-skill-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.es3-skill{border-radius:24px;min-height:221px;padding:20px;display:flex;flex-direction:column;gap:8px;border:1px solid #ffffffad;box-shadow:0 9px 18px #59499114;animation:es3-rise .43s both;animation-delay:var(--delay)}
.es3-skill.violet{background:#eee7ff}.es3-skill.coral{background:#fff0e8}.es3-skill.lemon{background:#fff5d5}.es3-skill.blue{background:#e7f4ff}.es3-skill.sky{background:#e8f9fb}.es3-skill.rose{background:#fff0f8}.es3-skill.mint{background:#e4f9ef}
.es3-skill-emoji{font-size:35px;display:block;animation:es3-sway 3.7s infinite}
.es3-skill h3{font-size:18px;color:#3a3152;font-weight:950;margin:2px 0}.es3-skill p{color:#6d6583;font-size:12px;line-height:1.4;margin:0}
.es3-skill-play{margin-top:auto;cursor:pointer;width:100%;border:0;background:white;min-height:44px;border-radius:13px;font-size:12px;color:#5d469a;font-weight:950;display:flex;align-items:center;justify-content:space-between;padding:10px 13px;box-shadow:0 4px 0 #ffffff80;transition:transform .16s}
.es3-skill-play:hover{transform:translateY(-2px)}
.es3-library-reminder{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#fff;border:1px solid #eee8fa;border-radius:22px;margin-top:19px;padding:18px 20px}
.es3-library-reminder h3{margin:0 0 5px;color:#4a3b68}.es3-library-reminder p{margin:0;color:#817a91;font-size:12px}
.es3-session-top{display:flex;align-items:center;gap:10px;justify-content:space-between;margin:0 0 14px}
.es3-back{font:inherit;border:0;background:#efe9ff;color:#7354ca;border-radius:13px;min-height:40px;padding:8px 13px;font-weight:850;cursor:pointer}
.es3-question-counter{font-size:17px;font-weight:950;color:#6b50c7}.es3-quest-chip{font-size:11px;font-weight:850;padding:8px 11px;border-radius:99px;background:#fdf0cf;color:#8e671e}
.es3-rail-wrap{background:#fff;border-radius:19px;border:1px solid #eae6f8;padding:13px;margin-bottom:12px;box-shadow:0 7px 18px #4b409a0b}
.es3-rail-top{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:11px}
.es3-rail-top b{color:#6651c1;font-size:13px}.es3-rail-top span{color:#8d86a0;font-size:11px}
.es3-rail{display:flex;flex-wrap:wrap;gap:7px;max-height:128px;overflow:auto}
.es3-dot{border:1.5px solid #e2dcf2;background:#f9f7ff;color:#8c83a6;font-weight:900;width:36px;height:36px;border-radius:11px;font:inherit;font-size:12px;cursor:pointer;transition:transform .13s}
.es3-dot:hover{transform:scale(1.08)}.es3-dot.done{background:#dff5eb;border-color:#73cdad;color:#348967}.es3-dot.wrong{background:#fff0ec;border-color:#f3b8a6;color:#c1775d}.es3-dot.current{background:#7f58e7;border-color:#7f58e7;color:white;box-shadow:0 3px 0 #5b3bb5;transform:translateY(-2px)}
.es3-question-progress{margin-bottom:15px}
.es3-question-heading{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:13px}
.es3-type-chip{border-radius:99px;padding:7px 12px;background:#eee8ff;color:#6850ab;font-weight:850;font-size:12px}
.es3-type-chip.coral{background:#ffe9e3;color:#c66955}.es3-type-chip.lemon{background:#fff2c6;color:#a16c1d}.es3-type-chip.blue{background:#e9f3ff;color:#4480c6}.es3-type-chip.sky{background:#e4faff;color:#318b9f}.es3-type-chip.rose{background:#ffeaf5;color:#b45682}.es3-type-chip.mint{background:#e4f9ed;color:#358b67}
.es3-level-tag{color:#7c7395;font-weight:900;font-size:12px}.es3-question-heading .es2-flag{margin-left:auto}
.es3-question-card{max-width:880px;margin:auto}.es3-question-card .es2-qstem{font-size:clamp(19px,2.6vw,25px)}
.es3-tile-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0}
.es3-reset{background:#fff0ea;color:#cc6b55;border:1.5px solid #ffd0c2;min-height:37px;padding:7px 12px;border-radius:11px;font-size:12px;font-weight:900;cursor:pointer;flex-shrink:0}
.es3-reset:disabled{opacity:.45}.es3-reset:hover:not(:disabled){background:#ffe4d9}
.es3-victory{background:linear-gradient(155deg,#f7f0ff,#fff8e7 58%,#ecfff6);border-radius:30px;text-align:center;padding:35px 22px;box-shadow:0 15px 34px #7e67bc21;position:relative;overflow:hidden}
.es3-victory .es3-companion-wrap{margin:auto;height:165px}.es3-victory .es3-companion{width:120px;height:127px}.es3-victory .es3-eyebrow{color:#7a57d2}
.es3-victory h1{font-size:clamp(27px,3vw,39px);color:#4f3e8d;margin:9px 0}.es3-victory p{color:#817795;font-size:14px}
.es3-victory-stars{font-size:29px;animation:es3-sway 3s infinite}
.es3-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;max-width:610px;margin:23px auto}
.es3-results>div{background:white;border:1px solid #efe6ff;border-radius:19px;padding:18px 10px;display:flex;flex-direction:column;gap:7px}
.es3-results strong{font-size:25px;color:#7754cb;font-weight:950}.es3-results span{color:#817793;font-size:12px;font-weight:800}
.es3-victory-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:13px;max-width:720px;margin:auto}.es3-victory-actions .es3-main-cta{flex:1 1 100%}.es3-victory-actions .es2-btn{flex:1 1 auto}
.es3-float-xp{position:fixed;z-index:999;top:29%;left:50%;transform:translateX(-50%);padding:12px 18px;border-radius:15px;color:#8055cf;background:#fff6c7;border:2px solid #f5db8e;box-shadow:0 14px 26px #4c3c9d30;font-size:20px;font-weight:950;pointer-events:none;animation:es3-xp 1.03s both}
.es3-float-xp.try{background:#ebfaf1;color:#279970;border-color:#b7ebd0}
.es3-starburst{position:fixed;inset:0;z-index:999;pointer-events:none;overflow:hidden}.es3-starburst span{position:absolute;top:70%;left:50%;font-size:26px;animation:es3-confetti 2s ease-out both;animation-delay:var(--delay)}
.es3-footer{color:#9990ab;text-align:center;padding:20px 12px;font-size:11px;line-height:1.5}
/* Global quick backup action; user selects a destination where the browser supports it. */
.es3-sidebar-sync{background:linear-gradient(145deg,#ece7ff,#e6fbf2);border:1px solid #d8cef9;border-radius:18px;padding:15px 12px;display:flex;flex-direction:column;gap:8px}
.es3-sidebar-sync b{font-size:13px;color:#5943a5}.es3-sidebar-sync p{font-size:11px;margin:0;color:#81789f;line-height:1.5}.es3-sidebar-sync button{border:0;cursor:pointer;background:#7c58e5;color:white;padding:10px 12px;border-radius:12px;font-weight:950;min-height:40px}
.es3-sidebar-sync .es3-sync-caption{font-size:10px;color:#8883a0}
.es3-mobile-sync{display:none}
@keyframes es3-rise{0%{opacity:0;transform:translateY(15px)}100%{opacity:1;transform:translateY(0)}}
@keyframes es3-tile-in{0%{opacity:.5;transform:scale(.95)}100%{opacity:1;transform:scale(1)}}
@keyframes es3-bob{0%,100%{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-10px) rotate(3deg)}}
@keyframes es3-bubble{0%,100%{transform:translateY(0) rotate(8deg)}50%{transform:translateY(-5px) rotate(7deg)}}
@keyframes es3-blink{0%,43%,47%,100%{transform:scaleY(1)}45%{transform:scaleY(.1)}}
@keyframes es3-sway{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(7deg)}}
@keyframes es3-star-wiggle{0%,90%,100%{transform:rotate(0deg)}93%{transform:rotate(-16deg)}96%{transform:rotate(12deg)}}
@keyframes es3-xp{0%{opacity:0;transform:translate(-50%,40px) scale(.7)}25%{opacity:1;transform:translate(-50%,0) scale(1.09)}90%{opacity:1}100%{opacity:0;transform:translate(-50%,-68px) scale(.93)}}
@keyframes es3-confetti{0%{opacity:1;transform:translate(0,0) rotate(0)}100%{opacity:0;transform:translate(var(--x),var(--y)) rotate(350deg)}}
@media(max-width:1080px){.es3-layout{grid-template-columns:minmax(0,1.3fr) minmax(230px,.8fr)}.es3-skill-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.es3-layout{grid-template-columns:1fr}.es3-daily-side{grid-template-columns:repeat(2,minmax(0,1fr))}.es3-backup-card{grid-column:1/-1}.es3-big-hero{padding:24px;min-height:200px}.es3-companion-wrap{transform:scale(.8);margin-right:-20px}.es3-rail{flex-wrap:nowrap;max-height:none;overflow-x:auto;padding:3px 0 6px;scrollbar-width:thin}.es3-dot{flex:none;width:38px;height:38px}.es3-mobile-sync{display:block;position:fixed;z-index:45;bottom:76px;right:16px;border:0;width:48px;height:48px;border-radius:18px;background:#7550dc;color:white;box-shadow:0 9px 23px #7652d455;font-size:22px;cursor:pointer}.es3-rail-wrap{position:sticky;top:4px;z-index:12;box-shadow:0 4px 18px #ddd2fa8a}.es3-session-top{flex-wrap:wrap}}
@media(max-width:540px){.es3-big-hero{min-height:215px}.es3-hero-copy h1{font-size:31px}.es3-hero-copy p{font-size:12px;max-width:220px}.es3-companion-wrap{transform:scale(.59);transform-origin:right center;margin-left:-75px;margin-right:-41px;min-width:135px}.es3-feature-card,.es3-score-card,.es3-week-card,.es3-backup-card{padding:17px;border-radius:19px}.es3-daily-side{grid-template-columns:1fr}.es3-ring-wrap{width:85px;height:85px}.es3-ring-wrap strong{font-size:17px}.es3-section-head h2{font-size:21px}.es3-score-card{padding:18px}.es3-skill-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.es3-skill{min-height:220px;padding:14px;border-radius:18px}.es3-skill h3{font-size:15px}.es3-skill-emoji{font-size:30px}.es3-skills-setup{grid-template-columns:1fr}.es3-skills-modes{grid-column:auto}.es3-simple-hero{padding:21px}.es3-hero-emoji{font-size:40px}.es3-rail-top span{font-size:10px}.es3-question-card{padding:15px}.es3-question-counter{font-size:14px}.es3-quest-chip{font-size:10px}.es3-result strong{font-size:20px}.es3-recipe-row{grid-template-columns:32px minmax(90px,1fr) minmax(75px,1fr) 16px;gap:6px}.es3-recipe-row label{font-size:11px}.es3-modes{gap:6px}.es3-mode{font-size:11px;padding:8px;flex:1 1 28%}}
@media(prefers-reduced-motion:reduce){.es3-enter,.es3-companion,.es3-speech,.es3-face i,.es3-score-main>span,.es3-skill,.es3-skill-emoji,.es3-hero-emoji,.es3-level-card .es3-sticker,.es3-float-xp,.es3-starburst span,.es2-tile,.es2-feedback{animation:none!important;transition:none!important}}
body.es3-reduce-motion .es3-enter,body.es3-reduce-motion .es3-companion,body.es3-reduce-motion .es3-speech,body.es3-reduce-motion .es3-skill,body.es3-reduce-motion .es3-skill-emoji,body.es3-reduce-motion .es3-float-xp{animation:none!important;transition:none!important}

/* Final contrast and accessibility refinements */
body.es3-app .sidebar .navbtn:not(.active){color:#625b7b}
body.es3-app .sidebar .brand b{color:#4f3f78}
body.es3-app .sidebar .brand small{color:#897f9e}
.es3-motion-switch{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:750;color:#66597e;margin-top:18px}
.es3-motion-switch input{width:18px;height:18px;accent-color:#7851e8}
@media(max-width:540px){.es3-companion-wrap{transform:scale(.58);transform-origin:center center;margin-left:-85px;margin-right:5px;min-width:135px}.es3-hero-copy{max-width:235px}.es3-speech{right:-2px}}

/* Espaniva 3.1: coherent purple experience across legacy and modern routes */
body.es3-app{--navy:#6042ad;--deep:#3a2a6c;--teal:#7751e8;--teal2:#6846cc;--ink:#30294b;--muted:#7a7291;--bg:#fbfaff;--line:#eae4f5;--soft:#f0eaff;--shadow:0 12px 30px rgba(82,56,142,.08)}
body.es3-app .page-title{color:#392866}
body.es3-app .topbar .eyebrow,body.es3-app .paper-tag,body.es3-app .paper-score{color:#7751d6}
body.es3-app .btn{background:linear-gradient(120deg,#7651e8,#9868ef);color:#fff;border-color:transparent}
body.es3-app .btn.secondary{background:#f4efff;color:#6746bb;border:1px solid #dccdf8}
body.es3-app .btn.ghost{background:#efe8ff;color:#6a4abb}
body.es3-app .btn.danger{background:#fff1f0;color:#aa4251;border-color:#f9d2d2}
body.es3-app .card{border-color:#eae3f8;box-shadow:0 10px 26px #6752a412}
body.es3-app .progress-fill,body.es3-app .paper-progress>div,body.es3-app .meter-bar div{background:linear-gradient(100deg,#7955e9,#b28af2)}
body.es3-app .answer:hover:not(:disabled){background:#faf7ff;border-color:#a891ee}
body.es3-app .answer.chosen{border-color:#8d6de9;background:#f2ebff}
body.es3-app .answer.right{border-color:#45aa80;background:#ebfaf1}
body.es3-app .answer.wrong{border-color:#dc7b7b;background:#fff1f1}
body.es3-app .seg button.sel{background:#eae2ff;color:#6744b5;border-color:#a58ae6}
body.es3-app .qnav.current{outline-color:#7851e8}
body.es3-app .qnav.done{background:#eae2ff;border-color:#ae9aec}
body.es3-app .notice,body.es3-app .hint,body.es3-app .explanation{border-color:#e2d9fb;background:#f8f5ff}
body.es3-app .guide-hero,body.es3-app .es2-homepromo{background:linear-gradient(115deg,#7652e5,#ac70ec);color:#fff}
body.es3-app .pill{border-color:#dbd2f1;color:#6845bd;background:#fff}
body.es3-app .answer-notice{background:#f0e9ff;color:#6041b2}
body.es3-app .es3-sidebar-sync{background:linear-gradient(150deg,#f0e9ff,#fff4fc)}
body.es3-app .es3-sync-caption{color:#7c6aaf}
body.es3-app .sidebar{background:#fff}
body.es3-app .sidebar .brand{border-bottom-color:#eee6fb}
body.es3-app .sidebar .brand .mark{background:#7754e7;color:white;border-color:#7754e7}
body.es3-app .sidebar .left-status{background:transparent;border:0;padding:0}
body.es3-app .navbtn,body.es3-app .mobilebar button{transition:background .17s,color .17s,transform .16s}
body.es3-app .navbtn.active{background:#7954e8;color:white}
body.es3-app .navbtn:not(.active):hover{background:#f4efff;color:#6144a5}
body.es3-app .mobilebar button.sel{color:#744ce1}
.es3-library-return{display:flex;gap:10px;flex-wrap:wrap;margin:13px 0 21px}
.es3-hubhero{background:linear-gradient(112deg,#7050e4,#b56ee9);color:white;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:32px;border-radius:28px;min-height:225px;overflow:hidden}
.es3-hubhero h1{font-size:clamp(28px,3.6vw,43px);line-height:1.13;margin:8px 0;color:white;letter-spacing:-.7px}
.es3-hubhero p{color:#f1eaff;line-height:1.55;max-width:590px;margin:0}
.es3-hubhero .es3-eyebrow{color:#ffe4a4}
.es3-hubhero .es3-companion-wrap{flex-shrink:0;margin-right:8px}
.es3-hubstats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:19px 0}
.es3-hubstat{border:1px solid #ede5fb;background:#fff;border-radius:20px;padding:19px;display:flex;flex-direction:column;gap:6px;box-shadow:0 9px 22px #7456ba0a}
.es3-hubstat span{font-size:25px}.es3-hubstat strong{font-size:clamp(23px,3vw,35px);color:#6747c3;letter-spacing:-.6px;line-height:1.05}.es3-hubstat small{font-size:12px;color:#847b9d}
.es3-hubchoices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
.es3-hubchoice{border:1px solid #eae3f7;border-radius:25px;padding:23px;display:flex;flex-direction:column;gap:12px;box-shadow:0 10px 22px #6e53ad10;min-height:220px}
.es3-hubchoice-0{background:#f2ecff}.es3-hubchoice-1{background:#fff2db}.es3-hubchoice-2{background:#e7f7f4}
.es3-hubchoice .es3-hubicon{font-size:36px}.es3-hubchoice h2{font-size:19px;color:#3f306b;margin:0}.es3-hubchoice p{font-size:13px;color:#746988;margin:0;line-height:1.5}
.es3-hubchoice button{background:white;color:#6241b7;border:1px solid #ece3fa;border-radius:12px;cursor:pointer;font-weight:850;padding:12px 15px;text-align:left;margin-top:auto}
.es3-hubchoice button:hover{transform:translateY(-2px)}
.es3-widecard{background:white;border:1px solid #eae2fa;border-radius:24px;padding:22px;margin:16px 0;box-shadow:0 10px 22px #6e53ad0b}
.es3-widecard h2{margin:0 0 16px;color:#433474;font-size:21px}.es3-widecard-title{display:flex;justify-content:space-between;align-items:center;gap:12px}
.es3-weekbars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;align-items:end;height:142px;margin:12px 0}
.es3-weekbars>div{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:5px;color:#817498;font-size:12px}
.es3-weekbar{background:linear-gradient(#ba90ff,#7854e6);border-radius:9px 9px 3px 3px;min-width:22px;max-width:54px;width:65%;transition:height .4s}
.es3-weekbars small{font-size:11px}.es3-analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.es3-skillmeter{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;margin:15px 0;font-size:12px;color:#665482}
.es3-skillmeter>div{grid-column:1/-1;height:8px;background:#f0ebf9;border-radius:99px;overflow:hidden}.es3-skillmeter i{display:block;height:100%;background:linear-gradient(90deg,#7652e5,#b88af6);border-radius:99px}
.es3-skillmeter small{grid-column:1/-1;color:#9186a9}
.es3-logrow{display:flex;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid #f0eafa;font-size:12px;color:#685c80}
.es3-actionlink{border:0;cursor:pointer;background:#f0eaff;border-radius:12px;color:#6845c0;padding:12px 15px;font-weight:800;margin-top:10px}
.es3-step-controls{display:flex;justify-content:space-between;flex-wrap:wrap;align-items:center;gap:10px;width:100%}
.es3-step-controls .es2-btn{flex:1 1 120px}
.es3-rail-wrap{overflow:visible}.es3-rail{max-height:none;overflow:visible;padding:7px 7px 9px;gap:8px}
.es3-dot{transform-origin:center}.es3-dot:hover{transform:translateY(-1px)}.es3-dot.current{transform:none;box-shadow:0 3px 0 #5b3bb5}.es3-dot.current:hover{transform:translateY(-1px)}
.es3-hero-buddy{position:relative;min-width:155px;display:flex;justify-content:center;align-items:center}
.es3-hero-buddy .es3-companion-wrap{transform:scale(.68);transform-origin:center;min-width:155px;width:155px;height:120px}
.es3-hero-buddy .es3-hero-emoji{position:absolute;bottom:3px;right:0;font-size:27px}
.es3-tiny-buddy{font-size:23px;line-height:1}
@media(max-width:900px){.es3-hubstats{grid-template-columns:repeat(2,minmax(0,1fr))}.es3-hubchoices{grid-template-columns:1fr}.es3-analytics-grid{grid-template-columns:1fr}.es3-hubchoice{min-height:unset}}
@media(max-width:760px){.es3-rail-wrap{position:static;top:auto}.es3-rail{flex-wrap:nowrap;max-height:none;overflow-x:auto;overflow-y:hidden;padding:9px 8px 15px;scroll-padding:8px}.es3-hubhero{padding:21px;min-height:195px}}
@media(max-width:540px){.es3-hubhero .es3-companion-wrap{transform:scale(.53);transform-origin:right center;min-width:110px;margin-left:-70px;margin-right:-24px}.es3-hubhero h1{font-size:28px}.es3-hubhero p{font-size:12px}.es3-hubstat{padding:14px;border-radius:17px}.es3-hubstat strong{font-size:25px}.es3-hubstat small{font-size:11px}.es3-hubchoice{padding:17px}.es3-hero-buddy .es3-companion-wrap{transform:scale(.46);margin-left:-65px}.es3-hero-buddy{min-width:92px}.es3-simple-hero h1{font-size:24px}.es3-step-controls .es2-btn{flex:1 1 100px}}

.es3-classic-buddy{display:flex;justify-content:flex-end;height:71px;overflow:visible;margin-bottom:6px}
.es3-classic-buddy .es3-companion-wrap{transform:scale(.38);transform-origin:right top;min-width:192px;height:180px;margin-right:-2px}
.es3-classic-buddy .es3-companion{animation-duration:4.5s}
@media(max-width:540px){.es3-classic-buddy{height:58px}.es3-classic-buddy .es3-companion-wrap{transform:scale(.30);height:160px;margin-right:8px}}

.es3-legacy-hint-control{margin:-6px 0 17px;display:flex;gap:10px}.es3-legacy-hint-text{background:#f0eaff;border:1px solid #d8c9f9;padding:13px 15px;margin-bottom:16px;border-radius:14px;font-size:13px;line-height:1.55;color:#514177}.es3-legacy-hint-text .tiny{margin:6px 0 0}

@media(max-width:540px){.es3-hubhero .es3-companion-wrap{transform:scale(.48);transform-origin:center center;margin-left:-75px;margin-right:10px}.es3-hubhero .es3-speech{right:-20px}}

.es3-resume-card{display:flex;align-items:center;gap:15px;flex-wrap:wrap;background:linear-gradient(120deg,#f4edff,#fffaed);border:1px solid #e9dcfa;border-radius:20px;padding:15px 18px;margin:0 0 15px}.es3-resume-card>span{font-size:29px}.es3-resume-card>div{flex:1;min-width:190px}.es3-resume-card b{color:#4c3a80}.es3-resume-card p{font-size:12px;color:#817399;margin:5px 0 0}.es3-resume-card .es2-btn{margin-left:auto}
body.es3-app .test-banner{background:#f1eaff;border-color:#dfd2fa;color:#6948b9}body.es3-app .test-banner .progress-track{background:#e6dcfa}body.es3-app .test-banner .tiny{color:#7d6a9e}

/* Espaniva 3.2: readable purple surfaces and motion refinements */
/* Skill category icons remain stationary; completion fireworks and mascot can still move. */
body.es3-app .es3-skill-emoji,
body.es3-app .es3-hero-emoji,
body.es3-app .es3-level-card .es3-sticker {animation:none!important; transform:none!important;}
/* Purple hero panels must not inherit dark teal or green copy from old themes. */
body.es3-app .guide-hero h2,
body.es3-app .es2-homepromo h2,
body.es3-app .guide-hero h3,
body.es3-app .es2-homepromo h3 {color:#fff!important;}
body.es3-app .guide-hero p,
body.es3-app .es2-homepromo p,
body.es3-app .guide-hero .tiny,
body.es3-app .es2-homepromo .tiny {color:#f6efff!important;opacity:1;line-height:1.65;}
body.es3-app .guide-hero .btn,
body.es3-app .es2-homepromo .btn,
body.es3-app .guide-hero button,
body.es3-app .es2-homepromo button {
  background:#fff!important;color:#5732a0!important;border:1px solid #eadfff!important;
  box-shadow:0 3px 0 rgba(48,29,100,.17)!important;
  text-shadow:none!important;font-weight:850;
}
body.es3-app .guide-hero .btn:hover,
body.es3-app .es2-homepromo .btn:hover {background:#fff6da!important;color:#3c277a!important;}
/* Legible progress map: neutral unanswered, blue answered, purple focused, distinct graded feedback. */
body.es3-app .qnav{background:#fff;color:#332a50;border:1.5px solid #d6d1e4;box-shadow:none;font-weight:850;}
body.es3-app .qnav.done{background:#e5efff;border-color:#9ab8eb;color:#234a83;}
body.es3-app .qnav.good{background:#e9f8ee;border-color:#57aa83;color:#186144;}
body.es3-app .qnav.bad{background:#fff0ec;border-color:#de8676;color:#89392d;}
body.es3-app .qnav.current{background:#6843d3;border-color:#6843d3;color:#fff;outline:2px solid #3b207f;outline-offset:1px;box-shadow:0 2px 7px rgba(70,43,131,.24);}
body.es3-app .qnav:focus-visible{outline:3px solid #ffbb45;outline-offset:2px;}
body.es3-app .qnav.flag{box-shadow:inset 0 -3px #edac35;}
/* Workshop prompt changes only its contents, never the hero or page position. */
body.es3-app .es2-prompt-feedback{margin:2px 0 10px;color:#5541a3;font-size:12px;font-weight:800;background:#f2edff;border:1px solid #dfd1ff;border-radius:10px;padding:9px 11px;}
body.es3-app #es2-prompt{scrollbar-color:#c8b9e8 #faf8ff;}
/* Legacy badges stay dark-on-light; avoid mint or green colored text on purple. */
body.es3-app .bigbadge{background:#f0ebff;color:#593d9b;border-color:#d9caf9;}
body.es3-app .guide-card h3{color:#493476;}
/* Accessible view in which contrast does not depend only on colors. */
body.es3-app .guide-hero a{color:#fff;}

.es3-skill-availability{font-weight:800;font-size:13px;line-height:1.3;margin:11px 0!important;opacity:.92}.es3-skill-availability b{font-size:19px}.es3-skill-availability small{display:block;font-weight:600;font-size:10px;margin-top:4px;opacity:.85}.es3-skill-play:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(.5)}

/* Espaniva 3.5: question-status filters and historic sessions */
.es35-status-filters{display:flex;gap:8px;flex-wrap:wrap;margin:9px 0 12px}
.es35-status-filters button{font:inherit;cursor:pointer;font-size:12px;font-weight:800;border-radius:13px;padding:11px 13px;border:2px solid #e9e3f8;background:#f9f7ff;color:#58488b;transition:background .15s,border-color .15s,transform .15s}
.es35-status-filters button.selected{background:#6645d7;color:#fff;border-color:#6645d7;box-shadow:0 3px 12px #674bd522}
.es35-status-filters button:hover{border-color:#a18af4;transform:translateY(-1px)}
.es3-weekly>button{font:inherit;border:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;cursor:pointer;height:58px;border-radius:12px;background:#ece8f7;color:#a49abf}
.es3-weekly>button.active{background:#fff0c9;color:#a66d20}
.es3-weekly>button.today{outline:2px solid #a992ed}
.es3-weekly>button:hover{filter:brightness(.95);box-shadow:0 3px 10px #9f8ed244}
.es3-weekly>button span{font-size:19px;font-weight:900}
.es3-weekly>button small{font-size:10px;font-weight:900}
.es35-history-list{margin-top:14px;padding-top:12px;border-top:1px solid #e9e0fc;display:grid;gap:5px;max-height:285px;overflow:auto}
.es35-history-list>b{font-size:12px;color:#514275;padding:4px}
.es35-history-list button{border:1px solid #ede7ff;background:#faf8ff;border-radius:9px;font:inherit;color:#52407b;padding:10px;cursor:pointer;font-weight:750;display:flex;justify-content:space-between;gap:10px;align-items:center;text-align:left;font-size:11px}
.es35-history-list button:hover{background:#eee8ff}
.es35-log-button{width:100%;font:inherit;cursor:pointer;text-align:left;border:0;background:transparent;border-bottom:1px solid #f0eaff}
.es35-log-button:hover{background:#f8f4ff}
.es3-weekbars>button{border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:end;height:100%;min-height:120px;min-width:0;width:100%}
.es3-weekbars>button:hover{background:#f9f5ff}
.es3-weekbars>button .es3-weekbar{width:100%;max-width:30px}
.es35-shortcuts{font-size:11px;color:#68578a;margin-top:12px}
@media(max-width:550px){.es35-status-filters button{font-size:11px;padding:10px 9px}.es35-history-list button{font-size:10px}}


/* Espaniva 3.7 — mobile portrait composition, backup/restore and speech-bubble placement */
.es37-sidebar-actions{display:grid;grid-template-columns:1fr;gap:7px}
.es3-sidebar-sync .es37-restore-btn{background:#fff;color:#684ac2;border:1px solid #cbb9f4;box-shadow:0 2px 0 #d9cafe}
.es3-backup-card .es37-backup-actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}
.es3-mini-restore{border:1px solid #bca7e6;border-radius:11px;background:#fff;color:#694bc1;min-height:38px;padding:8px 12px;font-weight:900;cursor:pointer}
.es3-mobile-restore{display:none}
.es3-victory .es3-companion-wrap{height:171px;width:190px;margin:6px auto 0;overflow:visible}
.es3-victory .es3-speech{top:39px;right:-11px;transform:rotate(3deg);animation:none;z-index:3}
.es3-victory .es3-speech:after{content:'';position:absolute;left:12px;bottom:-8px;border-top:10px solid white;border-right:10px solid transparent}
.es3-hero-buddy .es3-hero-emoji{right:13px;bottom:17px;font-size:27px;animation:none}
.es3-hero-buddy .es3-companion-wrap{margin:0;flex:none}
@media(max-width:760px){
  .es3-mobile-restore{display:block;position:fixed;z-index:45;bottom:133px;right:16px;border:1px solid #bba4f0;width:48px;height:48px;border-radius:18px;background:#fff;color:#7550dc;box-shadow:0 9px 23px #7652d433;font-size:26px;font-weight:900;cursor:pointer}
  .es3-big-hero{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:12px;align-items:center}
  .es3-big-hero .es3-hero-copy{min-width:0;max-width:none}
  .es3-big-hero > .es3-companion-wrap{width:150px;min-width:150px;height:165px;margin:0!important;transform:scale(.78);transform-origin:center center;justify-self:center}
  .es3-simple-hero{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:10px;align-items:center}
  .es3-simple-hero > div:first-child{min-width:0}
  .es3-simple-hero .es3-hero-buddy{width:150px;min-width:150px;height:146px;justify-self:center}
  .es3-hero-buddy .es3-companion-wrap{min-width:155px;margin:0!important;transform:scale(.68)}
  .es3-hero-buddy .es3-hero-emoji{right:12px;bottom:18px}
}
@media(max-width:540px){
  .es3-big-hero{grid-template-columns:minmax(0,1fr) 114px;gap:8px;padding:20px 16px;min-height:228px}
  .es3-big-hero .es3-hero-copy{max-width:none}
  .es3-big-hero .es3-hero-copy h1{font-size:clamp(25px,7vw,30px);line-height:1.06;letter-spacing:-.8px}
  .es3-big-hero .es3-hero-copy p{max-width:none;font-size:11px;line-height:1.48}
  .es3-big-hero .es3-hero-meta{gap:5px;margin-top:12px}
  .es3-big-hero .es3-hero-meta span{font-size:10px;padding:6px 8px}
  .es3-big-hero > .es3-companion-wrap{min-width:114px;width:114px;height:157px;transform:scale(.57);transform-origin:center center;margin:0!important;align-self:center}
  .es3-big-hero .es3-speech{top:9px;right:-18px;font-size:14px;white-space:nowrap}
  .es3-simple-hero{grid-template-columns:minmax(0,1fr) 104px;gap:7px;padding:19px 15px;min-height:194px}
  .es3-simple-hero h1{font-size:clamp(22px,6vw,26px);line-height:1.13}
  .es3-simple-hero p{font-size:11px;line-height:1.5}
  .es3-simple-hero .es3-hero-buddy{width:104px;min-width:104px;height:125px;justify-self:center}
  .es3-simple-hero .es3-hero-buddy .es3-companion-wrap{transform:scale(.48);transform-origin:center center;min-width:155px;width:155px;height:145px;margin:0!important}
  .es3-simple-hero .es3-hero-emoji{font-size:23px;bottom:18px;right:0}
  .es3-simple-hero .es3-speech{right:-1px;top:12px}
  .es3-victory .es3-speech{right:-1px;top:43px}
  .es3-backup-card{flex-wrap:wrap}
  .es3-backup-card .es37-backup-actions{width:100%;justify-content:stretch}
  .es3-backup-card .es37-backup-actions button{flex:1 1 110px}
}
@media(max-width:360px){
  .es3-big-hero{grid-template-columns:minmax(0,1fr) 95px;gap:5px;padding:17px 11px}
  .es3-big-hero > .es3-companion-wrap{width:95px;min-width:95px;transform:scale(.49)}
  .es3-big-hero .es3-hero-copy h1{font-size:24px}
  .es3-simple-hero{grid-template-columns:minmax(0,1fr) 86px;gap:4px}
  .es3-simple-hero .es3-hero-buddy{min-width:86px;width:86px}
  .es3-simple-hero .es3-hero-buddy .es3-companion-wrap{transform:scale(.42)}
}

/* Victory has its own, labeled Backup and Restore actions; don't cover them with floating shortcuts. */
@media(max-width:760px){body.es3-app:has(.es3-victory) .es3-mobile-sync,body.es3-app:has(.es3-victory) .es3-mobile-restore{display:none}}

/* Espaniva 3.8: Skills Lab archive and one unified import workshop */
.es38-history-panel {margin:22px 0;padding:22px;border:1px solid #e0d6fc;border-radius:21px;background:linear-gradient(135deg,#faf8ff,#f3edff 75%,#fff);box-shadow:0 12px 26px #33204f0a}
.es38-history-header {display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}
.es38-history-header h2 {margin:4px 0 6px;font-size:24px;color:#312159}
.es38-history-header p {margin:0;color:#6c5c8a;font-size:13px;line-height:1.5}
.es38-history-count {flex-shrink:0;background:#ece3ff;color:#653ac7;border-radius:50px;padding:8px 12px;font-size:12px;font-weight:800}
.es38-history-list {display:flex;flex-direction:column;gap:9px;margin-top:12px;max-height:600px;overflow:auto;padding:2px}
.es38-history-entry {width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;background:white;color:#312159;border:1px solid #e8e0fc;border-radius:14px;padding:13px 16px;cursor:pointer;transition:border-color .16s,box-shadow .16s,transform .16s}
.es38-history-entry:hover {border-color:#8b67e8;box-shadow:0 6px 20px #7152bf20;transform:translateY(-1px)}
.es38-history-entry:focus-visible {outline:3px solid #8b67e8;outline-offset:2px}
.es38-history-title,.es38-history-score {display:flex;flex-direction:column;gap:5px;min-width:0}
.es38-history-title strong {font-size:14px;white-space:normal}
.es38-history-title small,.es38-history-score small {font-size:11px;color:#7d6d9e}
.es38-history-score {text-align:right;flex-shrink:0;color:#6543c3;font-size:14px}
.es38-import-overview {display:flex;flex-wrap:wrap;gap:9px;margin:12px 0 18px}
.es38-import-overview span {padding:8px 13px;background:#f3edff;color:#5834a5;border:1px solid #e9dffd;border-radius:99px;font-size:12px;font-weight:750}
.es38-import-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.es38-import-card {min-width:0;display:flex;flex-direction:column;gap:11px}
.es38-import-card h2 {color:#332056;margin:0;font-size:20px}
.es38-import-card p {font-size:13px;line-height:1.6;color:#665b83;margin:0}
.es38-card-icon {font-size:29px}
.es38-import-card .es2-row {margin-top:auto}
.es38-import-card .es2-inputfile {width:100%;max-width:100%;box-sizing:border-box}
.es38-pdf-card {grid-column:1 / -1}
.es38-pdf-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.es38-pdf-pair label {font-size:12px;color:#3c3061;font-weight:750;display:flex;flex-direction:column;gap:9px}
.es38-pdf-pair input {font-size:12px;width:100%;box-sizing:border-box;padding:12px;border:1px solid #dacdf9;border-radius:12px;background:white}
.es38-import-status,.es38-generator {margin-top:17px}
.es38-generator .es2-prompt {min-height:230px;max-width:100%;box-sizing:border-box}
.es38-overall-performance .es3-skillmeter {margin-top:14px}
@media(max-width:760px) {
 .es38-import-grid,.es38-pdf-pair {grid-template-columns:1fr}
 .es38-pdf-card {grid-column:auto}
 .es38-history-panel {padding:16px;border-radius:16px}
 .es38-history-header h2 {font-size:21px}
 .es38-history-header {gap:7px}
 .es38-history-count {font-size:10px;padding:7px 9px}
 .es38-history-entry {padding:12px;gap:6px}
 .es38-import-overview {gap:6px}
 .es38-import-overview span {font-size:11px}
}
@media(prefers-reduced-motion:reduce) {.es38-history-entry {transition:none}.es38-history-entry:hover{transform:none}}

.es38-history-shortcut {display:flex;justify-content:flex-end;margin:0 0 14px}
.es38-history-shortcut button {background:#f3edff;border:1px solid #e3d6fc;border-radius:99px;color:#613ac0;padding:10px 15px;font-size:12px;font-weight:800;cursor:pointer}
.es38-history-shortcut button b {background:#7651e8;color:white;border-radius:40px;padding:3px 7px;margin:0 3px}
.es38-history-shortcut button:focus-visible {outline:3px solid #9872f2;outline-offset:2px}


/* Espaniva 3.9 — Soli identity + brighter, richer purple; original layout unchanged. */
:root{--joy-purple:#8b16df;--joy-ink:#302052;--joy-yellow:#ffcb38}
body.es3-app{background:#fcf9ff}
body.es3-app .main{background:radial-gradient(circle at 97% 0%,#eee2ff 0,transparent 33%),#fcf9ff}
body.es3-app .navbtn.active{background:linear-gradient(108deg,#6612c3,#9427ef);box-shadow:0 7px 17px #6713c239}
body.es3-app .es2-btn{background:#7719cf;box-shadow:0 4px 0 #500a9c}
body.es3-app .es2-btn:hover:not(:disabled){box-shadow:0 6px 0 #500a9c}
body.es3-app .es2-btn:active:not(:disabled){box-shadow:0 1px 0 #500a9c}
body.es3-app .es2-btn.alt{background:#efe2ff;color:#5314a3;box-shadow:none}
body.es3-app .es2-btn.outline{color:#6414ba;border-color:#d2b5ff;background:#fff;box-shadow:none}
body.es3-app .es3-big-hero,body.es3-app .es3-simple-hero,body.es3-app .es3-hubhero{background:linear-gradient(116deg,#500ca3 0%,#8615dc 55%,#b847ee 100%);box-shadow:0 16px 35px #6713c036}
body.es3-app .es3-main-cta{background:linear-gradient(120deg,#6a15c5,#9f29ea);box-shadow:0 5px 0 #521094,0 11px 17px #6e18ce30}
body.es3-app .es3-mix-toggle button.selected,body.es3-app .es3-mode.chosen{background:#7a19d3;border-color:#7a19d3;box-shadow:0 3px 0 #5510a4}
body.es3-app .es3-goal.selected{color:#6513b6;border-color:#9027e6;background:#f4eaff}
body.es3-app .es3-ring-wrap strong{color:#7118c3}
body.es3-app .es3-eyebrow.purple{color:#7825c9}
body.es3-app .es3-victory{background:linear-gradient(150deg,#f7ecff,#fffbf0 55%,#f3eaff)}
/* Soli: the leaf-free sombrero mascot, matching the user-approved purple icon. */
.es3-companion{width:153px!important;height:166px!important;flex:none;border-radius:0!important;box-shadow:none!important;transform:none!important;background:transparent url('./soli-base.webp') center/contain no-repeat!important;animation:es3-bob 3.6s ease-in-out infinite}
.es3-companion .es3-face,.es3-companion .es3-blush{display:none!important}
.es3-companion-wrap{overflow:visible}
.es3-speech{color:#6614b3;background:#fff;z-index:3;box-shadow:0 8px 21px #31076b31}
.es3-victory .es3-companion{width:153px!important;height:166px!important}
.es3-hero-buddy .es3-companion{width:153px!important;height:166px!important}
.es3-classic-buddy .es3-companion{width:153px!important;height:166px!important}
/* Tiny familiar face replaces the generic emoji in question navigation. */
.es3-tiny-buddy{display:inline-block;flex:none;width:30px;height:35px;background:url('./soli-base.webp') center/contain no-repeat;vertical-align:middle}
/* Settings + in-session sound toggles are compact and never block the question UI. */
.es39-sound-toggle{border:1.5px solid #d3b7f6;background:#f6efff;color:#5d17a5;font:inherit;font-size:12px;font-weight:850;line-height:1.2;min-height:35px;padding:8px 12px;border-radius:999px;cursor:pointer;white-space:nowrap;box-shadow:none;transition:filter .15s,background .15s}
.es39-sound-toggle:hover{filter:brightness(.96)}
.es39-sound-toggle[aria-pressed="false"]{background:#faf9fd;color:#615b76;border-color:#dad4e7}
.es39-sound-toggle.hero{display:inline-flex;color:#fff;border:1px solid #ffffff66;background:#ffffff24;margin-top:12px;align-items:center}
.es3-hero-meta .es39-sound-toggle.hero{margin-top:0}
.es39-victory-sound{display:flex;justify-content:center;margin:0 auto 6px}
.es39-settings-sound .gearline{align-items:center}
body.es3-app .brand .mark{border-radius:12px;border:0;padding:0;overflow:hidden;box-shadow:0 3px 10px #5a199e2c}
body.es3-app .brand .mark img{display:block;width:43px;height:43px;object-fit:cover}
@media(max-width:760px){.es3-session-top .es39-sound-toggle{font-size:11px;padding:7px 10px;min-height:30px}}
@media(max-width:540px){.es3-companion{animation-duration:4s}.es3-big-hero .es3-speech{right:-9px}.es3-speech{white-space:nowrap}.es3-simple-hero .es39-sound-toggle.hero{margin-top:9px;font-size:11px;padding:7px 10px}}
@media(prefers-reduced-motion:reduce){.es3-companion{animation:none!important}}
body.es3-reduce-motion .es3-companion{animation:none!important}
/* Keep the book-and-sombrero mascot readable on phones, with the original banner grid intact. */
@media(min-width:361px) and (max-width:540px){.es3-big-hero > .es3-companion-wrap{transform:scale(.70)}.es3-simple-hero .es3-hero-buddy .es3-companion-wrap{transform:scale(.58)}}
@media(max-width:360px){.es3-big-hero > .es3-companion-wrap{transform:scale(.54)}.es3-simple-hero .es3-hero-buddy .es3-companion-wrap{transform:scale(.45)}}

/* Soli identity — compact name pill inside existing speech bubble; layout unchanged. */
.es40-mascot-name{display:inline;font-size:.74em;font-weight:950;letter-spacing:.01em;color:#a015e1;background:#f3e4ff;border-radius:6px;padding:2px 5px;margin-right:3px;white-space:nowrap}
body.es3-app .es3-companion{background-image:url('./soli-base.webp')!important}
body.es3-app .es3-tiny-buddy{background-image:url('./soli-base.webp')!important}


/* Soli asset integration */
.es40-overview-art,.es40-soli-art{display:flex;align-items:center;justify-content:center}
.es40-overview-art img,.es40-soli-art img{display:block;max-width:100%;height:auto}
.es40-hero-side{position:relative;display:flex;align-items:center;justify-content:center;min-width:260px}
.es40-soli-art img{max-width:230px}.es40-soli-art.small img{max-width:112px}.es40-soli-art.victory img{max-width:280px}
.es40-companion-inline{display:flex;align-items:center;gap:10px;background:transparent}
.es40-inline-bubble{background:#fff;color:#6d48d4;border:1px solid #eadcfb;border-radius:18px;padding:10px 14px;font-weight:900;box-shadow:0 8px 18px #00000012;white-space:nowrap}
.es40-daily-hero{display:flex;flex-direction:column;align-items:center;gap:10px}.es40-daily-hero .es40-soli-art img{max-width:250px}
.es40-support-text{background:#ffffff24;border:1px solid #ffffff50;border-radius:999px;padding:8px 14px;font-weight:850;color:#fff}
.es3-victory-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;max-width:760px;margin:auto}.es3-victory-actions .es3-main-cta{grid-column:1/-1;width:100%}.es3-victory-actions .es2-btn{width:100%;min-width:0}
@media(max-width:900px){.es3-victory-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.es40-soli-art img{max-width:190px}.es3-victory-actions{grid-template-columns:1fr}}

/* FINAL Soli responsive fix: mascot art never escapes a narrow Skills Lab hero. */
.es40-hero-side .es3-hero-emoji{display:none}
.es40-hero-side .es40-soli-art{max-width:100%;min-width:0}
.es40-hero-side .es40-soli-art img{display:block;width:100%;height:auto;max-width:210px}
@media(max-width:900px){
  .es40-hero-side{min-width:0;width:100%;max-width:100%;overflow:visible}
  .es40-hero-side .es40-soli-art img{max-width:100%;width:100%}
}
@media(max-width:540px){
  .es3-simple-hero{grid-template-columns:minmax(0,1fr) 132px;gap:9px}
  .es40-hero-side{width:132px;min-width:0;max-width:100%}
  .es3-victory-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:360px){
  .es3-simple-hero{grid-template-columns:minmax(0,1fr) 98px;gap:6px}
  .es40-hero-side{width:98px}
}

/* Tiny peek from Soli at the page footer. */
.es40-soli-footer{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.es40-soli-footer img{width:57px;height:57px;object-fit:contain;flex:none}
.es40-soli-footer span{max-width:520px}

/* Espaniva 3.9.3 — Restore Daily Practice's vivid purple to the Soli welcome banner.
   This is a color-only revision; other panels, practice flow, and Soli artwork stay unchanged. */
body.es3-app .es40-welcome-hero {
  background:linear-gradient(116deg,#500ca3 0%,#8615dc 55%,#b847ee 100%);
  border-color:#a958e7;
  box-shadow:0 16px 35px #6713c036;
}
body.es3-app .es40-welcome-copy h1 {color:#fff;}
body.es3-app .es40-welcome-copy p {color:#f7edff;}
body.es3-app .es40-welcome-copy .es3-eyebrow {color:#ffe28e;}
body.es3-app .es40-welcome-hero .es40-overview-art {
  border-radius:32px;
  background:radial-gradient(ellipse at center,#ffffff2c 0%,#ffffff0c 42%,transparent 72%);
}
body.es3-app .es40-welcome-actions .btn {
  background:#fff;
  border:1.5px solid #fff;
  color:#54149e;
  box-shadow:0 4px 0 #3f087d42;
}
body.es3-app .es40-welcome-actions .btn.secondary {
  background:#ffffff20;
  border:1.5px solid #ffffffc9;
  color:#fff;
  box-shadow:none;
}
body.es3-app .es40-welcome-actions .btn:hover:not(:disabled) {
  background:#fff5d9;
  color:#4d128f;
}


/* Espaniva 3.9.4 — optical mascot sizing and collision-free responsive layout.
   Layout-only: public question banks, styling palette and progress logic are unchanged. */

/* The Overview hero should have the visual weight of the Daily Practice banner,
   without becoming a large empty panel on wide displays. */
body.es3-app .es40-welcome-hero{
  grid-template-columns:minmax(0,1.15fr) minmax(240px,.85fr);
  gap:clamp(16px,2.4vw,30px);
  min-height:340px;
  padding:clamp(22px,2.4vw,32px);
}
body.es3-app .es40-welcome-copy{min-width:0;max-width:660px;position:relative;z-index:1}
body.es3-app .es40-welcome-copy h1{
  font-size:clamp(38px,3.65vw,54px);
  line-height:1.08;
  margin:12px 0 13px;
}
body.es3-app .es40-welcome-copy p{
  font-size:clamp(16px,1.24vw,18px);
  line-height:1.58;
  max-width:610px;
}
body.es3-app .es40-welcome-hero .es40-overview-art{
  min-width:0;min-height:0;width:100%;height:auto;
  justify-self:center;align-self:center;justify-content:center;
}
body.es3-app .es40-welcome-hero .es40-overview-art img{
  display:block;width:min(100%,335px);max-width:335px;height:auto;
}

/* Identical visual mascot scale for the three Overview choices. The paintings
   have differently padded canvases, so their pixel sizes must intentionally differ. */
body.es3-app .es3-hubchoice{min-width:0;align-items:stretch}
body.es3-app .es3-hubchoice .es40-overview-art{
  width:100%;height:182px;min-height:182px;
  margin:0 0 3px;display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
body.es3-app .es3-hubchoice .es40-overview-art img{
  max-width:none;max-height:none;width:auto;height:auto;flex:none;
  object-fit:contain;display:block;
}
body.es3-app .es3-hubchoice .es40-overview-art-base img{width:147px;height:147px}
body.es3-app .es3-hubchoice .es40-overview-art-hola img{width:174px;height:174px}
body.es3-app .es3-hubchoice .es40-overview-art-palette img{width:130px;height:130px}
body.es3-app .es3-hubchoice .es3-hubicon{font-size:29px;line-height:1}
body.es3-app .es3-hubchoice h2{line-height:1.22}

/* Desktop and tablet banner illustrations must stay inside their assigned column. */
body.es3-app .es3-big-hero{gap:clamp(15px,2vw,30px)}
body.es3-app .es3-big-hero .es3-hero-copy{min-width:0;flex:1 1 0}
body.es3-app .es3-big-hero .es40-daily-hero{
  flex:0 0 clamp(180px,20vw,250px);
  min-width:0;max-width:250px;
  position:relative;z-index:1;
}
body.es3-app .es3-big-hero .es40-daily-hero .es40-soli-art{
  width:100%;max-width:100%;min-width:0;
}
body.es3-app .es3-big-hero .es40-daily-hero img{
  display:block;width:100%;max-width:100%;height:auto;
}
body.es3-app .es40-support-text{max-width:100%;text-align:center}
body.es3-app .es3-simple-hero>div:first-child{min-width:0;position:relative;z-index:1}
body.es3-app .es3-simple-hero .es40-hero-side{flex:0 0 210px;min-width:0;max-width:210px}
body.es3-app .es3-simple-hero .es40-hero-side img{display:block;width:100%;max-width:210px;height:auto}

/* iPad portrait / intermediate widths: preserve room for both the words and Soli. */
@media(min-width:601px) and (max-width:900px){
  body.es3-app .es40-welcome-hero{grid-template-columns:minmax(0,1fr) minmax(195px,.48fr);gap:20px;min-height:310px}
  body.es3-app .es40-welcome-hero .es40-overview-art img{max-width:255px}
  body.es3-app .es3-big-hero{display:grid;grid-template-columns:minmax(0,1fr) 185px;gap:16px}
  body.es3-app .es3-big-hero .es40-daily-hero{width:185px;max-width:185px;flex:none;justify-self:end}
  body.es3-app .es3-simple-hero{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:18px}
  body.es3-app .es3-simple-hero .es40-hero-side{width:170px;max-width:170px;flex:none;justify-self:end}
  body.es3-app .es3-simple-hero .es40-hero-side img{max-width:170px}
}

/* Phone portraits: each hero has its own dedicated mascot row. This removes
   collisions caused by earlier 95/114px-column rules on 320–540px screens. */
@media(max-width:600px){
  body.es3-app .es40-welcome-hero{
    display:grid;grid-template-columns:minmax(0,1fr);
    min-height:0;gap:10px;padding:21px 19px 17px;
  }
  body.es3-app .es40-welcome-copy{width:100%;max-width:100%;min-width:0}
  body.es3-app .es40-welcome-copy h1{font-size:clamp(34px,9vw,40px);margin:9px 0 9px}
  body.es3-app .es40-welcome-copy p{font-size:15px;line-height:1.53;max-width:100%}
  body.es3-app .es40-welcome-actions{gap:8px;margin-top:14px}
  body.es3-app .es40-welcome-actions .btn{padding:11px 13px;font-size:12px;min-height:42px}
  body.es3-app .es40-welcome-hero .es40-overview-art{
    width:100%;min-width:0;max-width:100%;height:auto;
    margin:3px auto 0;justify-content:center;
  }
  body.es3-app .es40-welcome-hero .es40-overview-art img{
    width:min(100%,222px);max-width:222px;height:auto;
  }
  body.es3-app .es3-big-hero{
    display:grid;grid-template-columns:minmax(0,1fr);
    min-height:0;gap:10px;
    padding:22px 20px 17px;
  }
  body.es3-app .es3-big-hero .es3-hero-copy{
    width:100%;max-width:100%;min-width:0;margin:0;
  }
  body.es3-app .es3-big-hero .es3-hero-copy h1{
    font-size:clamp(30px,8vw,37px);line-height:1.07;letter-spacing:-.8px;
    margin:12px 0 9px;
  }
  body.es3-app .es3-big-hero .es3-hero-copy p{
    max-width:100%;font-size:13.5px;line-height:1.52;
  }
  body.es3-app .es3-big-hero .es3-hero-meta{margin-top:14px;gap:7px}
  body.es3-app .es3-big-hero .es40-daily-hero{
    grid-column:1;grid-row:2;
    width:100%;max-width:100%;min-width:0;
    flex:none;margin:0;
    display:flex;flex-direction:row;align-items:center;justify-content:center;
    gap:12px;
  }
  body.es3-app .es3-big-hero .es40-daily-hero .es40-soli-art{
    width:min(50%,165px);max-width:165px;min-width:0;flex:none;
  }
  body.es3-app .es3-big-hero .es40-daily-hero img{max-width:100%;width:100%;height:auto}
  body.es3-app .es3-big-hero .es40-support-text{
    font-size:13px;line-height:1.3;max-width:120px;min-width:0;
    margin:0;padding:10px 12px;
  }
  body.es3-app .es3-simple-hero{
    display:grid;grid-template-columns:minmax(0,1fr);
    min-height:0;gap:8px;padding:22px 20px 18px;
  }
  body.es3-app .es3-simple-hero>div:first-child{min-width:0;width:100%}
  body.es3-app .es3-simple-hero h1{font-size:clamp(28px,7.6vw,36px);line-height:1.12}
  body.es3-app .es3-simple-hero p{font-size:13.5px;line-height:1.48}
  body.es3-app .es3-simple-hero .es40-hero-side{
    grid-column:1;justify-self:center;
    display:flex;width:170px;max-width:170px;
    flex:none;min-width:0;height:auto;margin:0 auto;
  }
  body.es3-app .es3-simple-hero .es40-hero-side img{width:100%;max-width:170px;height:auto}
  body.es3-app .es3-hubhero.es3-performance-hero{
    display:grid;grid-template-columns:minmax(0,1fr);gap:10px;
    padding:22px 19px 16px;
  }
  body.es3-app .es3-hubhero.es3-performance-hero>div:first-child{min-width:0}
  body.es3-app .es3-hubhero.es3-performance-hero .es40-overview-art{
    width:100%;height:auto;min-width:0;justify-content:center;
  }
  body.es3-app .es3-hubhero.es3-performance-hero .es40-overview-art img{width:min(100%,185px);max-width:185px;height:auto}
  body.es3-app .es3-hubchoice .es40-overview-art{height:182px;min-height:182px}
}
@media(max-width:360px){
  body.es3-app .es3-big-hero{padding:20px 17px 16px}
  body.es3-app .es3-big-hero .es40-daily-hero .es40-soli-art{width:min(50%,145px);max-width:145px}
  body.es3-app .es3-simple-hero{padding:19px 17px 16px}
}

/* iPad portrait: keep the three destination cards aligned rather than making
   each illustration fill an entire tablet-width row. Phones still stack them. */
@media(min-width:650px) and (max-width:900px){
  body.es3-app .es3-hubchoices{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  body.es3-app .es3-hubchoice{min-width:0;padding:16px;gap:9px}
  body.es3-app .es3-hubchoice .es40-overview-art{height:153px;min-height:153px}
  body.es3-app .es3-hubchoice .es40-overview-art-base img{width:122px;height:122px}
  body.es3-app .es3-hubchoice .es40-overview-art-hola img{width:144px;height:144px}
  body.es3-app .es3-hubchoice .es40-overview-art-palette img{width:108px;height:108px}
  body.es3-app .es3-hubchoice h2{font-size:17px}
  body.es3-app .es3-hubchoice p{font-size:12px}
  body.es3-app .es3-hubchoice button{font-size:11px;padding:10px 9px}
}

/* Espaniva 3.9.5: decorative buddy must never cover the classic paper header. */
@media(max-width:1050px){.es3-classic-buddy{display:none!important}}


/* 3.9.6: unobtrusive results sound switch, accessible audio levels. */
.es3-victory .es396-results-header{position:relative;display:flex;align-items:center;justify-content:center;min-height:42px;margin-bottom:6px;padding-right:0}
.es3-victory .es396-results-header .es39-victory-sound{position:absolute;right:0;top:0;margin:0;justify-content:flex-end;z-index:3}
.es3-victory .es396-results-header .es39-sound-toggle{background:#fff;border-color:#dccaf8;color:#6744b9;box-shadow:0 3px 12px #714ebf1b}
.es396-sound-section{margin:16px 0 12px}
.es396-sound-label{font-size:13px;color:#544477;font-weight:850;margin-bottom:8px}
.es396-volume-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.es396-volume-options button{font:inherit;cursor:pointer;border:1.5px solid #dcd1f3;background:#faf8ff;color:#655785;padding:10px 8px;border-radius:12px;font-weight:850;font-size:13px;min-height:43px}
.es396-volume-options button.selected{background:#7450df;border-color:#7450df;color:white}
.es396-volume-options button:focus-visible{outline:3px solid #f2bd50;outline-offset:2px}
.es396-sound-preview{display:flex;gap:8px;flex-wrap:wrap;margin:11px 0}
@media(max-width:520px){
 .es3-victory .es396-results-header{min-height:104px;align-items:flex-end;padding:44px 0 0}
 .es3-victory .es396-results-header .es39-victory-sound{top:0;right:0}
 .es396-volume-options button{font-size:12px;padding:10px 5px}
}
