/* One screen per step. Theme only: question banks and saved records are unchanged. */
.ht-dialog.ht-adventure{--ink:#082f43;--gold:#ffda46;width:min(1380px,97vw);max-width:97vw;max-height:94vh;padding:0;border:1px solid #c7cabb;border-radius:16px;background:#faf7ee;color:var(--ink)}
.ht-adventure .ht-adventure-frame{display:grid;grid-template-columns:205px minmax(0,1fr);min-height:650px}
.ht-adventure .ht-adventure-nav{background:linear-gradient(165deg,#164d63,#052d3e);color:#fff8df;padding:0 12px 20px;display:flex;flex-direction:column;gap:24px}
.ht-adventure .ht-guide-cover{padding:20px 0 0;position:relative;overflow:hidden}
.ht-adventure .ht-guide-cover>small{letter-spacing:.12em;font:10px system-ui;display:block;opacity:.8}
.ht-adventure .ht-guide-cover>strong{font:600 20px Georgia,serif;display:block;margin:10px 0}
.ht-adventure .ht-guide-cover>img{width:100%;height:202px;object-fit:contain;object-position:center bottom;display:block;background:radial-gradient(ellipse at bottom,#beaa6a88,transparent 70%)}
.ht-adventure .ht-guide-cover>div{background:#062a3dcf;border:1px solid #ffffff29;border-radius:9px;margin-top:-12px;position:relative;padding:12px}
.ht-adventure .ht-guide-cover b{font:600 21px Georgia,serif}.ht-adventure .ht-guide-cover p{font-size:13px;line-height:1.5;margin:5px 0 0;color:#fff8df}
.ht-adventure .ht-adventure-nav nav{display:grid;gap:7px}.ht-adventure .ht-adventure-nav button{background:transparent;color:#fff8df;border:1px solid #ffffff26;text-align:left;border-radius:7px;padding:12px 10px;font:600 13px system-ui;min-height:45px;box-shadow:none}
.ht-adventure .ht-adventure-nav button[aria-current=page]{background:var(--gold);color:#082f43;border-color:var(--gold)}
.ht-adventure .ht-adventure-nav>small{margin-top:auto;font:11px system-ui;line-height:1.5;opacity:.8}
.ht-adventure .ht-adventure-main{min-width:0;margin:0;max-width:none;width:auto;padding:22px 26px 18px;background:#fcfaf4}
.ht-adventure .ht-breadcrumb{font:12px system-ui;line-height:1.6;color:#315a70;margin-bottom:20px}.ht-adventure .ht-breadcrumb span{padding:0 8px;color:#b99d44}
.ht-adventure .ht-adventure-main>header{padding:0 0 16px;background:none;align-items:start;gap:14px;border-bottom:1px solid #e8dfcb}
.ht-adventure .ht-adventure-main>header small{font:10px system-ui;letter-spacing:.1em;color:#67818a}
.ht-adventure .ht-adventure-main>header h2{font:700 clamp(24px,3vw,38px)/1.15 Georgia,serif;margin:5px 0;color:#082f43;max-width:850px}
.ht-adventure button{border-radius:9px;border-color:#d7d7c9;font-size:14px;min-height:42px}
.ht-adventure button.primary,.ht-adventure [data-help],.ht-adventure [data-submit]{background:linear-gradient(#ffe779,#ffd238);color:#102e38;border:1px solid #edc335;font-weight:700;box-shadow:0 2px 0 #c19d3a18}
.ht-adventure button:hover:not(:disabled){filter:brightness(.97)}.ht-adventure button:focus-visible{outline:3px solid #1676b6;outline-offset:3px}
.ht-adventure .ht-intro-subtitle{font:17px/1.6 Georgia,serif;max-width:680px;margin:20px 0}
.ht-adventure.ht-view-intro .ht-adventure-main{background:linear-gradient(#fcfaf4ee 0%,#fcfaf4d9 55%,#fcfaf412 100%),url('assets/hugo-coach-paysage-v1.png') bottom center/cover;display:flex;flex-direction:column}
.ht-adventure.ht-view-intro [data-topic="sixmois-histoire-1"] .ht-adventure-main{background-image:linear-gradient(#fcfaf4ee 0%,#fcfaf4df 55%,#fcfaf425 100%),url('assets/hugo-campement-paleolithique.png')}
.ht-adventure.ht-view-intro .ht-start-row+p.ht-note{background:#fffdf2eb;border-radius:6px;padding:8px 10px;max-width:640px}
.ht-adventure .ht-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:6px 0 16px}
.ht-adventure .ht-overview section{padding:18px 16px;border:1px solid #e7ddc7;border-radius:12px;background:#fffdf4ed;box-shadow:0 5px 18px #213c4510;min-width:0}
.ht-adventure .ht-overview section>span{font:700 27px Georgia;color:#16475e}.ht-adventure .ht-overview h3{font:700 16px Georgia;margin:10px 0;color:#082f43}
.ht-adventure .ht-overview ul{padding:0;list-style:none;margin:0;display:grid;gap:8px;font:14px/1.45 Georgia,serif}.ht-adventure .ht-overview li{padding-left:17px;position:relative}.ht-adventure .ht-overview li:before{content:'✓';position:absolute;left:0;color:#2f7473}
.ht-adventure .ht-stages{gap:8px}.ht-adventure .ht-stages button{background:#fffdf5e8;color:#133d50}.ht-adventure .ht-stages button[aria-pressed=true]{background:#fff0a4;border-color:#c7a33a;color:#082f43}
.ht-adventure .ht-start-row{display:flex;align-items:center;gap:20px;margin-top:auto;padding-top:24px}.ht-adventure .ht-start-row button{padding:14px 24px;font-size:17px}.ht-adventure .ht-start-row p{font:12px/1.6 system-ui;max-width:240px;background:#fffdf2cc;border-radius:8px;padding:8px}
.ht-adventure .ht-note{font-size:12px;line-height:1.5;color:#527080}.ht-adventure .ht-version{display:block;margin:8px 0 0;font:10px system-ui;color:#647b7d}
.ht-adventure .ht-route{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin:-6px 0 12px}.ht-adventure .ht-route span{width:10px;height:10px;border-radius:50%;background:#c6d4d6;border:2px solid #aebec4}.ht-adventure .ht-route .done{background:#367a71;border-color:#367a71}.ht-adventure .ht-route .current{width:28px;border-radius:6px;background:var(--gold);border-color:#edc335}
.ht-adventure.ht-view-play .ht-adventure-main>header{background:#082f43;color:white;margin:0 -26px;padding:15px 26px;border:0}.ht-adventure.ht-view-play .ht-adventure-main>header h2{font-size:23px;color:white}.ht-adventure.ht-view-play .ht-adventure-main>header small{color:#d3e1e5}.ht-adventure.ht-view-play .ht-adventure-main>header button{color:white;background:#ffffff10;border-color:#ffffff44;font-size:12px}
.ht-adventure .ht-meta{font:12px/1.6 system-ui;margin:12px 0 4px}.ht-adventure progress{height:5px;accent-color:#efc530;width:100%}
.ht-adventure .ht-question{margin-top:18px;padding:0;border:0;background:transparent}.ht-adventure .ht-play-layout{grid-template-columns:minmax(0,1fr) 245px;gap:20px}.ht-adventure .ht-play-main{min-width:0}.ht-adventure .ht-play-main h3{font:700 23px/1.35 Georgia,serif;margin:9px 0 15px;color:#082f43}.ht-adventure .ht-kind{font-size:11px;color:#956e21}
.ht-adventure .ht-stimulus{font:16px/1.7 Georgia,serif;background:#f1eddf;border-left:3px solid #d9b64c;padding:16px;margin:12px 0;border-radius:0 8px 8px 0}
.ht-adventure .ht-document{margin:12px 0;background:#efe9da;border-radius:9px;padding:8px}.ht-adventure .ht-document>img{width:100%;max-height:265px;object-fit:contain}.ht-adventure .ht-document figcaption{font:12px/1.5 Georgia;margin:6px}.ht-adventure .ht-document details img{width:100%;height:auto}
.ht-adventure .ht-context-scene{margin:12px 0 16px;background:#f2ecdc;border:1px solid #e1d8c5;border-radius:9px;padding:7px}.ht-adventure .ht-context-scene>img{width:100%;height:200px;object-fit:contain;display:block}.ht-adventure .ht-context-scene figcaption{font:11px/1.5 system-ui;margin:6px;color:#46626b}.ht-adventure .ht-context-scene summary{font-size:12px}.ht-adventure .ht-context-scene details img{width:100%;height:auto}
@media(min-width:1051px){.ht-adventure .ht-play-main:has(.ht-context-scene){display:grid;grid-template-columns:minmax(210px,.9fr) minmax(0,1fr);gap:10px 16px;align-content:start;align-items:start}.ht-adventure .ht-play-main:has(.ht-context-scene)>.ht-kind,.ht-adventure .ht-play-main:has(.ht-context-scene)>h3{grid-column:1/-1;margin:0}.ht-adventure .ht-play-main:has(.ht-context-scene)>.ht-context-scene{grid-column:1;grid-row:3 / span 7;margin:4px 0}.ht-adventure .ht-play-main:has(.ht-context-scene)>:not(.ht-kind):not(h3):not(.ht-context-scene){grid-column:2;margin:4px 0}.ht-adventure .ht-play-main:has(.ht-context-scene) .ht-options{grid-template-columns:1fr}.ht-adventure .ht-play-main:has(.ht-context-scene) .ht-options button{min-height:44px}.ht-adventure .ht-play-main:has(.ht-context-scene) .ht-context-scene>img{height:auto;max-height:280px}}
.ht-adventure.ht-view-play .ht-adventure-main>.ht-breadcrumb{margin:0 0 10px;font-size:11px}.ht-adventure.ht-view-play .ht-adventure-main>.ht-route{margin:0 0 10px}.ht-adventure.ht-view-play .ht-adventure-main>header{padding-top:10px;padding-bottom:10px}.ht-adventure.ht-view-play .ht-adventure-main>header h2{font-size:21px}.ht-adventure.ht-view-play .ht-meta{margin:8px 0 2px}.ht-adventure.ht-view-play .ht-question{margin-top:12px}
.ht-adventure .ht-howto{font-size:13px;line-height:1.5;background:#f7f0d9;padding:10px 12px;margin:12px 0}.ht-adventure [data-listen]{font-size:12px;background:#fffdf7;padding:8px 12px}
.ht-adventure .ht-response{margin-top:16px}.ht-adventure .ht-options{gap:10px}.ht-adventure .ht-options button{font-size:15px;padding:13px 14px;background:#fffcf3;min-height:58px;color:#123b50}.ht-adventure .ht-options button[aria-pressed=true]{background:#fff0a4;border:2px solid #d0a928}
.ht-adventure .ht-teacher-side{top:0}.ht-adventure .vt-teacher{background:#f4efdf;border:1px solid #e5d6b9;border-radius:12px;overflow:hidden;padding:12px}.ht-adventure .vt-teacher>header{display:flex;gap:10px;background:none;padding:0;border:0}.ht-adventure .vt-teacher>header img{width:65px;height:85px;object-fit:contain}.ht-adventure .vt-teacher h4{font:700 17px Georgia;margin:5px 0;color:#082f43}.ht-adventure .vt-teacher small{font-size:11px;color:#315a70}.ht-adventure .vt-board{margin:12px 0;background:#fffaf0;border-radius:8px;min-height:110px;padding:16px}.ht-adventure .vt-board p{font:16px/1.5 Georgia}.ht-adventure .vt-teacher>button{width:100%;font-size:13px}
.ht-adventure .ht-feedback{margin-top:18px;border-radius:10px;padding:15px}.ht-adventure .ht-feedback p{font-size:14px;line-height:1.6}.ht-adventure .ht-feedback .primary{margin-top:10px}.ht-adventure .ht-match label{font-size:15px}.ht-adventure .ht-bank button,.ht-adventure .ht-slots button{font-size:14px}
.ht-adventure .ht-result-banner{display:flex;align-items:center;gap:18px;padding:14px 0 22px}.ht-adventure .ht-result-banner>span{background:#ffe271;border-radius:50%;width:72px;height:72px;display:grid;place-items:center;font-size:38px;flex:none}.ht-adventure .ht-result-banner h2{font:700 32px Georgia;margin:5px 0}.ht-adventure .ht-result-banner p{margin:0;font:15px Georgia}.ht-adventure .ht-result-banner small{font:10px system-ui;letter-spacing:.12em}
.ht-adventure.ht-view-result .ht-adventure-main>header h2{font-size:22px}.ht-adventure .ht-levels section{border-color:#e4dfcd;background:#fffdf5;border-radius:9px;padding:14px}.ht-adventure .ht-success{font-size:18px}.ht-adventure .actions{gap:10px;flex-wrap:wrap}
@media(min-width:1500px){.ht-dialog.ht-adventure{width:1380px}.ht-adventure .ht-play-layout{grid-template-columns:minmax(0,1fr) 280px}}
@media(min-width:601px) and (max-height:700px){.ht-adventure .ht-adventure-frame{min-height:0}.ht-adventure .ht-adventure-nav{gap:12px}.ht-adventure .ht-guide-cover>img{height:120px}.ht-adventure .ht-guide-cover>div{padding:8px}.ht-adventure .ht-guide-cover p{font-size:11px}.ht-adventure .ht-adventure-main{padding-top:14px;padding-bottom:12px}.ht-adventure .ht-breadcrumb{margin-bottom:10px}.ht-adventure .ht-adventure-main>header{padding-bottom:10px}.ht-adventure .ht-adventure-main>header h2{font-size:29px}.ht-adventure .ht-intro-subtitle{font-size:15px;margin:12px 0}.ht-adventure .ht-overview section{padding:10px 12px}.ht-adventure .ht-overview h3{font-size:15px;margin:7px 0}.ht-adventure .ht-overview section>span{font-size:22px}.ht-adventure .ht-overview ul{font-size:13px;gap:4px}.ht-adventure .ht-overview{margin-bottom:8px}.ht-adventure .ht-start-row{padding-top:12px;gap:12px}.ht-adventure .ht-start-row button{font-size:15px;padding:10px 16px}.ht-adventure .ht-start-row p{margin:4px 0}.ht-adventure.ht-view-intro .ht-note{margin:8px 0;font-size:11px}.ht-adventure .ht-version{margin-top:4px}.ht-adventure .ht-context-scene>img{height:170px}}
@media(max-width:1050px){.ht-adventure .ht-adventure-frame{grid-template-columns:165px minmax(0,1fr)}.ht-adventure .ht-adventure-nav{padding:0 9px 14px}.ht-adventure .ht-guide-cover>img{height:145px}.ht-adventure .ht-play-layout{grid-template-columns:minmax(0,1fr) 210px;gap:14px}.ht-adventure .ht-adventure-main{padding:18px}.ht-adventure.ht-view-play .ht-adventure-main>header{margin:0 -18px;padding:14px 18px}.ht-adventure .ht-overview{gap:8px}.ht-adventure .ht-overview section{padding:12px}.ht-adventure .ht-overview ul{font-size:13px}}
@media(max-width:820px){.ht-adventure .ht-adventure-frame{grid-template-columns:1fr;min-height:0}.ht-adventure .ht-adventure-nav{padding:12px;gap:10px}.ht-adventure .ht-guide-cover{display:none}.ht-adventure .ht-adventure-nav nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.ht-adventure .ht-adventure-nav nav button{font-size:11px;padding:8px;text-align:center}.ht-adventure .ht-adventure-nav>small{display:none}.ht-adventure .ht-play-layout{grid-template-columns:minmax(0,1fr) 220px}.ht-adventure .ht-teacher-side{position:static}}
@media(max-width:600px){.ht-adventure .ht-adventure-main{padding:16px}.ht-adventure .ht-overview{grid-template-columns:1fr}.ht-adventure .ht-overview section{padding:12px}.ht-adventure .ht-overview section>span{float:left;margin-right:12px}.ht-adventure .ht-overview h3{margin:4px 0 10px}.ht-adventure .ht-start-row{align-items:start;flex-direction:column;gap:4px}.ht-adventure .ht-play-layout{display:flex;flex-direction:column}.ht-adventure .ht-teacher-side{order:initial}.ht-adventure .vt-board{min-height:0}.ht-adventure .ht-play-main h3{font-size:21px}.ht-adventure .ht-options{grid-template-columns:1fr}.ht-adventure .ht-adventure-nav nav{grid-template-columns:repeat(2,minmax(0,1fr))}.ht-adventure.ht-view-play .ht-adventure-main>header{margin:0 -16px;padding:12px 16px}.ht-adventure .ht-result-banner h2{font-size:26px}}
