/* Spellmaster entry — one screen, one purpose.
   Landing only; the complete spelling game remains unchanged. */
body.entry-home main>.hero,
body.entry-home .sm-path,
body.entry-home .sm-character,
body.entry-home .sm-side{display:none!important}
body.entry-home main{max-width:860px;margin:auto;padding:9px 16px 40px!important}
body.entry-home main>header{margin:0 0 12px;padding:8px 0}
body.entry-home header .brand-art{width:clamp(170px,25vw,260px)!important;height:auto!important}
body.entry-home header>.muted{font-size:12px}
body.entry-home .sm-layout{display:block!important}
body.entry-home #app.panel{
 margin:0 auto 18px!important;padding:clamp(19px,3vw,35px)!important;
 border:5px solid #c5925c!important;border-radius:28px!important;
 box-shadow:inset 0 0 0 2px #ffedbb,0 12px 0 #563746,0 26px 42px #0d071c80!important;
 max-width:750px;min-height:0!important
}
body.entry-home #app.panel:before{display:none!important}
body.entry-home main>.footer{display:none!important}
body.entry-home #app .entry-screen{display:block;max-width:680px;margin:auto}
body.entry-home #app .entry-welcome{position:relative;text-align:center}
body.entry-home #app .entry-kicker{
 display:block;text-transform:uppercase;letter-spacing:.11em;font:700 12px/1.3 var(--font-display);
 color:#7650a7;margin:2px 0 8px
}
body.entry-home #app .entry-welcome h2{
 font:700 clamp(29px,4vw,41px)/1.14 var(--font-display)!important;
 color:#412862;margin:8px auto 10px!important;max-width:580px
}
body.entry-home #app .entry-welcome p{margin:8px auto 15px!important;max-width:510px;font-size:18px!important;line-height:1.45}
body.entry-home #app .entry-character{height:clamp(120px,19vw,170px);width:auto;max-width:100%;object-fit:contain;display:block;margin:0 auto 8px}
body.entry-home #app .entry-hear{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:48px;font:700 15px var(--font-display)!important;border:2px solid #d6bfea;
 box-shadow:none;background:#f3ebfc;color:#4f397d;margin:4px auto 12px;padding:10px 17px
}
body.entry-home #app .entry-primary{
 display:inline-flex!important;align-items:center;justify-content:center;gap:10px;
 width:100%!important;max-width:520px;min-height:64px!important;margin:7px auto 3px!important;
 background:linear-gradient(180deg,#ffe18c,#ecb442)!important;border:2px solid #ca9850!important;
 border-radius:17px;color:#482f57!important;text-decoration:none;font:700 22px/1.2 var(--font-display)!important;
 box-shadow:0 5px 0 #a57b39,0 10px 16px #38244d18!important
}
body.entry-home #app .entry-first-form{
 max-width:510px;margin:13px auto 0;display:grid;gap:6px;text-align:left;
 background:linear-gradient(145deg,#fff8eb,#fcf2df);
 padding:clamp(17px,3vw,24px);border:1px solid #e9cda2;border-radius:22px
}
body.entry-home #app .entry-first-form label{font:800 16px/1.35 var(--font-body);margin:7px 0 0!important;color:#4c3670}
body.entry-home #app .entry-first-form input,
body.entry-home #app .entry-first-form select{margin:0!important;font:700 18px var(--font-body)!important;
 min-height:53px!important;background:#fff!important;border:2px solid #c9b3df;border-radius:13px}
body.entry-home #app .entry-first-form .entry-primary{margin-top:17px!important}
body.entry-home #app .entry-error{color:#9d2646;min-height:1em;font-size:14px!important}
body.entry-home #app .entry-parent-note{
 margin:18px auto 3px!important;font-size:13px!important;max-width:520px;
 color:#615479;line-height:1.5
}
body.entry-home #app .entry-parent-note a{color:#53338f}
body.entry-home #app .entry-greeting{
 display:flex;align-items:center;justify-content:center;gap:20px;text-align:left;
 max-width:620px;margin:0 auto 16px
}
body.entry-home #app .entry-mini-character{width:clamp(70px,13vw,100px);max-height:106px;object-fit:contain}
body.entry-home #app .entry-greeting h2{font-size:clamp(28px,3.7vw,37px)!important}
body.entry-home #app .entry-greeting p{margin:4px 0!important;font-size:16px!important}
body.entry-home #app .next-chapter{
 background:linear-gradient(140deg,#f5e9ff,#fff6dd);
 padding:clamp(19px,3vw,28px)!important;margin:10px auto 12px!important;
 min-height:0;border:2px solid #cfb0e8;border-radius:24px;max-width:640px
}
body.entry-home #app .next-chapter h3{
 font:700 clamp(23px,3.3vw,31px)/1.2 var(--font-display)!important;
 margin:7px 0 9px!important
}
body.entry-home #app .next-chapter p{font-size:16px!important;margin:7px auto 12px!important}
body.entry-home #app .chapter-actions{
 display:flex;flex-direction:column;gap:5px;align-items:center;margin:13px auto 0!important
}
body.entry-home #app .chapter-actions .entry-hear{
 margin:11px auto 0!important;background:transparent;border-color:transparent;text-decoration:underline;
 min-height:44px
}
body.entry-home #app .sprint-feature{
 background:transparent;border:0;border-top:1px solid #e5cba2!important;
 border-radius:0;max-width:620px;margin:22px auto 5px!important;padding:18px 7px 4px!important
}
body.entry-home #app .sprint-feature h3{font-size:23px!important;margin:2px 0 4px!important}
body.entry-home #app .sprint-feature p{font-size:16px!important;margin:4px auto 10px!important}
body.entry-home #app .sprint-start{
 background:transparent!important;border:none!important;box-shadow:none!important;
 min-height:44px;padding:8px 16px;color:#5c3b9b!important;text-decoration:underline
}
body.entry-home #app .entry-progress,
body.entry-home #app .entry-settings{max-width:620px;margin:15px auto 4px;text-align:left;
 border:1px solid #dcc8b9;border-radius:14px;padding:0;background:#fff9ec
}
body.entry-home #app .entry-progress summary,
body.entry-home #app .entry-settings summary{cursor:pointer;padding:12px 16px;color:#513679;font:700 15px var(--font-display)}
body.entry-home #app .entry-progress-details,
body.entry-home #app .entry-settings-body{padding:4px 16px 16px}
body.entry-home #app .entry-progress-details p,
body.entry-home #app .entry-settings-body p{font-size:14px!important}
body.entry-home #app .entry-settings-body label{display:block;margin:14px 0 5px}
body.entry-home #app .entry-settings-body select{width:100%}
body.entry-home #app .entry-delete{margin-top:14px;display:block;min-height:44px}
body.entry-home #app .entry-assessment>.entry-primary{margin:15px auto 9px!important}
@media(max-width:640px){
 body.entry-home main{padding:4px 10px 22px!important}
 body.entry-home main>header{margin-bottom:8px!important}
 body.entry-home header .brand-art{width:162px!important}
 body.entry-home #app.panel{padding:17px 13px!important;border-width:4px!important}
 body.entry-home #app .entry-character{height:100px;margin-bottom:4px}
 body.entry-home #app .entry-welcome h2{font-size:29px!important}
 body.entry-home #app .entry-welcome p{font-size:16px!important}
 body.entry-home #app .entry-greeting{gap:10px;margin:1px 0 9px}
 body.entry-home #app .entry-mini-character{width:70px}
 body.entry-home #app .next-chapter{padding:17px!important}
 body.entry-home #app .entry-primary{font-size:19px!important;min-height:59px!important}
 body.entry-home #app .entry-first-form{padding:14px 13px}
 body.entry-home #app .sprint-feature{margin-top:16px!important}
}

/* Brand promise: make the Spellmaster principle visible but quieter than Play. */
.brand-promise{
 display:flex;align-items:center;justify-content:center;gap:12px;
 width:fit-content;max-width:calc(100% - 18px);margin:0 auto 15px;
 padding:8px 24px 9px;border-radius:999px;
 background:linear-gradient(100deg,#33214fe9,#5d3876ed,#33214fe9);
 border:1px solid #eac176;box-shadow:0 3px 0 #20152d,0 6px 18px #0e092e70;
 color:#fff2c9;text-align:center;
}
.brand-promise strong{
 font:700 clamp(15px,1.7vw,20px)/1.2 var(--font-display);
 letter-spacing:.02em;color:#fff4d4;text-shadow:0 2px 5px #180925;
}
.brand-promise em{font-style:normal;color:#ffdf77}
.brand-promise-sparkle{font-size:18px;color:#ffe3a1}
header .header-promise-mark{font-size:19px;color:#efc46f;opacity:.8}
body.lesson-active .brand-promise{padding:4px 15px;margin:0 auto 7px}
body.lesson-active .brand-promise strong{font-size:13px}
body.lesson-active .brand-promise-sparkle{font-size:13px}
#app .session-closing{
 background:linear-gradient(155deg,#f7e9ff,#fff5d5);
 border:2px solid #c9a3e5;border-radius:21px;
 padding:clamp(18px,3vw,30px);margin:22px 0 18px;text-align:center;
 box-shadow:0 8px 20px #3f277526;
}
#app .session-closing-stars{color:#d99a2f;letter-spacing:11px;font-size:21px;margin-bottom:7px}
#app .session-closing h3{
 font:700 clamp(22px,3vw,31px)/1.18 var(--font-display)!important;
 color:#4d327b;margin:7px 0 10px;
}
#app .session-closing-copy{font-size:17px!important;max-width:610px;margin:8px auto!important;line-height:1.5!important}
#app .session-closing-slogan{
 font:700 clamp(17px,2.1vw,24px)/1.25 var(--font-display)!important;
 color:#69429f;margin:15px auto 8px!important;
}
#app .session-closing-replay{
 min-height:44px;background:#eee5ff;color:#543990;border:1px solid #d3b7ee;
 box-shadow:none!important;margin-top:8px;
}
@media(max-width:640px){
 .brand-promise{gap:7px;padding:8px 14px;margin:1px auto 10px}
 .brand-promise strong{font-size:14px}
 .brand-promise-sparkle{font-size:13px}
 header .header-promise-mark{display:none}
 body.lesson-active .brand-promise{margin:0 auto 5px}
 #app .session-closing{padding:17px 13px;margin:13px 0}
 #app .session-closing h3{font-size:23px!important}
}

/* Give the promise a clear place in the learner's entry experience.
   Keep it compact during teaching so the activity remains the focus. */
body.entry-home .brand-promise{
 width:min(100%,700px);max-width:calc(100% - 12px);
 padding:15px 22px 14px;margin:2px auto 18px;
 border:2px solid #ffe3a1;border-radius:20px;
 background:linear-gradient(110deg,#432565,#623b85 55%,#3e245d);
 box-shadow:0 4px 0 #20152d,0 9px 22px #0e092e55;
}
.brand-promise-content{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
body.entry-home .brand-promise strong{
 font-size:clamp(21px,3vw,30px)!important;
 line-height:1.2;letter-spacing:0;
}
.brand-promise-subtitle{
 display:block;color:#fdf1df;font:600 clamp(13px,1.5vw,16px)/1.4 var(--font-body);
}
body.lesson-active .brand-promise-content{gap:0}
body.lesson-active .brand-promise-subtitle{display:none}
body.session-finished .brand-promise{padding:6px 16px;margin-bottom:9px}
body.session-finished .brand-promise-subtitle{display:none}
#app .session-closing-slogan{padding-top:11px;border-top:1px solid #d5b7e6}
@media(max-width:640px){
 body.entry-home .brand-promise{gap:9px;padding:13px 11px;margin-bottom:13px}
 body.entry-home .brand-promise strong{font-size:clamp(19px,5.2vw,24px)!important}
 body.entry-home .brand-promise-sparkle{font-size:13px}
 .brand-promise-subtitle{font-size:13px}
}

/* The goodbye should feel like the close of a journey, not a report card. */
body.session-finished main>.hero,
body.session-finished .sm-path,
body.session-finished .sm-character,
body.session-finished .sm-side{display:none!important}
body.session-finished .sm-layout{display:block!important;max-width:800px;margin:0 auto}
body.session-finished #app.panel{
 margin:8px auto 15px!important;max-width:790px;min-height:0!important;
 padding:clamp(18px,3vw,30px)!important;border-width:5px!important;
}
body.session-finished #app.panel:before{display:none!important}
body.session-finished main>.footer{display:none!important}
body.session-finished #app>.eyebrow{display:block;text-align:center}
body.session-finished #app .session-closing{margin:8px auto 14px!important;max-width:650px}
body.session-finished #app .session-summary{font-size:15px!important;text-align:center;max-width:580px;margin:12px auto!important;color:#62536e}
body.session-finished #app .session-words{border:1px solid #dcc1a0;border-radius:13px;background:#fff9ee;margin:16px auto;padding:0;max-width:600px}
body.session-finished #app .session-words summary{padding:12px 15px;cursor:pointer;min-height:44px;font:700 15px var(--font-display);color:#563677}
body.session-finished #app .session-words .result{margin:8px 13px}
body.session-finished #app>.actions{justify-content:center!important;margin:14px 0 3px!important}
body.session-finished #app>.actions button:first-child{min-height:49px!important;background:linear-gradient(#ffe18a,#f0b74c)!important;color:#4c3255!important}
@media(max-width:640px){
 body.session-finished #app.panel{padding:14px 11px!important}
 body.session-finished #app .session-closing{padding:14px 12px!important}
 body.session-finished #app>.actions{position:static!important;padding:2px!important;border:0!important;box-shadow:none!important;background:transparent!important}
 body.session-finished #app>.actions button{width:100%!important;flex:1 1 auto!important}
}

/* Playtest: make the next action unmistakable after reviewing a spelling. */
#app .retry-after-review{
 display:block;width:min(100%,490px);min-height:60px;
 margin:13px auto 16px!important;padding:13px 20px;
 border:2px solid #bd8d35;border-radius:16px;
 background:linear-gradient(#ffe391,#f3b947);color:#422d58;
 box-shadow:0 5px 0 #94692f;font:800 clamp(17px,2.5vw,21px)/1.25 var(--font-display);
}
#app .retry-after-review:focus-visible{outline:4px solid #563ca4;outline-offset:4px}
#app .chunk-workshop .chunk-head p{max-width:470px}
#app .coin-transfer{
 position:relative;display:flex;align-items:center;justify-content:space-between;
 gap:10px;max-width:370px;margin:14px auto 19px;padding:10px 20px;
 border-radius:18px;background:#fff8e6;border:1px solid #e3c68c;
 font:700 16px var(--font-display);
}
#app .coin-transfer .coin-pot{display:flex;flex-direction:column;align-items:center;gap:2px}
#app .coin-transfer .coin-pot .coin-pot-icon{font-size:34px}
#app .coin-transfer .coin-flight{position:absolute;left:20%;top:25px;font-size:25px;pointer-events:none}
#app .coin-transfer .coin-flight:nth-of-type(2){animation-delay:.32s}
#app .coin-transfer .coin-flight:nth-of-type(3){animation-delay:.64s}
@media(prefers-reduced-motion:no-preference){
 #app .coin-transfer .coin-flight{animation:spellmaster-coin-flight 1.1s ease-in forwards}
 @keyframes spellmaster-coin-flight{
  0%{transform:translate(0,0) scale(.7);opacity:0}
  18%{opacity:1}70%{opacity:1}
  100%{transform:translate(190px,-2px) scale(.65);opacity:0}
 }
}
@media(prefers-reduced-motion:reduce){#app .coin-transfer .coin-flight{display:none}}
@media(max-width:420px){#app .coin-transfer{max-width:290px}#app .coin-transfer .coin-flight{font-size:20px}@keyframes spellmaster-coin-flight{to{transform:translate(135px,0);opacity:0}}}

body.entry-home #app .entry-explorer-actions{
 display:flex;flex-wrap:wrap;justify-content:center;gap:8px 12px;margin:10px auto 18px
}
body.entry-home #app .entry-explorer-actions button{
 min-height:44px;margin:0;padding:7px 16px;background:#fffaf0!important;color:#513769!important;
 border:1px solid #cbb998;border-radius:12px;box-shadow:none!important;font-weight:700
}
body.entry-home #app .entry-explorer-actions button:hover{background:#f6eddc!important;border-color:#88679d}
body.entry-home #app .entry-explorer-actions button:focus-visible{outline:3px solid #765397;outline-offset:2px}
