/* Spellmaster ornate header and the two illustrated adventure bars.
   The logo and castle are independent assets; progress is real HTML/ARIA.
   CSS-only decorations do not reveal any spelling answer. */
header .logo {
 display:inline-flex!important;align-items:center;flex:0 1 auto;
 text-shadow:none!important;line-height:1;min-width:0;padding:0;
 background:transparent;border:0;
}
header .logo .brand-art {
 width:clamp(220px,26vw,360px);height:auto;display:block;
 object-fit:contain;filter:drop-shadow(0 5px 6px #10091ba6);
}
header .logo:hover .brand-art {filter:drop-shadow(0 4px 10px #e9b45b8a)}
header>.muted {align-self:center;background:linear-gradient(180deg,#361b58f2,#211837f2)!important;
 border:2px solid #d4a456!important;outline:1px solid #fce7a070;
 outline-offset:-5px;color:#fff5d8!important;
 box-shadow:0 4px 0 #1a102c,0 7px 16px #08051e9c;
 font:600 clamp(11px,1.1vw,14px)/1.25 var(--font-display)!important;
}
header>.muted:after{content:" ✦";color:#ffd774}

/* The top illustrated, gold-edged castle banner. */
.hero {
 position:relative;isolation:isolate;overflow:hidden;
 border:3px solid #f6ce78!important;border-radius:24px!important;
 background:
 linear-gradient(90deg,#241344fa 0%,#342059f9 32%,#332154b7 59%,#2d174e32 100%),
 url('/assets/spellmaster/castle-banner.webp') right center / auto 100% no-repeat,
 linear-gradient(95deg,#27164a,#4d3187)!important;
 outline:2px solid #7d3d70;outline-offset:-9px;
 box-shadow:0 0 0 2px #6d344e, inset 0 0 0 1px #ffe7a3,
 0 4px 0 #b17143,0 11px 26px #0a061c9c,0 0 27px #e8a35d30!important;
 min-height:134px!important;margin:10px 0 16px!important;
 padding:25px clamp(24px,3vw,44px)!important;
}
.hero:before{content:"";position:absolute;inset:0;pointer-events:none;
 background:radial-gradient(circle at 82% 33%,#efc27324 0,transparent 40%);
 opacity:1!important;transform:none!important;font-size:inherit!important}
.hero:after{content:"✧";position:absolute;right:24px;top:12px;
 color:#ffe7a1;display:block!important;font-size:36px;opacity:.8}
.hero>*{position:relative;z-index:1}
.hero .eyebrow {
 font-family:var(--font-display)!important;color:#ffe7af!important;
 letter-spacing:.11em!important;font-weight:700!important;
 font-size:clamp(10px,.9vw,12px)!important;text-shadow:0 2px 4px #110c29;
}
.hero h1{max-width:720px!important;margin:5px 0 6px!important;
 font-family:var(--font-display)!important;
 font-size:clamp(26px,3.35vw,45px)!important;
 font-weight:700!important;line-height:1.13!important;
 color:#fff0c8!important;letter-spacing:-.018em!important;
 text-shadow:0 2px 0 #a16d51,0 5px 10px #150c33b5}
.hero p{max-width:655px!important;color:#fff4ed!important;
 font-size:clamp(12px,1.1vw,15px)!important;font-weight:650!important;
 line-height:1.35!important;text-shadow:0 2px 4px #180b38c7}

/* The second bar is the live word journey, not a fixed illustration. */
.sm-path {
 position:relative;isolation:isolate;overflow:visible;
 display:grid;grid-template-columns:minmax(180px,270px) minmax(0,1fr);
 gap:15px;align-items:center;
 margin:0 auto 22px!important;padding:12px 24px 15px!important;
 min-height:95px;border-radius:22px!important;
 border:3px solid #f4c776!important;
 background:linear-gradient(90deg,#34154edb,#4d236de8 53%,#2a154aef)!important;
 box-shadow:inset 0 0 0 2px #9d5783,0 4px 0 #8d4f51,
 0 10px 0 #2d1936,0 18px 29px #0d081da9,0 0 16px #e7a44a3c!important;
}
.sm-path:before{content:"✦";position:absolute;left:10px;top:9px;
 color:#ffdf83;opacity:.7;font-size:16px;pointer-events:none}
.sm-path:after{content:"✧";position:absolute;right:8px;top:8px;
 color:#ffdf83;opacity:.8;font-size:21px;pointer-events:none}
.sm-path-head {
 display:flex!important;align-items:center;
 font-family:var(--font-display)!important;
 font-size:clamp(14px,1.6vw,21px)!important;
 font-weight:650!important;line-height:1.16;
 text-shadow:0 2px 2px #25102a;
 color:#fff0c4!important;white-space:normal!important;
 padding:4px 4px 4px 10px;max-width:260px;
}
.sm-path-track {
 display:flex;gap:clamp(5px,1vw,16px);justify-content:space-between;
 align-items:center;overflow-x:auto;overflow-y:visible;
 padding:6px 3px 4px;scrollbar-width:thin;scrollbar-color:#d3a566 #52315e;
}
.sm-node {min-width:clamp(55px,6.3vw,91px);gap:0;position:relative;z-index:2}
.sm-node:not(:last-child):after{
 content:"✦ · ✧ · ✦";display:flex;align-items:center;justify-content:center;
 position:absolute;left:calc(50% + 24px);right:calc(-50% + 19px);
 top:15px!important;border:0!important;font-size:clamp(7px,.75vw,11px);
 color:#ffdc7d;white-space:nowrap;z-index:-1;opacity:.85;letter-spacing:1px}
.sm-node-circle {
 display:grid;width:clamp(43px,4.1vw,55px);height:clamp(43px,4.1vw,55px);
 border-radius:50%;place-items:center;
 font:700 clamp(17px,1.75vw,25px)/1 var(--font-display)!important;
 background:linear-gradient(155deg,#674379,#2e1b4c)!important;
 color:#fff1d5!important;
 border:3px solid #f5d48a!important;
 box-shadow:inset 0 3px 5px #fff6,0 0 0 3px #68306c,
 0 4px 0 #1d1430,0 6px 12px #0e0719ba!important;
}
.sm-node.done .sm-node-circle {
 background:linear-gradient(150deg,#b5e981,#3f975f)!important;
 color:#fff!important;border-color:#ffe7a0!important}
.sm-node.active .sm-node-circle {
 background:linear-gradient(155deg,#fff4ae,#f3bc38 62%,#bc782a)!important;
 color:#52346a!important;border-color:#fff4b2!important;
 box-shadow:0 0 0 4px #f8c85656,0 0 22px #ffda6c99,
 0 5px 0 #774147!important}
.sm-node.future .sm-node-circle{background:linear-gradient(#57506b,#35304d)!important;
 border-color:#a79aaa!important;color:#e9e3ee!important}
.sm-node-label{
 display:inline-flex;align-items:center;justify-content:center;
 min-width:clamp(61px,6.2vw,89px);height:26px;
 padding:3px 8px;margin-top:-2px;position:relative;z-index:3;
 border-radius:7px 7px 10px 10px;
 border:1px solid #e3b671;
 background:linear-gradient(180deg,#fff1ca,#edc689);
 color:#422b51;font:700 clamp(10px,1vw,13px)/1.1 var(--font-display)!important;
 text-shadow:none;white-space:nowrap;
 box-shadow:0 3px 0 #754659,0 5px 7px #150b21a8;
}
.sm-node.active .sm-node-label{background:linear-gradient(#fff8d6,#f7ce76);
 border-color:#fff5bf}
.sm-node.future .sm-node-label{background:linear-gradient(#e1d4c9,#c7ac9c)}
/* Desktop-to-mobile scale: all five journey stops remain useful, scroll if needed. */
@media(max-width:1120px){
 .sm-path{grid-template-columns:190px minmax(0,1fr);gap:9px;padding:12px 15px!important}
 .sm-path-head{font-size:16px!important}
}
@media(max-width:780px){
 header .logo .brand-art{width:clamp(180px,43vw,290px)}
 .hero{min-height:125px!important;padding:21px 18px!important}
 .hero h1{font-size:clamp(22px,4.3vw,34px)!important;max-width:85%!important}
 .hero p{max-width:77%!important;font-size:12px!important}
 .sm-path{display:block;padding:9px 10px 11px!important;min-height:0}
 .sm-path-head{max-width:none;font-size:16px!important;padding:1px 5px 5px}
 .sm-path-track{justify-content:space-between;gap:4px}
 .sm-node{min-width:58px}
 .sm-node-label{min-width:59px;font-size:10px!important}
 .sm-node:not(:last-child):after{font-size:8px;letter-spacing:0}
}
@media(max-width:480px){
 header{gap:5px}
 header .logo .brand-art{width:clamp(175px,49vw,235px)}
 header>.muted{font-size:10px!important;max-width:128px;text-align:center}
 .hero{margin:7px 0 13px!important;padding:17px 16px!important;
 background:linear-gradient(90deg,#251644f6,#302056d6 62%,#2d174e48),
 url('/assets/spellmaster/castle-banner.webp') 76% center/auto 100% no-repeat,
 #302052!important}
 .hero h1{font-size:23px!important;max-width:95%!important}
 .hero p{max-width:94%!important;font-size:11px!important}
 .hero:after{right:11px;top:7px;font-size:23px}
 .sm-path{border-radius:15px!important;padding:10px 6px 11px!important}
 .sm-path-head{font-size:14px!important;line-height:1.1}
 .sm-path-track{gap:4px;justify-content:flex-start;padding:6px 3px 6px}
 .sm-node{min-width:58px}
 .sm-node-circle{width:39px;height:39px;font-size:18px!important}
 .sm-node-label{min-width:54px;height:24px;padding:3px 4px;font-size:9px!important}
 .sm-node:not(:last-child):after{left:calc(50% + 19px);right:calc(-50% + 18px);top:12px!important}
}
