/* A lightweight taste of the kingdom, with no game engine or progress storage. */
.demo-adventure{--demo-accent:#7552cb;--demo-deep:#462584;--demo-soft:#f2ebff;position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(155deg,#eff0ff 0%,#f2edff 48%,#e2f6ff 100%);padding:26px 28px 42px;color:#30284b}
.demo-mathematiques{--demo-accent:#cc681e;--demo-deep:#8f3d12;--demo-soft:#fff1df;background:linear-gradient(145deg,#fff0c9,#fff3ec 60%,#f5e6ff)}
.demo-sciences{--demo-accent:#247c5d;--demo-deep:#135b43;--demo-soft:#e1f6e8;background:linear-gradient(145deg,#e4f7cc,#e9faf0 60%,#daf0ff)}
.demo-histoire{--demo-accent:#337aa5;--demo-deep:#20516f;--demo-soft:#e4f3ff;background:linear-gradient(145deg,#dcedff,#ebf2ff 60%,#f7e8d5)}
.demo-anglais{--demo-accent:#b44771;--demo-deep:#872d51;--demo-soft:#ffedf5;background:linear-gradient(145deg,#fce5f2,#f3ebff 60%,#e6f6fc)}
.demo-mouvement{--demo-accent:#427b57;--demo-deep:#2d593c;--demo-soft:#eafaed;background:linear-gradient(145deg,#eef7cc,#e6f7e6 60%,#ddf2fa)}
.demo-wrap{max-width:1060px;margin:auto;position:relative;z-index:1}.demo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.demo-back{display:inline-flex;gap:12px;align-items:center;min-height:44px;font-size:13px;font-weight:700;text-decoration:none}.demo-back:hover{text-decoration:underline}.demo-preview-label{font-size:9px;font-weight:800;letter-spacing:1.6px;color:var(--demo-deep)}.demo-preview-label>span{color:var(--demo-accent);font-size:17px;margin-left:10px}.demo-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 22px 190px}.demo-kicker{font-size:9px;font-weight:800;letter-spacing:1.8px;color:var(--demo-deep)}.demo-heading h1{font-size:clamp(25px,3.2vw,39px);line-height:1.12;letter-spacing:-1.4px;margin:8px 0 0;color:var(--demo-deep)}.demo-grade{display:flex;align-items:center;gap:10px;flex:none}.demo-grade label{font-size:11px;font-weight:700;white-space:nowrap}.demo-grade select{width:86px;min-height:44px;font-weight:750;font-size:13px;color:var(--demo-deep);border-color:#ffffff;background:#ffffffd9;box-shadow:0 3px 0 #30284b0a}.demo-stage{display:grid;grid-template-columns:166px minmax(0,1fr);gap:24px;align-items:center}.demo-companion{position:relative;text-align:center}.demo-companion img{width:200px;max-width:120%;margin-left:-12px;filter:drop-shadow(0 10px 4px #55467014);animation:demo-float 5s ease-in-out infinite}.demo-bubble{position:relative;background:#fff;border:2px solid #fff;border-radius:19px 19px 3px 19px;padding:17px 12px;font-size:13px;line-height:1.55;color:var(--demo-deep);box-shadow:0 5px 0 #30284b08;transform:rotate(-4deg)}.demo-sparkle{position:absolute;right:-4px;bottom:20px;font-size:49px;color:var(--demo-accent)}.demo-question{position:relative;background:#fff;border:3px solid #ffffffc2;border-radius:25px;padding:28px 30px 22px;box-shadow:0 7px 0 #75699820,0 20px 50px #75699812;min-width:0}.demo-question:before{content:'';position:absolute;top:0;left:30px;right:30px;height:5px;background:var(--demo-accent);border-radius:0 0 7px 7px}.demo-question-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;font-weight:700;color:var(--demo-deep);margin-bottom:20px}.demo-question-meta>span:first-child{display:flex;align-items:center;gap:10px}.demo-question-meta>span:first-child>span{background:var(--demo-soft);border-radius:12px;width:33px;height:33px;display:grid;place-items:center;font-size:17px}.demo-grade-badge{border-radius:30px;background:#f7edc9;color:#76571c;padding:5px 11px;font-size:10px}.demo-question h2{font-size:clamp(21px,2.2vw,29px);line-height:1.3;letter-spacing:-.6px;color:#30284b;margin-bottom:24px;text-wrap:pretty;overflow-wrap:anywhere}.demo-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.demo-choice{display:flex;align-items:center;gap:12px;position:relative;text-align:left;border:2px solid #e6dff0;border-radius:15px;background:#fcfaff;color:#342c47;box-shadow:0 4px 0 #e6dff0;min-height:70px;padding:13px 12px;font-size:15px;line-height:1.4;font-weight:650;transition:transform .15s,border-color .15s,background .15s;min-width:0}.demo-choice>span:nth-child(2){overflow-wrap:anywhere;flex:1}.demo-letter{width:28px;height:28px;display:grid;place-items:center;background:white;border-radius:9px;color:#85768e;font-size:11px;flex:none}.demo-choice-mark{font-size:18px;color:inherit;flex:none;min-width:12px}.demo-choice:hover:not(:disabled){background:var(--demo-soft);border-color:var(--demo-accent);transform:translateY(-2px)}.demo-choice:active:not(:disabled){transform:translateY(3px);box-shadow:none}.demo-choice:disabled{opacity:1;cursor:default}.demo-choice.is-correct{border-color:#258051;background:#e8f8eb;box-shadow:0 4px 0 #aed9ba;color:#155636}.demo-choice.is-selected{border-color:#c39349;background:#fff5df;box-shadow:0 4px 0 #ecd9b5;color:#79501b}.demo-hint{margin-top:22px;font-size:12px;color:#655173}.demo-hint summary{min-height:35px;cursor:pointer;width:fit-content;font-weight:650}.demo-hint p{font-size:13px;color:#655173;background:#f8f5fc;padding:12px 15px;border-radius:12px}.demo-feedback:empty{display:none}.demo-feedback{margin-top:18px;border-radius:15px;padding:17px;background:#e8f8eb;border:1px solid #baddc3;color:#155636;font-size:15px;animation:demo-reveal .22s ease-out}.demo-feedback.is-learning{background:#fff5df;border-color:#e9d8b4;color:#79501b}.demo-feedback p{margin:5px 0 0;font-size:14px;color:inherit;line-height:1.6}.demo-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px dashed #e8dff2;padding-top:15px;margin-top:18px}.demo-bottom>span{font-size:11px;color:#847a91}.demo-next{display:inline-flex;align-items:center;gap:12px;font-weight:750;font-size:12px;color:var(--demo-deep);text-decoration:none;min-height:44px}.demo-next:hover{text-decoration:underline}.demo-next>span{font-size:20px}.demo-invitation{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 0 0;margin-left:190px}.demo-invitation strong{font-size:16px;color:var(--demo-deep)}.demo-invitation p{font-size:12px;color:#6d647e;margin:4px 0}.demo-invitation .button{background:var(--demo-deep);min-height:48px;font-size:12px;padding:14px 20px;white-space:nowrap}.demo-footnote{font-size:10px;text-align:center;color:#726c80;margin:26px 0 0 190px}.demo-cloud{position:absolute;z-index:0;width:450px;height:100px;background:#ffffff70;border-radius:50%;pointer-events:none}.demo-cloud:before,.demo-cloud:after{content:'';position:absolute;background:inherit;border-radius:50%;bottom:15px;width:180px;height:160px;left:45px}.demo-cloud:after{left:165px;width:200px;height:220px}.cloud-left{left:-250px;top:55%;transform:rotate(-10deg)}.cloud-right{right:-260px;top:19%;transform:rotate(5deg)}.demo-companion.is-happy img{animation:demo-happy .6s ease-in-out 2}@keyframes demo-float{50%{transform:translateY(-6px) rotate(2deg)}}@keyframes demo-happy{50%{transform:translateY(-14px) rotate(-6deg)}}@keyframes demo-reveal{from{opacity:0;transform:translateY(5px)}}
@media(max-width:850px){.demo-adventure{padding:18px 22px 30px}.demo-stage{grid-template-columns:105px minmax(0,1fr);gap:18px}.demo-heading,.demo-invitation{margin-left:123px}.demo-bubble{font-size:11px;padding:13px 9px}.demo-companion img{max-width:130%;margin-left:-13px}.demo-sparkle{font-size:36px;right:-15px}.demo-question{padding:25px 23px 18px}.demo-invitation{gap:16px}.demo-invitation strong{font-size:14px}.demo-invitation p{font-size:11px}}
@media(max-width:600px){.demo-adventure{padding:10px 16px 26px}.demo-toolbar{margin-bottom:7px;gap:8px}.demo-preview-label{font-size:8px;letter-spacing:.6px}.demo-preview-label>span{display:none}.demo-back{font-size:12px;gap:7px}.demo-heading{margin:0 0 17px;gap:10px}.demo-kicker{display:none}.demo-heading h1{font-size:26px;margin:5px 0}.demo-grade{gap:5px;flex-direction:column;align-items:flex-start}.demo-grade label{font-size:10px}.demo-grade select{width:75px;min-height:40px;padding:8px 10px}.demo-stage{display:block}.demo-companion{display:none}.demo-question{padding:20px 16px 12px;border-radius:20px;border-width:2px}.demo-question:before{left:20px;right:20px;height:4px}.demo-question-meta{margin-bottom:16px;font-size:10px}.demo-question h2{font-size:21px;line-height:1.35;margin-bottom:20px}.demo-choices{gap:11px 9px}.demo-choice{font-size:13px;padding:11px 9px;gap:6px;min-height:76px;border-radius:13px;align-items:flex-start}.demo-letter{width:21px;height:24px;font-size:10px;border-radius:7px;flex:none}.demo-choice-mark{position:absolute;right:6px;bottom:3px;font-size:12px}.demo-choice>span:nth-child(2){padding-bottom:5px}.demo-hint{margin-top:18px}.demo-bottom{gap:6px;margin-top:8px;padding-top:7px}.demo-bottom>span{font-size:9px;max-width:105px;text-align:right}.demo-next{font-size:11px;gap:7px}.demo-feedback{font-size:14px;padding:14px}.demo-feedback p{font-size:13px}.demo-invitation{margin:0;padding-top:26px;align-items:flex-start;flex-direction:column;gap:13px}.demo-invitation strong{font-size:16px}.demo-invitation p{font-size:12px}.demo-invitation .button{align-self:stretch;min-height:48px}.demo-footnote{margin:20px 0 0;font-size:10px}}
@media(prefers-reduced-motion:reduce){.demo-companion img,.demo-feedback{animation:none!important}.demo-choice{transition:none!important}}

@media(max-width:600px){.demo-stage{position:relative}.demo-companion{display:block;position:absolute;right:19px;top:10px;width:53px;z-index:2;pointer-events:none}.demo-companion img{width:53px;max-width:none;margin:0;filter:none}.demo-bubble,.demo-sparkle{display:none}.demo-question-meta{padding-right:55px}}
