/* V78 — Seasonal themes. Deliberately no overrides of Practice Time or activity player colors. */
:root{--mec-theme-surface:#fff;--mec-theme-hero:#eee9ff;--mec-theme-nav:#eee9ff;--mec-theme-accent:#7958ce;--mec-theme-footer:#192a54;--mec-theme-background:#f8f9fe;--mec-theme-border:#e7eaf4;--mec-theme-text:#202747}
:root[data-mec-theme="christmas"]{--mec-theme-background:#f7faf8;--mec-theme-hero:#e5f2e9;--mec-theme-nav:#e4f4e8;--mec-theme-accent:#b53e49;--mec-theme-footer:#154a39;--mec-theme-border:#d9e8de;--mec-theme-text:#1b3d34}
:root[data-mec-theme="autumn"]{--mec-theme-background:#fcf8f2;--mec-theme-hero:#f9e7ce;--mec-theme-nav:#fff0dc;--mec-theme-accent:#aa5c29;--mec-theme-footer:#543927;--mec-theme-border:#ebdbc9;--mec-theme-text:#463428}
:root[data-mec-theme="halloween"]{--mec-theme-background:#f7f1f2;--mec-theme-hero:#e6c7cd;--mec-theme-nav:#57202c;--mec-theme-accent:#a5263b;--mec-theme-footer:#171316;--mec-theme-border:#d9b8c0;--mec-theme-text:#341c23}
:root[data-mec-theme="spring"]{--mec-theme-background:#f7fbf8;--mec-theme-hero:#e2f4e8;--mec-theme-nav:#e8f7eb;--mec-theme-accent:#31865e;--mec-theme-footer:#235c4a;--mec-theme-border:#dcece0;--mec-theme-text:#234d3b}
:root[data-mec-theme="summer"]{--mec-theme-background:#f7fbfe;--mec-theme-hero:#dff4fb;--mec-theme-nav:#e0f5fc;--mec-theme-accent:#147ba6;--mec-theme-footer:#175779;--mec-theme-border:#d6eaf1;--mec-theme-text:#20465d}
:root[data-mec-theme="winter"]{--mec-theme-background:#f6f9fd;--mec-theme-hero:#e5effc;--mec-theme-nav:#e9f1fc;--mec-theme-accent:#426eae;--mec-theme-footer:#203b66;--mec-theme-border:#dbe5f3;--mec-theme-text:#243c5d}
:root[data-mec-theme]:not([data-mec-theme="classic"]){--bg:var(--mec-theme-background);--ink:var(--mec-theme-text);--line:var(--mec-theme-border)}
:root[data-mec-theme]:not([data-mec-theme="classic"]) .top{background:var(--mec-theme-surface);border-bottom-color:var(--mec-theme-border)}
:root[data-mec-theme]:not([data-mec-theme="classic"]) .nav a:not(.adminlink):hover,:root[data-mec-theme]:not([data-mec-theme="classic"]) .nav a:not(.adminlink).active{background:var(--mec-theme-nav);color:var(--mec-theme-accent)}
:root[data-mec-theme]:not([data-mec-theme="classic"]) .hero{--hero-adaptive-bg:var(--mec-theme-hero)!important}
:root[data-mec-theme]:not([data-mec-theme="classic"]) .intro-banner{background:var(--mec-theme-hero)}
:root[data-mec-theme]:not([data-mec-theme="classic"]) .footer{background:var(--mec-theme-footer)}
:root[data-mec-theme]:not([data-mec-theme="classic"]) .eyebrow{color:var(--mec-theme-accent)}
:root[data-mec-theme]:not([data-mec-theme="classic"]) .section-head h2{color:var(--mec-theme-text)}
:root[data-mec-theme]:not([data-mec-theme="classic"]) .level-card,:root[data-mec-theme]:not([data-mec-theme="classic"]) .lesson-card{border:1px solid var(--mec-theme-border)}
:root[data-mec-theme]:not([data-mec-theme="classic"]) .hero-copy .btn{background:var(--mec-theme-footer)}
/* Keep all lesson pedagogical blocks and activity color semantics untouched. */
.mec-theme-settings{margin:30px 0 12px;padding:24px;border:1px solid #dfe4f1;border-radius:22px;background:#fff}
.mec-theme-settings h3{margin:10px 0}.mec-theme-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:12px;margin:20px 0}
.mec-theme-option{display:flex;flex-direction:column;gap:10px;align-items:center;padding:15px 10px;border:2px solid #e6e8f1;border-radius:16px;cursor:pointer;text-align:center;background:#fff;font-size:.88rem}
.mec-theme-option:has(input:checked){border-color:#293f7b;box-shadow:0 0 0 2px #293f7b20}
.mec-theme-option input{accent-color:#293f7b}.mec-theme-swatch{width:65px;height:40px;border-radius:10px;background:linear-gradient(130deg,var(--swatch1,#eee9ff) 55%,var(--swatch2,#273d78) 55%)}
.mec-theme-option-christmas{--swatch1:#e5f2e9;--swatch2:#b53e49}.mec-theme-option-autumn{--swatch1:#f9e7ce;--swatch2:#aa5c29}.mec-theme-option-halloween{--swatch1:#a5263b;--swatch2:#171316}.mec-theme-option-spring{--swatch1:#e2f4e8;--swatch2:#31865e}.mec-theme-option-summer{--swatch1:#dff4fb;--swatch2:#147ba6}.mec-theme-option-winter{--swatch1:#e5effc;--swatch2:#426eae}.mec-theme-option-auto{--swatch1:#e2f4e8;--swatch2:#b53e49}

/* V79: the global image reveal must not override the slideshow's active slide. */
html.mec-images-enhanced .level-card .level-slideshow img.level-slide,
html.mec-images-enhanced .level-card .level-slideshow img.level-slide.mec-img-ready,
html.mec-images-enhanced .level-card .level-slideshow img.level-slide.mec-img-failed {
  opacity:0;
  transition:opacity .95s ease-in-out,transform 5.5s ease;
}
html.mec-images-enhanced .level-card .level-slideshow img.level-slide.is-active.mec-img-ready {opacity:1;}
@media(prefers-reduced-motion:reduce){
 html.mec-images-enhanced .level-card .level-slideshow img.level-slide{transition:none;}
}
