@import url('/lore-reader.css');
@import url('/housing-permit-lock.css');
@import url('/housing-workshop-73.css');
@import url('/housing-garden-puzzles.css');
/* Petits travaux des Malices : plateaux manipulables, sans minuterie ni glisser obligatoire. */
.v6-game .malices-work{--malices-brass:#ddc28a;--malices-ink:#9cdbcd}
.v6-game .malices-work h3{margin:0 0 8px;font-size:22px;font-weight:400;color:#f0dba9}
.v6-game .malices-instruction{max-width:74ch;margin:0 0 10px}
.v6-game .malices-access,.v6-game .malices-cost-note{font:13px/1.6 system-ui,sans-serif;color:#d2c9b6;max-width:80ch}
.v6-game .malices-work button{touch-action:manipulation;min-width:44px;min-height:44px}
.v6-game .malices-work .malices-diagram{display:block;width:100%;height:auto;stroke:none}
.v6-game .malices-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.v6-game .malices-level{padding:14px 10px;border:1px solid #b19b666b;border-radius:15px;background:linear-gradient(145deg,#28474b,#173238)}
.v6-game .malices-level h4{margin:0 5px 8px;font-size:18px;font-weight:400}
.v6-game .malices-level h4 small{display:block;color:#d8c18c;font:13px/1.6 system-ui,sans-serif}
.v6-game .malices-shims{display:flex;justify-content:space-around;gap:10px;text-align:center}
.v6-game .malices-shims span{display:block;text-transform:capitalize;font:12px/1.5 system-ui,sans-serif;margin-bottom:5px}
.v6-game .malices-shims button{padding:4px 10px;margin:2px;font-size:22px}
.v6-game .malices-ink-route{display:grid;grid-template-columns:minmax(38px,.55fr) repeat(3,minmax(0,1fr)) minmax(38px,.55fr);grid-template-rows:repeat(3,1fr);gap:5px;max-width:520px;margin:16px auto;padding:8px;border:2px solid #a38b56;border-radius:16px;background:#102a30}
.v6-game .malices-pipes{display:contents}
.v6-game .malices-ink-source,.v6-game .malices-ink-target{align-self:center;text-align:center;color:#dbca9d;font:12px/1.3 system-ui,sans-serif;overflow-wrap:anywhere}
.v6-game .malices-ink-source{grid-row:1;grid-column:1}
.v6-game .malices-ink-target{grid-row:3;grid-column:5}
.v6-game .malices-ink-target svg{display:block;width:100%;max-height:70px;stroke:none}
.v6-game .malices-evidence-plate{max-width:420px;margin:18px auto;text-align:center;color:#d8c18c}
.v6-game .malices-evidence-plate svg{width:100%;height:auto;display:block;stroke:none}
.v6-game .malices-pipes button{position:relative;aspect-ratio:1;padding:3px;background:#284248;border-radius:8px;border-color:#b7a07388}
.v6-game .malices-pipes button.is-flowing{background:#315a53;border-color:#9cdbcd}
.v6-game .malices-pipes svg{display:block;width:100%;height:auto;stroke:none}
.v6-game .malices-pipes small{position:absolute;bottom:3px;left:0;right:0;font:10px/1.3 system-ui,sans-serif;background:#17383bcc}
.v6-game .malices-pipe-blank{border-radius:8px;background:repeating-linear-gradient(45deg,#1a343b,#1a343b 7px,#203b40 7px,#203b40 9px);opacity:.7}
.v6-game .malices-plate-reference{display:flex;align-items:center;justify-content:center;gap:20px;margin:15px 0;font:13px/1.5 system-ui,sans-serif}
.v6-game .malices-plate-reference>span{max-width:150px}
.v6-game .malices-plate-reference>div{display:grid;grid-template-columns:repeat(3,35px);gap:3px}
.v6-game .malices-plate-reference>div span{border:1px solid #af9c6a;padding:3px;text-align:center;font-size:12px}
.v6-game .malices-plate{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;max-width:430px;margin:auto;padding:12px;border:3px ridge #aa8c58;border-radius:12px;background:#102a30}
.v6-game .malices-plate button{position:relative;aspect-ratio:1;padding:0;overflow:hidden;border:1px solid #a28c62;border-radius:5px;background:#354d4e}
.v6-game .malices-plate svg{display:block;width:100%;height:auto;stroke:none}
.v6-game .malices-plate strong{position:absolute;top:9px;left:9px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#132f36;color:#eed5a4;border:1px solid #baa06c;font-size:17px}
.v6-game .malices-empty{display:grid;place-items:center;text-align:center;border:1px dashed #a48c5866;border-radius:5px;color:#c7b786;font:12px/1.5 system-ui,sans-serif}
.v6-game .malices-chain-note,.v6-game .malices-chain-count{text-align:center;color:#e4cea0;margin:12px 0;font:14px/1.5 system-ui,sans-serif}
.v6-game .malices-chain{display:grid;grid-template-columns:repeat(3,1fr);position:relative;aspect-ratio:1;max-width:340px;margin:auto;border:1px solid #af9761;border-radius:17px;background:radial-gradient(ellipse at center,#345055,#16323a)}
.v6-game .malices-chain>svg{position:absolute;inset:0;display:block;width:100%;height:100%;stroke:none;pointer-events:none}
.v6-game .malices-chain>div{position:relative;display:grid;place-items:center}
.v6-game .malices-chain button{display:grid;place-items:center;align-content:center;padding:3px;width:56px;height:56px;border-radius:50%;font-size:20px;background:#1b3940}
.v6-game .malices-chain button[aria-pressed=true]{background:#e0c080;color:#172f35;border:3px solid #fff1c8;box-shadow:0 0 0 5px #17323acc}
.v6-game .malices-chain button.malices-free-point{border:1px dashed #af9b70;color:#e9d9aa;background:#163039b8;font:13px/1.4 system-ui,sans-serif}
.v6-game .malices-chain button.malices-chain-fixed{opacity:1;border:3px double #b9a16f;background:#3b4947;color:#e2cf9e}
.v6-game .malices-chain-fixed small{font:9px/1.2 system-ui,sans-serif}
.v6-game .malices-cloth{position:relative;width:min(320px,90%);height:205px;margin:20px auto;background:#102a30;border:1px solid #876f46;border-radius:12px}
.v6-game .malices-cloth-sheet{position:absolute;inset:14px;background:repeating-linear-gradient(0deg,#a49d83,#a49d83 4px,#aaa58f 4px,#aaa58f 6px);box-shadow:2px 4px 7px #0005;border:1px solid #d6ccb0;display:grid;place-items:center;text-align:center;color:#263b3a;padding:10px}
.v6-game .malices-cloth-sheet span{font:13px/1.5 system-ui,sans-serif;background:#e5ddc1df;padding:6px 10px;border-radius:8px}
.v6-game .malices-cloth-sheet.is-folded-left{left:30%}.v6-game .malices-cloth-sheet.is-folded-right{right:30%}.v6-game .malices-cloth-sheet.is-folded-bottom{bottom:48%}
.v6-game .malices-cords,.v6-game .malices-folds,.v6-game .malices-tools{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:12px 0}
.v6-game .malices-cords button,.v6-game .malices-folds button{font-size:14px}
.v6-game .malices-completion{text-align:center;margin:24px 0;padding:14px 0}
.v6-game .malices-completion .work-complete-button{font-size:20px;box-shadow:0 6px 20px #0005}
@media(max-width:780px){.v6-game .malices-levels{grid-template-columns:1fr}.v6-game .malices-level{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:center}.v6-game .malices-level h4{grid-column:1/-1}.v6-game .malices-level .malices-diagram{min-width:0}.v6-game .malices-shims{gap:5px}}
@media(max-width:430px){.v6-game .malices-level{display:block}.v6-game .malices-level .malices-diagram{max-height:90px}.v6-game .malices-pipes{max-width:300px}.v6-game .malices-ink-labels{max-width:300px}.v6-game .malices-chain{max-width:290px}.v6-game .malices-chain button{width:48px;height:48px}.v6-game .malices-cords button,.v6-game .malices-folds button{flex:1 1 130px}}
:root{color-scheme:dark;--v6-bg:#152930;--v6-panel:#19343bed;--v6-line:#a88e5a;--v6-text:#f1e3c5;--v6-gold:#e0c180}*{box-sizing:border-box}.v6-game{margin:0;overflow:hidden;background:var(--v6-bg);color:var(--v6-text);font:16px/1.5 Georgia,serif}.v6-game button,.v6-game a,.v6-game input,.v6-game select{font:inherit}.v6-game button,.v6-game a{touch-action:manipulation}.v6-game button{background:#203e45;color:var(--v6-text);border:1px solid #8f805c;border-radius:12px;padding:10px 16px;cursor:pointer;min-height:44px}.v6-game button:hover:not(:disabled){background:#31545b;border-color:#e0c180}.v6-game button:disabled{opacity:.42;cursor:default}.v6-game a{color:var(--v6-text);text-decoration:none}.v6-game :focus-visible{outline:3px solid #e6cb83;outline-offset:3px}.v6-game svg{width:28px;height:28px;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.v6-header{height:62px;display:flex;align-items:center;gap:20px;padding:8px 24px;background:#142a30f5}.v6-brand{font-size:24px;color:var(--v6-gold)!important}.v6-title{margin:0;font-size:18px;font-weight:400;flex:1}.v6-title small{display:block;font-size:12px;color:#ccb98e}.v6-wallet{font-size:20px;white-space:nowrap}.v6-wallet small{font-size:12px;margin-left:5px}.v6-header .v6-quiet{padding:4px;background:transparent;border:0}.v6-stage{height:calc(100dvh - 62px);position:relative;overflow:hidden}.v6-stage canvas{display:block;width:100%;height:100%;touch-action:none}.v6-rail{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);display:flex;gap:5px;padding:7px;background:#163138ed;border:1px solid #bca16a99;border-radius:24px;box-shadow:0 15px 28px #07171b88}.v6-rail button,.v6-rail a{display:flex;align-items:center;justify-content:center;gap:10px;min-width:132px;padding:10px 15px;border-radius:17px;border:1px solid transparent;background:transparent}.v6-rail a.has-reward{border-color:#edd18b;background:#a38a3b32;box-shadow:0 0 17px #dac07930}.v6-floor-button{position:absolute;right:18px;top:15px;background:#19363de8!important}.v6-story-note{position:absolute;bottom:120px;left:26px;max-width:290px;font-size:15px;text-shadow:0 1px 5px #06181e}.v6-drawer{position:absolute;top:72px;right:18px;bottom:108px;width:370px;max-width:calc(100% - 30px);overflow:auto;background:var(--v6-panel);border:1px solid #9e895c;border-radius:20px;box-shadow:0 16px 45px #0008;padding:20px;backdrop-filter:blur(14px)}.v6-drawer-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.v6-drawer-head h2{font-size:23px;margin:0}.v6-drawer-head button{border:0;background:transparent;font-size:24px}.v6-drawer p{color:#d8c9a8;font-size:14px}.v6-job{width:100%;display:flex;justify-content:space-between;gap:14px;text-align:left;margin:9px 0}.v6-job span{white-space:nowrap;color:#e4c98d}.v6-drawer h3{font-weight:400;color:#edd59e;border-top:1px solid #9d855a55;padding-top:18px;margin-top:20px}.v6-drawer .v6-progress{display:block;color:#dac28e;font-size:12px}.v6-primary{background:#d8be80!important;color:#203333!important;border-color:#f1d99a!important;font-weight:600!important}.v6-primary:hover{background:#ebd29a!important}.v6-creation{border:1px solid #c6a96a;border-radius:16px;padding:14px;margin:16px 0;background:#ad91551a}.v6-creation button{width:100%}#v6-notice{position:fixed;top:72px;left:50%;transform:translateX(-50%);z-index:30;max-width:min(560px,92vw);margin:0;background:#233f43f2;padding:0;border-radius:14px;box-shadow:0 5px 20px #0005}#v6-notice:not(:empty){padding:13px 20px;border:1px solid #c6a768}dialog{width:min(810px,94vw);max-height:92dvh;overflow:auto;border:1px solid #ba9d63;border-radius:22px;background:#17333a;color:var(--v6-text);padding:30px;box-shadow:0 25px 80px #0009}dialog::backdrop{background:#08191dd9;backdrop-filter:blur(7px)}.v6-dialog-close{position:absolute;right:14px;top:10px;z-index:5}.v6-game dialog h2{font-size:31px;line-height:1.2;padding-right:35px;font-weight:400}.v6-game dialog label{display:block}.v6-game input[type=text],.v6-game input:not([type]),.v6-game select{display:block;width:100%;padding:10px;border:1px solid #9e8b61;border-radius:10px;background:#0f282e;color:var(--v6-text)}.v6-game input[type=radio]{margin-right:8px;accent-color:#cdb478}.v6-overline{font:12px/1.4 system-ui,sans-serif;letter-spacing:.13em;text-transform:uppercase;color:#d8bd7d}.v6-covers{border:0;display:flex;gap:13px;padding:12px 0;flex-wrap:wrap}.v6-cover{border:1px solid #c6a36b;border-radius:8px;padding:16px 10px;width:145px;min-height:130px;text-align:center;box-shadow:inset 7px 0 #0002,0 5px 12px #0004;font-size:13px}.v6-cover span{display:block;font-size:32px;color:#e6c675}.v6-cover-sage{background:linear-gradient(110deg,#33544b,#547c69)}.v6-cover-marine{background:linear-gradient(110deg,#21364e,#3f5b7a)}.v6-cover-miel{background:linear-gradient(110deg,#7d582e,#ba9557)}.v6-order-list{list-style:none;padding:0;margin:16px 0}.v6-order-list li{display:flex;align-items:center;gap:12px;padding:11px;background:#22424a;border:1px solid #a9905a66;border-radius:12px;margin:9px 0}.v6-order-list li>div:first-of-type{flex:1}.v6-order-list p{font-size:14px;margin:3px 0;color:#dacdb2}.v6-token-symbol{border:1px solid #b59a60;border-radius:50%;width:33px;height:33px;display:grid;place-items:center;color:#e7ca8a;flex-shrink:0}.v6-order-tools{display:flex;gap:6px}.v6-order-tools button{padding:6px 12px;min-width:44px}.v6-machine-portrait{display:block;max-width:220px;max-height:180px;margin:10px auto;width:100%;height:auto}.v6-game-actions{display:flex;gap:8px;flex-wrap:wrap}.v6-suspects{border:1px solid #a08758;border-radius:14px;padding:12px}.v6-suspects label{padding:12px;border-bottom:1px solid #9e895b44}.v6-plaques{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.v6-earned-plaque{padding:12px;text-align:center;border:2px solid #bd9f5e;border-radius:12px;background:linear-gradient(135deg,#9b783e,#e7cc8f,#ac874c);color:#2b3837;font-weight:600}.v6-earned-plaque strong{display:block;font-size:33px}.v6-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px auto;max-width:300px}.v6-keypad [data-erase]{grid-column:span 2}.v6-work-host .work-access{margin-top:20px}.v6-work-host .work-complete-button{min-height:70px;font-size:21px!important}.v6-loading{margin:15vh auto;text-align:center}.v6-stats{font-size:12px;color:#d4bd88}.v6-equipment{display:grid;grid-template-columns:86px 1fr;gap:14px;margin:14px 0;padding:12px 0;border-bottom:1px solid #a9905b55}.v6-equipment canvas{width:85px;height:100px;align-self:center}.v6-equipment h3{border:0;padding:0;margin:0;font-size:17px}.v6-equipment button{font-size:14px;padding:7px 12px}.v6-game [hidden]{display:none!important}
@media(max-width:650px){.v6-header{height:54px;gap:10px;padding:5px 12px}.v6-brand{font-size:18px}.v6-title{font-size:14px}.v6-title small{font-size:10px}.v6-wallet{font-size:18px}.v6-stage{height:calc(100dvh - 54px)}.v6-floor-button{top:12px;right:10px;font-size:13px!important;padding:7px 12px!important}.v6-rail{bottom:15px;gap:2px;padding:5px;max-width:94vw}.v6-rail button,.v6-rail a{min-width:95px;padding:9px 10px;gap:4px;flex-direction:column;font-size:12px}.v6-rail svg{width:26px;height:26px}.v6-drawer{top:72px;right:10px;bottom:110px;width:calc(100% - 20px);padding:16px}.v6-story-note{font-size:12px;bottom:115px;left:17px;max-width:240px}.v6-game dialog{padding:25px 17px;width:96vw}.v6-game dialog h2{font-size:25px}.v6-covers{gap:8px}.v6-cover{width:calc((100% - 16px)/3);padding:9px 4px;min-height:116px;font-size:11px}.v6-order-tools{flex-direction:column;gap:2px}.v6-order-tools button{min-height:36px;padding:3px 9px}.v6-token-symbol{width:25px;height:25px}.v6-plaques{gap:5px}.v6-earned-plaque{font-size:11px;padding:8px 4px}.v6-earned-plaque strong{font-size:26px}#v6-notice{top:60px;font-size:14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Les SVG des gestes de rénovation sont des plateaux de jeu, pas des icônes. */
.v6-game #v6-work{width:min(1120px,96vw);padding:24px;max-height:96dvh}
.v6-game #v6-work-title{font-size:clamp(24px,3vw,34px);margin:0 44px 16px 0;padding:0}
.v6-game .work-surface{position:relative;width:100%;aspect-ratio:1200/850;min-height:280px;max-height:64dvh;touch-action:none}
.v6-game .work-surface>svg{display:block;width:100%;height:100%;max-height:64dvh;stroke:none;stroke-width:0;border-radius:14px}
.v6-game .work-progress{height:9px;overflow:hidden;border-radius:8px;background:#cfb77a26;margin:14px 0}.v6-game .work-progress i{display:block;height:100%;background:#e0c180}
.v6-game .work-stage{position:relative}.v6-game .work-completion{position:absolute;inset:0;display:grid;place-items:center;background:#0a24283d;border-radius:14px}.v6-game .work-complete-button{max-width:88%;padding:23px 28px;background:#e4cb8b;color:#19343b;font-weight:700;border:2px solid #fff0c2;box-shadow:0 0 0 7px #17333ac9,0 10px 28px #0007}.v6-game .work-complete-button small{display:block;margin-top:6px;font-size:14px;font-weight:400}.v6-game .work-feedback{line-height:1.5}.v6-game .work-access{padding:12px;border:1px solid #a78f5a66;border-radius:12px}.v6-game .work-access summary{cursor:pointer;min-height:40px}.v6-game .work-access button{margin-top:12px}.v6-game .work-legend{display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:650px){.v6-game #v6-work{padding:18px 12px}.v6-game .work-surface{min-height:260px;max-height:56dvh}.v6-game .work-surface>svg{max-height:56dvh}.v6-game .work-complete-button{padding:18px;font-size:19px!important}}
.v6-game .v6-story-note{padding:10px 13px;background:#142e35ed;border:1px solid #b39c6355;border-radius:13px;line-height:1.5;text-shadow:none;max-width:320px}
@media(max-width:650px){.v6-game .v6-story-note{max-width:240px;font-size:12px;padding:8px 10px}}

/* Réactions ancrées sur Écholalie ; la silhouette reste une pose raster fixe. */
.v6-game .v6-companion-greet{position:absolute;min-width:44px;min-height:44px;border:0;padding:0;background:transparent;box-shadow:none;border-radius:45%;cursor:pointer}
.v6-game .v6-companion-greet:hover:not(:disabled){background:transparent;border:0}
.v6-game .v6-companion-greet:focus-visible{outline:2px dashed #f2d89b;outline-offset:4px}
.v6-companion-reaction{position:absolute;z-index:3;display:flex;align-items:center;gap:10px;width:max-content;max-width:min(290px,calc(100% - 24px));padding:12px 15px;border:1px solid #d1ad68;border-radius:19px 19px 19px 5px;background:#f6e8c9;color:#283d40;box-shadow:0 7px 18px #12282c66;transform:translate(-50%,-100%);pointer-events:none;animation:v6-emote-appear 180ms ease-out both}
.v6-companion-reaction p{margin:0;font:16px/1.4 Georgia,serif;text-wrap:pretty}.v6-emote-symbol{flex:none;font:30px/1 Georgia,serif;color:#a37731}.v6-companion-reaction[data-emote=love] .v6-emote-symbol{color:#a76560}.v6-companion-reaction[data-emote=curious] .v6-emote-symbol{color:#687d77}
@keyframes v6-emote-appear{from{opacity:0;transform:translate(-50%,calc(-100% + 5px)) scale(.96)}to{opacity:1;transform:translate(-50%,-100%) scale(1)}}
@media(max-width:650px){.v6-companion-reaction{max-width:min(260px,calc(100% - 24px));padding:10px 12px}.v6-companion-reaction p{font-size:14px}.v6-emote-symbol{font-size:27px}}
@media(prefers-reduced-motion:reduce){.v6-companion-reaction{animation:none}}

/* Le retour au site reste toujours en haut à droite, y compris sur téléphone. */
.v6-exit{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;min-height:44px;padding:8px 14px;border:1px solid var(--v6-line);border-radius:14px;background:#24424a;font-size:14px;white-space:nowrap}.v6-exit:hover{background:#31545b;border-color:var(--v6-gold)}.v6-exit span{font-size:20px;line-height:1;color:var(--v6-gold)}
@media(max-width:650px){.v6-header{height:98px;display:grid;grid-template-columns:minmax(0,1fr) auto 44px;grid-template-rows:44px 44px;gap:0 8px;padding:5px 12px}.v6-brand{grid-column:1;grid-row:1}.v6-exit{grid-column:2/4;grid-row:1;justify-self:end;padding:7px 10px;font-size:13px}.v6-title{grid-column:1;grid-row:2;min-width:0}.v6-title>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v6-title small{font-size:9px;white-space:nowrap}.v6-wallet{grid-column:2;grid-row:2;font-size:16px}.v6-header .v6-quiet{grid-column:3;grid-row:2;width:44px;height:44px}.v6-stage{height:calc(100dvh - 98px)}#v6-notice{top:104px}}
#v6-dialog-host :is(input,select,textarea){font:inherit;max-width:100%;padding:10px;border:1px solid #a58b56;border-radius:8px}#v6-dialog-host label{display:block;margin:14px 0}#v6-dialog-host :is(button,a){min-height:44px;margin:6px;padding:10px 14px}#v6-dialog-host :is(h2,h3,p,li){overflow-wrap:anywhere}
#v6-root[aria-busy=true] .v6-stage{pointer-events:none;cursor:progress}
#v6-root[data-curtains-busy=true] #v6-canvas{pointer-events:auto}
.v6-curtain-controls{position:absolute;inset:0;pointer-events:none}
.v6-game .v6-curtain-target,.v6-game .v6-curtain-target:hover:not(:disabled){position:absolute;pointer-events:none;border:0;padding:0;border-radius:5px;background:transparent;color:transparent}
.v6-game .v6-hatch-target,.v6-game .v6-hatch-target:hover:not(:disabled){pointer-events:auto;touch-action:manipulation}
.v6-game .v6-curtain-target:focus-visible{outline:2px solid #ecd38e;outline-offset:2px;box-shadow:0 0 0 4px #11292b}
.v6-curtain-target:focus-visible::after{content:attr(aria-label);position:absolute;left:50%;bottom:100%;transform:translateX(-50%);width:max-content;max-width:min(280px,75vw);padding:7px 10px;border:1px solid #bda672;border-radius:8px;background:#17363b;color:#f6ebd2;font:14px/1.4 sans-serif}


.v6-rail [hidden]{display:none}
/* Narrative manuscript inks use a stable paper ground in both themes. */
.housing-word-maison{color:#8acaff}
:root[data-theme=light] .housing-word-maison{color:#075aa8}
.v6-ink-red,.v6-ink-anthracite{background:#f4ead7!important;border:1px solid #9b865e;border-radius:8px;padding:18px;line-height:1.85;white-space:normal}
.v6-game .v6-ink-red,#v6-dialog-host .v6-ink-red{color:#9b2634!important}
.v6-game .v6-ink-anthracite,#v6-dialog-host .v6-ink-anthracite{color:#34383c!important}
.v6-ink-red .housing-word-maison,.v6-ink-anthracite .housing-word-maison{color:#075aa8!important}
.v6-discoveries-button{font-size:14px!important;background:var(--v6-panel)!important;white-space:nowrap}
.v6-lore-target{position:absolute;z-index:2;width:44px;min-height:44px;padding:0!important;border:1px dotted #e5d4a9!important;border-radius:50%!important;background:#19343b80!important;font-size:0!important;opacity:.4}
.v6-lore-target:before{content:'·';font-size:24px;color:#fff1cf}
.v6-lore-target:hover,.v6-lore-target:focus-visible{opacity:1;width:auto;max-width:220px;padding:8px!important;font-size:13px!important;border-radius:12px!important}
.v6-lore-target:hover:before,.v6-lore-target:focus-visible:before{content:''}
.v6-lore-tabs{display:flex;flex-wrap:wrap;gap:4px;margin:16px 0}
#v6-dialog-host .v6-lore-tabs button{margin:0;flex:1;white-space:nowrap}
.v6-lore-tabs [aria-selected=true]{border-bottom:3px solid currentColor}
.v6-lore-entry{padding:12px 0;border-bottom:1px solid #a58b5680}
.v6-lore-entry h3{margin:0}.v6-lore-entry small{font-size:12px;font-weight:400}
.v6-lore-reading p{line-height:1.85;overflow-wrap:anywhere}.v6-lore-reply{font-style:italic}
@media(max-width:600px){.v6-discoveries-button{font-size:12px!important;padding:8px!important}.v6-lore-tabs{gap:2px}#v6-dialog-host .v6-lore-tabs button{font-size:13px;padding:8px}.v6-ink-red,.v6-ink-anthracite{padding:12px}}

.v6-scene-tools{position:absolute;top:12px;left:12px;right:180px;max-width:820px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;z-index:4;pointer-events:none}.v6-scene-tools>*{pointer-events:auto}#v6-next-milestone{margin:0;min-width:0}.v6-goal-button{display:grid;gap:3px;width:100%;text-align:left;background:var(--v6-panel)!important;padding:10px 14px!important}.v6-goal-button small{font:11px/1.4 system-ui,sans-serif;color:var(--v6-gold)}.v6-goal-button strong{font-size:14px;font-weight:400;line-height:1.35}.v6-goal-budget{display:flex;gap:6px 16px;flex-wrap:wrap;font:12px/1.5 system-ui,sans-serif;color:var(--v6-gold)}.v6-lore-reply,.v6-spoken-story{display:flex;gap:14px;align-items:flex-start}.v6-lore-reply p{margin:5px 0}.v6-spoken-story>p{min-width:0;margin-top:0}.v6-companion-reaction .housing-emotion-face{float:left;margin-right:8px}.v6-lore-reply .housing-emotion-face{margin-top:3px}
@media(max-width:820px){.v6-scene-tools{right:165px;grid-template-columns:minmax(0,1fr);gap:7px}.v6-discoveries-button{justify-self:start}.v6-goal-button strong{font-size:13px}}
@media(max-width:600px){.v6-scene-tools{right:115px;left:10px;top:12px}.v6-goal-button{padding:8px 10px!important}.v6-goal-budget{font-size:11px;gap:2px 9px}.v6-lore-reply,.v6-spoken-story{gap:10px}.v6-lore-reply .housing-emotion-face,.v6-spoken-story .housing-emotion-face{width:52px!important;height:52px!important;flex-basis:52px!important}}

.v6-scene-tools{right:12px;max-width:none;grid-template-columns:minmax(0,520px) auto minmax(0,1fr);justify-content:space-between}.v6-scene-tools .v6-floor-button{position:static;grid-column:3;grid-row:1;justify-self:end}.v6-scene-tools .v6-discoveries-button{grid-column:2;grid-row:1}
@media(max-width:820px){.v6-scene-tools{grid-template-columns:minmax(0,1fr) auto}.v6-scene-tools .v6-floor-button{grid-column:2}.v6-scene-tools .v6-discoveries-button{grid-column:1;grid-row:2}}
@media(max-width:600px){.v6-scene-tools{right:10px}.v6-scene-tools .v6-floor-button{max-width:132px}}

/* The RPG reader owns its theme, including anonymous manuscript inks. */
#v6-dialog.lore-rpg-dialog{inset:0;margin:auto;padding:0;border:0;background:transparent;width:min(1120px,calc(100% - 36px));max-width:none;max-height:calc(100dvh - 36px);box-shadow:0 30px 100px #0005}
#v6-dialog-host .lore-rpg-frame .v6-ink-red{color:var(--lore-red)!important;background:transparent!important;border:0;padding:6px}
#v6-dialog-host .lore-rpg-frame .v6-ink-anthracite{color:var(--lore-text)!important;background:transparent!important;border:0;padding:6px}
#v6-dialog-host .lore-rpg-frame .housing-word-maison{color:var(--lore-blue)!important}
#v6-dialog-host .lore-rpg-frame button{margin:0}
#v6-dialog-host .lore-rpg-frame nav button{font:500 .86rem/1.4 system-ui,sans-serif}
#v6-dialog-host .lore-rpg-frame h2{font-size:clamp(1.2rem,2.6vw,1.65rem)}
#v6-dialog-host [data-puzzle-form] .lore-scene{margin:16px auto;max-width:500px;padding:12px;border:1px solid #b69a6260;border-radius:14px;background:#0d252b66;text-align:center}
#v6-dialog-host [data-puzzle-form] .lore-scene img{width:100%;max-height:240px;object-fit:contain}
#v6-dialog-host [data-puzzle-form] fieldset{margin:20px 0;border:1px solid #a58a5966;border-radius:14px;padding:16px}
#v6-dialog-host .lore-rpg-frame .lore-carnet-link{margin-right:auto}
@media(max-width:700px){#v6-dialog.lore-rpg-dialog{inset:0;width:calc(100% - 16px);max-height:calc(100dvh - 16px)}}

#v6-dialog.lore-rpg-dialog>.v6-dialog-close{display:none}

/* Four essentials stay inside narrow viewports. */
@media(max-width:650px){.v6-rail{width:max-content;max-width:96vw}.v6-rail button,.v6-rail a{min-width:0;flex:1;padding:8px 10px}.v6-rail [data-v6="lights"]{min-height:64px}}

/* Keep the point fixed; its label is centred and clamped separately. */
.v6-lore-target,.v6-lore-target:hover,.v6-lore-target:focus-visible{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0!important;border-radius:50%!important;font-size:0!important;overflow:visible}
.v6-lore-target:hover:before,.v6-lore-target:focus-visible:before{content:'·'}
.v6-lore-label{position:absolute;display:flex;align-items:center;justify-content:center;text-align:center;box-sizing:border-box;min-height:48px;width:max-content;max-width:min(280px,calc(100vw - 24px));padding:12px 16px;line-height:1.45;font:13px/1.45 Andika,system-ui,sans-serif;border:1px solid #cdb67b;border-radius:12px;background:#19343bf5;color:#fff0d2;box-shadow:0 5px 18px #0004;opacity:0;visibility:hidden;transition:opacity .12s;z-index:3}
.v6-lore-target:hover .v6-lore-label,.v6-lore-target:focus-visible .v6-lore-label{opacity:1;visibility:visible}
@media(prefers-reduced-motion:reduce){.v6-lore-label{transition:none}}

/* Eight Cellier gestures; static diagrams and native controls, no animation loop. */
.v6-game .cellar-work{--cellar-gold:#ddc28a;--cellar-mint:#a1d4c2;min-width:0}
.v6-game .cellar-work-heading>span{font:11px/1.5 system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#b9cebf}
.v6-game .cellar-work h3{font-size:23px;font-weight:400;color:#f0dba9;margin:5px 0 12px;border:0;padding:0}
.v6-game .cellar-instruction{max-width:76ch;line-height:1.6;margin:0 0 7px}
.v6-game .cellar-access,.v6-game .cellar-cost-note{font:13px/1.5 system-ui,sans-serif;color:#d2c9b6;max-width:80ch}
.v6-game .cellar-board{border:1px solid #a78f5a77;background:linear-gradient(145deg,#284842,#183538);border-radius:16px;padding:20px;min-width:0}
.v6-game .cellar-work button{min-height:44px;min-width:44px;touch-action:manipulation;white-space:normal;line-height:1.35}
.v6-game .cellar-work button:focus-visible{outline:3px solid #b5e5d7;outline-offset:3px}
.v6-game .cellar-work button[aria-pressed=true]{background:#d8c58e;color:#183b38;border-color:#fff0c2;box-shadow:inset 0 0 0 1px #fff0c2}
.v6-game .cellar-board fieldset{border:0;padding:0;margin:16px 0;min-width:0}
.v6-game .cellar-board legend{font-size:15px;color:#eddfba;margin-bottom:7px}
.v6-game .cellar-reference,.v6-game .cellar-options,.v6-game .cellar-tools{display:flex;flex-wrap:wrap;gap:9px;justify-content:center;align-items:center;margin:12px 0}
.v6-game .cellar-chip{padding:5px 11px;background:#132f32;border:1px solid #b09c6766;border-radius:24px;color:#e2d4af;font:13px/1.4 system-ui,sans-serif}
.v6-game .cellar-diagram{display:block;width:min(100%,560px);height:auto;max-height:230px;margin:4px auto 14px;stroke:none}
.v6-game .cellar-primary{display:block;margin:20px auto 0;background:#dbbf82;color:#183538;border-color:#e9d8ab;font-weight:600;max-width:100%;padding:12px 22px}
.v6-game .cellar-primary:hover:not(:disabled){background:#efdaac;color:#183538}
.v6-game .cellar-two-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:500px;margin:auto}
.v6-game .cellar-stepper{text-align:center;min-width:0}
.v6-game .cellar-stepper>span{display:block;margin:0 0 6px;color:#e8d5a6}
.v6-game .cellar-stepper>div{display:flex;justify-content:center;align-items:center;gap:12px}
.v6-game .cellar-stepper output{font:600 22px/1.2 system-ui,sans-serif;min-width:26px;color:#fff0c9}
.v6-game .cellar-stepper button{font-size:22px;padding:4px 11px}
.v6-game .cellar-swatches{display:flex;gap:28px;justify-content:center;text-align:center;margin:4px 0 20px}
.v6-game .cellar-swatches span{display:block;font:13px/1.5 system-ui,sans-serif;margin:0 0 9px}
.v6-game .cellar-swatches i{display:block;width:96px;height:78px;border:5px solid #d8cba7;border-radius:50%;margin:auto;box-shadow:0 6px 12px #0003}
.v6-game .cellar-pigments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.v6-game .cellar-pigments section{padding:13px 8px;background:#1230367a;border:1px solid #b1a37966;border-radius:12px;text-align:center}
.v6-game .cellar-pigments h4{display:flex;gap:8px;align-items:center;justify-content:center;margin:0;font-size:17px;font-weight:400}
.v6-game .cellar-pigments h4 i{width:14px;height:14px;border-radius:50%;border:1px solid #f2e9cf;flex:none}
.v6-game .cellar-pigments p{font:13px/1.5 system-ui,sans-serif;margin:8px 0}
.v6-game .cellar-doses{display:flex;justify-content:center;gap:6px;height:18px;margin:0 0 14px}
.v6-game .cellar-doses i{width:12px;height:12px;border-radius:50%;border:1px solid #dfd5ba}
.v6-game .cellar-woven{max-width:390px;margin:18px auto;border:8px ridge #a98c56;border-radius:6px;background:#153238;padding:5px}
.v6-game .cellar-woven>div{display:grid;grid-template-columns:repeat(5,1fr);gap:3px;margin:3px 0}
.v6-game .cellar-woven i{height:24px;border-radius:2px;background:#a9bfc066}
.v6-game .cellar-woven .is-over{background:linear-gradient(90deg,#8daaa1 25%,#dfba82 25%,#dfba82 75%,#8daaa1 75%)}
.v6-game .cellar-woven .is-under{background:linear-gradient(0deg,#dfba82 25%,#8daaa1 25%,#8daaa1 75%,#dfba82 75%)}
.v6-game .cellar-threads{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-width:450px;margin:auto}
.v6-game .cellar-threads button{padding:9px 4px;font-size:14px}
.v6-game .cellar-threads strong,.v6-game .cellar-threads small{display:block}
.v6-game .cellar-threads strong{font-size:28px;margin:6px 0}
.v6-game .cellar-threads small{font:11px/1.4 system-ui,sans-serif}
.v6-game .cellar-board-caption{text-align:center;line-height:1.6;font:14px/1.6 system-ui,sans-serif;color:#e0d5b9;margin:14px 0}
.v6-game .cellar-arrows{display:flex;gap:9px;justify-content:center;margin:14px 0 20px}
.v6-game .cellar-arrows button{font-size:24px;padding:5px 13px}
.v6-game .cellar-plan-views{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:12px}
.v6-game .cellar-plan-views section{min-width:0;padding:10px 5px;border-bottom:1px solid #b5a37177;text-align:center}
.v6-game .cellar-plan-views h4{margin:0 0 9px;font-size:16px;font-weight:400;color:#e3d5af}
.v6-game .cellar-plan-views small{font:11px/1.3 system-ui,sans-serif;display:block;min-height:28px;margin:8px 0 0}
.v6-game .cellar-footprint{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;max-width:114px;margin:auto;height:62px}
.v6-game .cellar-footprint span{display:grid;place-items:center;border:1px solid #c7b78266;color:#c7b782;font-size:12px}
.v6-game .cellar-footprint .is-occupied{background:#9ebaaa;color:#183b38}
.v6-game .cellar-elevation{height:62px;display:flex;align-items:end;justify-content:center;gap:8px}
.v6-game .cellar-elevation>span{display:flex;flex-direction:column;align-items:center;flex:1;max-width:25px}
.v6-game .cellar-elevation i{display:block;width:100%;min-height:3px;background:repeating-linear-gradient(0deg,#a9c5b5 0,#a9c5b5 20px,#44645c 20px,#44645c 22px)}
.v6-game .cellar-elevation strong{font:12px/1.4 system-ui,sans-serif;margin-top:2px}
.v6-game .cellar-blocks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-width:410px;margin:auto}
.v6-game .cellar-blocks button{padding:9px 6px;background:#203e40;border-radius:8px}
.v6-game .cellar-stack{display:flex;height:36px;flex-direction:column;justify-content:flex-end;gap:2px;align-items:center}
.v6-game .cellar-stack i{display:block;height:14px;width:55%;background:#c0ae7d;border:1px solid #e7d7ae;transform:skewY(-6deg)}
.v6-game .cellar-blocks strong,.v6-game .cellar-blocks small{display:block;font:13px/1.4 system-ui,sans-serif;margin-top:3px}
.v6-game .cellar-blocks strong{font-size:17px;color:#eddaac}
.v6-game .cellar-completion{text-align:center;padding:18px 0;margin:10px 0}
.v6-game .cellar-work .work-feedback{min-height:3em;max-width:76ch;padding:10px 0;margin:5px 0}
.v6-game .cellar-tools{justify-content:flex-start;margin:4px 0 12px}
@media(max-width:500px){.v6-game .cellar-board{padding:12px 8px}.v6-game .cellar-work h3{font-size:20px}.v6-game .cellar-two-controls{gap:8px}.v6-game .cellar-stepper>div{gap:5px}.v6-game .cellar-pigments{gap:5px}.v6-game .cellar-pigments section{padding:10px 3px}.v6-game .cellar-pigments h4{font-size:14px;gap:4px}.v6-game .cellar-pigments .cellar-stepper button{min-width:34px;padding:4px 7px}.v6-game .cellar-pigments .cellar-stepper output{min-width:16px;font-size:18px}.v6-game .cellar-threads{gap:4px}.v6-game .cellar-threads button{min-width:0;font-size:12px}.v6-game .cellar-plan-views{gap:5px}.v6-game .cellar-plan-views h4{font-size:14px}.v6-game .cellar-options{gap:6px}.v6-game .cellar-options button{font-size:14px;padding:8px 11px}}

@media(max-width:500px){.v6-game .cellar-pigments{grid-template-columns:1fr;gap:9px}.v6-game .cellar-pigments section{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;padding:12px;text-align:left}.v6-game .cellar-pigments h4{grid-column:1;justify-content:flex-start}.v6-game .cellar-pigments p{grid-column:1;margin:5px 0}.v6-game .cellar-pigments .cellar-doses{grid-column:1;justify-content:flex-start;margin:0}.v6-game .cellar-pigments .cellar-stepper{grid-column:2;grid-row:1 / 4;align-self:center}.v6-game .cellar-pigments .cellar-stepper button{min-width:44px;padding:4px 10px}.v6-game .cellar-pigments .cellar-stepper output{min-width:22px}.v6-game .cellar-pigments .cellar-stepper>div{gap:6px}}

/* Garden restoration gestures, shared by all levels and collections. */
.v6-game .garden-work{min-width:0;--garden-leaf:#c0d6a1}
.v6-game .garden-work-heading>span{font:11px/1.5 system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#c0d6a1}
.v6-game .garden-work h3{margin:5px 0 12px;padding:0;border:0;font-size:23px;font-weight:400;color:#f0dba9}
.v6-game .garden-work-instruction{max-width:72ch;line-height:1.65;color:#f0e2bf}
.v6-game .garden-work-access,.v6-game .garden-work-cost{font:13px/1.6 system-ui,sans-serif;color:#c7d0b5}
.v6-game .garden-work-board{border:1px solid #a5ac7877;background:linear-gradient(145deg,#304b3b,#1d3736);border-radius:16px;padding:18px;min-width:0}
.v6-game .garden-work button{min-width:44px;min-height:44px;touch-action:manipulation;white-space:normal;line-height:1.4}
.v6-game .garden-work button:focus-visible{outline:3px solid #d4e6ad;outline-offset:3px}
.v6-game .garden-work button[aria-pressed=true]{background:#d9ce9c;color:#1c3b31;border-color:#fff2c7;box-shadow:inset 0 0 0 1px #fff2c7}
.v6-game .garden-work .garden-work-diagram{display:block;width:100%;height:auto;max-height:240px;stroke:none}
.v6-game .garden-work-caption{font:14px/1.6 system-ui,sans-serif;text-align:center;color:#eee0bd;margin:8px 0 12px}
.v6-game .garden-work-board fieldset{border:0;padding:0;margin:18px 0 0;min-width:0}
.v6-game .garden-work-board legend{font-size:15px;color:#efdfbb;margin-bottom:8px}
.v6-game .garden-work-options{display:flex;flex-wrap:wrap;gap:8px}
.v6-game .garden-work-options button{flex:1 1 120px}
.v6-game .garden-work-options small{display:block;font-size:12px;margin-top:4px}
.v6-game .garden-work-branches{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0 10px}.v6-game .garden-work-branches button{flex:1 1 80px;font-size:13px;padding:8px 5px}
.v6-game .garden-bramble{padding:12px;border:1px solid #b5b28266;border-radius:12px;background:#142d2873}
.v6-game .garden-work h4{font-size:16px;font-weight:400;color:#ecdcb3;margin:0 0 10px}
.v6-game .garden-bramble h4{display:flex;align-items:center;justify-content:space-between;gap:10px}
.v6-game .garden-bramble h4 small{font:12px/1.4 system-ui,sans-serif;color:#d4dbb5}
.v6-game .garden-bramble-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.v6-game .garden-bramble-actions button{padding:8px 6px;font-size:14px}
.v6-game .garden-bramble.is-gathered{background:#33513d6e;border-color:#b3cb8d88}
.v6-game .garden-work .garden-work-primary{background:#d8ca91;color:#213a2e;border-color:#f6e5b3}
.v6-game .garden-work-plants{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.v6-game .garden-work-plants button{display:flex;flex-direction:column;align-items:center;padding:8px 5px;min-width:0;font-size:14px}
.v6-game .garden-work-plants .garden-work-diagram{width:min(100%,100px);max-height:90px}
.v6-game .garden-work-plants small{font:11px/1.5 system-ui,sans-serif;margin-top:4px}
.v6-game .garden-work-plants .is-protected{border-style:dashed;background:#42634860}
.v6-game .garden-work-root{margin-top:18px;padding-top:16px;border-top:1px solid #b5b28266}
.v6-game .garden-work-root>.garden-work-diagram{border-radius:12px;overflow:hidden;background:#244438}
.v6-game .garden-work-pull{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.v6-game .garden-work-pull button{padding:8px 5px;min-width:44px}
.v6-game .garden-work-pull span{display:block;font:29px/1.3 system-ui,sans-serif}
.v6-game .garden-work-pull small{display:block;font:12px/1.4 system-ui,sans-serif}
.v6-game .garden-work .work-feedback{min-height:3em;padding:10px 0;margin:5px 0;max-width:76ch}
.v6-game .garden-work-tools{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 16px}
.v6-game .garden-work-completion{display:flex;justify-content:center;margin:25px 0 20px}
.v6-game .garden-work-completion .work-complete-button{font-size:20px;box-shadow:0 6px 20px #0005}
@media(max-width:500px){.v6-game .garden-work-board{padding:12px 8px}.v6-game .garden-work h3{font-size:20px}.v6-game .garden-bramble{padding:10px 7px}.v6-game .garden-bramble-actions{gap:4px}.v6-game .garden-bramble-actions button{font-size:12px;padding:8px 4px}.v6-game .garden-work-plants{gap:5px}.v6-game .garden-work-plants button{font-size:12px}.v6-game .garden-work-pull{gap:5px}.v6-game .garden-work-pull small{font-size:11px}.v6-game .garden-work-options{gap:6px}}

/* Workshop uses the installed sprite and keeps every action reachable on mobile. */
.housing-workshop form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.housing-workshop label{display:flex;flex-direction:column;gap:5px;min-width:0}.housing-workshop :is(select,input){max-width:100%;min-width:0}.housing-workshop-preview,.housing-workshop [data-craft-price]{grid-column:1/-1}.housing-workshop-preview{display:grid;place-items:center;border:1px solid #b99c625e;border-radius:14px;background:#e8ddc8}.housing-workshop-preview canvas{max-width:100%;height:auto}.housing-workshop ul{padding-left:20px}.housing-workshop li{margin:12px 0}.housing-workshop button{min-height:44px}.housing-workshop [data-craft-status]{min-height:1.6em}@media(max-width:450px){.housing-workshop form{grid-template-columns:minmax(0,1fr)}}

/* Room navigation follows the house from its garden down to its cellar. */
.v6-game .v6-house-rooms .v6-room-link{display:flex;align-items:center;gap:10px;min-height:50px}.v6-room-link .v6-room-icon{display:block;flex:none;width:28px;height:28px;margin:0;overflow:visible}.v6-room-link .v6-room-label{min-width:0;line-height:1.4}.v6-game .v6-house-rooms .v6-room-link:focus-visible{outline:3px solid #e6cb83;outline-offset:2px}


/* Refuge 7.3 — the three loose sheets share a calm, readable work area. */
#v6-dialog.v6-book-dialog{inset:0;margin:auto;width:min(1080px,calc(100vw - 32px));height:min(890px,calc(100dvh - 32px));max-height:none;padding:0;overflow:hidden;border-radius:22px;background:#17343a}
#v6-dialog.v6-book-dialog #v6-dialog-host{height:100%;padding:0!important;min-height:0}
.v6-book-workspace{height:100%;display:flex;flex-direction:column;min-height:0}
.v6-book-heading{display:flex;align-items:center;gap:18px;flex:none;padding:20px 70px 18px 26px;border-bottom:1px solid #bca17166;background:linear-gradient(120deg,#294742,#17343a)}
.v6-book-heading>img{width:85px;height:90px;object-fit:contain;flex:none;filter:drop-shadow(0 5px 5px #0004)}
.v6-book-heading>div{min-width:0}
#v6-dialog.v6-book-dialog .v6-book-heading h2{font:400 clamp(23px,2.5vw,31px)/1.2 Georgia,serif;margin:5px 0 8px;padding:0;color:#f5e6c5}
#v6-dialog.v6-book-dialog .v6-book-heading p{margin:0;font:14px/1.5 Andika,system-ui,sans-serif;color:#d9dece}
#v6-dialog.v6-book-dialog .v6-book-heading .v6-overline{font:10px/1.4 system-ui,sans-serif;color:#e2c88c;letter-spacing:.12em}
.v6-book-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-color:#b9a171 #17343a;padding:18px 25px}
#v6-dialog.v6-book-dialog .v6-book-instructions{font:14px/1.6 Andika,system-ui,sans-serif;margin:0 0 16px;max-width:82ch;color:#dce0d3}
#v6-dialog.v6-book-dialog .v6-book-feuillets{padding:0;margin:0;list-style:none;display:grid;gap:13px}
#v6-dialog.v6-book-dialog .v6-book-feuillets>li{display:grid;grid-template-columns:minmax(0,1fr) 118px;align-items:center;gap:18px;margin:0;padding:18px 20px;background:linear-gradient(110deg,#f8edcf,#e8d7b4);border:1px solid #d0b985;border-radius:12px;box-shadow:0 5px 12px #071d203d;transition:border-color 120ms,box-shadow 120ms}
.v6-book-sheet{min-width:0}
.v6-book-sheet-label{display:flex;align-items:center;gap:8px;color:#766244;font:600 10px/1.5 system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.v6-book-sheet-label>span{font-size:18px;cursor:grab;color:#9c875f}
#v6-dialog.v6-book-dialog .v6-book-sheet p{font:16px/1.65 Andika,system-ui,sans-serif;margin:8px 0 0;color:#8b2633}
#v6-dialog.v6-book-dialog .v6-book-sheet .housing-word-maison{color:#075da0!important}
#v6-dialog.v6-book-dialog .v6-order-tools{display:flex;flex-direction:column;gap:8px}
#v6-dialog.v6-book-dialog .v6-order-tools button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;margin:0;padding:8px 7px;border:1px solid #b9a374;border-radius:8px;background:#f6ecd4;color:#30453f;font:600 12px/1.4 Andika,system-ui,sans-serif}
#v6-dialog.v6-book-dialog .v6-order-tools button:hover:not(:disabled){background:#fffae8;border-color:#6f8669}
#v6-dialog.v6-book-dialog .v6-order-tools button>span{font-size:20px;line-height:1}
#v6-dialog.v6-book-dialog .v6-book-feuillets>li.is-dragged{opacity:.45}
#v6-dialog.v6-book-dialog .v6-book-feuillets>li.is-drop-target{border-color:#f9d27a;box-shadow:0 0 0 3px #d9b879}
#v6-dialog.v6-book-dialog .v6-book-binding{margin:18px 0 2px;padding:12px 15px;border:1px solid #bca17155;border-radius:10px;font:13px/1.5 Andika,system-ui,sans-serif}
.v6-book-binding summary{cursor:pointer;color:#e4ce99;min-height:28px}
#v6-dialog.v6-book-dialog .v6-covers{margin:12px 0 0;padding:0;gap:10px}
#v6-dialog.v6-book-dialog .v6-cover{width:auto;min-width:100px;min-height:48px;margin:6px 0;padding:12px;box-shadow:none}
.v6-book-footer{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 16px;align-items:center;padding:15px 24px 18px;background:#163137;border-top:1px solid #c4a36d66;box-shadow:0 -8px 18px #0b252d33}
#v6-dialog.v6-book-dialog .v6-book-footer [data-game-status]{grid-column:1/-1;margin:0;min-height:20px;font:12px/1.5 Andika,system-ui,sans-serif;color:#e1d7ba}
#v6-dialog.v6-book-dialog .v6-book-footer button{margin:0;min-height:46px;font:600 14px/1.45 Andika,system-ui,sans-serif}
#v6-dialog.v6-book-dialog .v6-book-footer .v6-book-later{background:transparent;font-weight:400;color:#dfd6bb}
#v6-dialog.v6-book-dialog :focus-visible{outline:3px solid #e6ba62;outline-offset:3px}
#v6-dialog.v6-book-dialog .v6-order-tools :focus-visible{outline-color:#386851}
.v6-game .v6-rail .v6-discoveries-button.has-ready-action{position:relative;border-color:#f2ce81!important;background:#e5c679!important;color:#263e35!important;box-shadow:inset 0 0 0 1px #e7c16b44}
.v6-game .v6-rail .v6-discoveries-button>span:not(.v6-ready-count){font-size:12px;overflow-wrap:normal;hyphens:none}
.v6-game .v6-rail .v6-discoveries-button .v6-ready-count{position:absolute;top:-7px;right:6px;display:block;min-height:0;flex:none;white-space:nowrap;padding:3px 6px;border-radius:7px;background:#f1ce82;color:#253d39;font:700 10px/1.3 Andika,system-ui,sans-serif}
.v6-discovery-alert{width:100%;max-width:240px;pointer-events:auto}
.v6-game .v6-discovery-alert button{display:flex;flex-direction:column;gap:5px;width:100%;min-height:0;padding:11px 13px;text-align:left;background:#f2dfb0!important;border:1px solid #fff0c5;color:#28433e;box-shadow:0 5px 16px #071b2540;border-radius:12px;font:12px/1.4 Andika,system-ui,sans-serif}
.v6-discovery-alert-title{text-transform:uppercase;letter-spacing:.07em;font-size:9px;color:#745b2e}
.v6-discovery-alert strong{font-size:13px;line-height:1.35;font-weight:700}
.v6-discovery-alert-link{font-size:10px;color:#5d633e;text-decoration:underline;text-underline-offset:3px}
@media(max-width:700px){#v6-dialog.v6-book-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px);height:calc(100dvh - 14px);border-radius:14px}.v6-book-heading{padding:16px 64px 14px 15px;gap:9px}.v6-book-heading>img{width:48px;height:66px}.v6-book-body{padding:15px 12px}#v6-dialog.v6-book-dialog .v6-book-heading p{font-size:12px}#v6-dialog.v6-book-dialog .v6-book-feuillets>li{grid-template-columns:minmax(0,1fr);gap:12px;padding:15px}#v6-dialog.v6-book-dialog .v6-book-sheet p{font-size:15px;line-height:1.65}#v6-dialog.v6-book-dialog .v6-order-tools{flex-direction:row}#v6-dialog.v6-book-dialog .v6-order-tools button{width:auto;flex:1}.v6-book-footer{grid-template-columns:minmax(0,1fr);padding:12px;gap:7px}.v6-book-footer [data-game-status]{grid-column:1}#v6-dialog.v6-book-dialog .v6-book-footer button{font-size:12px;min-height:44px;padding:8px}.v6-rail .v6-ready-count{font-size:8px;padding:2px 4px}.v6-discovery-alert{max-width:190px}.v6-game .v6-discovery-alert button{padding:8px 10px}.v6-discovery-alert strong{font-size:11px}}
@media(prefers-reduced-motion:reduce){#v6-dialog.v6-book-dialog *{transition:none!important;animation:none!important}}

/* Essai limité aux panneaux Firefox : éviter le masque arrondi circulaire
   aux zooms fractionnaires, sans calque GPU forcé ni découpage du contenu. */
@supports (-moz-appearance:none){
 .v6-drawer{border-radius:20px / 20.1px}
 dialog{border-radius:22px / 22.1px}
}

.v6-hatch-target.is-highlighted{outline:3px solid #f6d68f;outline-offset:5px;background:#f6d68f30;box-shadow:0 0 0 10px #ead08b35,0 0 28px #f6d68f90;border-radius:12px}

.carnet-notebook-copy{max-width:820px;margin:auto;padding:clamp(20px,4vw,46px);color:#304e4c;background:#f8f2e5;border-radius:22px}
.carnet-notebook-copy h2{font:500 clamp(24px,4vw,34px)/1.2 Georgia,serif;color:#244c4b;margin:10px 0 18px}
.carnet-notebook-copy p{line-height:1.7}.carnet-copy-source{padding:20px 24px;border-left:3px solid #a24b42;background:#eee3ce;border-radius:0 12px 12px 0;margin:20px 0;line-height:1.9}
.carnet-notebook-copy textarea{display:block;width:100%;min-height:170px;box-sizing:border-box;margin:10px 0 18px;padding:18px;border:1px solid #aaab8e;border-radius:12px;background:#fffaf0;color:#78352f;font:17px/1.8 Georgia,serif;resize:vertical}
.carnet-notebook-copy textarea:focus-visible{outline:3px solid #438b82;outline-offset:3px}.carnet-copy-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.carnet-copy-actions button{min-height:44px}.carnet-notebook-copy [role=status],.carnet-notebook-copy [role=alert]{color:#813d30;font-weight:600}

.carnet-copy-source blockquote{margin:0;padding:0;border:0;background:transparent;font:inherit;line-height:1.65}.carnet-copy-source blockquote+blockquote{margin-top:14px}
