.story-mode #controls{display:none!important}.story-mode{color:#403d2d}.parchment{position:absolute;background:linear-gradient(130deg,#f5edd9f7,#e6dac0f7);border:1px solid #bcaa7c;border-radius:12px;box-shadow:0 12px 36px #1e403444,inset 0 0 0 4px #fff6df80;padding:21px;scrollbar-width:thin;scrollbar-color:#b9aa81 transparent}
#village-panel{left:20px;top:20px;bottom:65px;width:315px;overflow:auto}#village-people{right:20px;top:20px;width:292px;max-height:calc(100% - 85px);overflow:auto}
.story-mode h1{font:26px Georgia,serif;margin:9px 0 12px}.story-mode h2{font:24px Georgia,serif;margin:0;color:#3b513e}.brief{font-size:12px;margin:0 0 16px}.timebar{display:flex;justify-content:space-between;font-size:12px}.timebar span{color:#796c50}progress{accent-color:#668052;height:5px;width:100%;margin:8px 0 12px}.v-row{display:flex;gap:6px}.v-row button{padding:9px 6px;font-size:11px}.v-row #v-speed{width:44px;flex-shrink:0}.v-row #v-pause{width:110px;flex-shrink:0}.story-mode .primary{background:#536c45;color:#fff7df;border-color:#47623b}
.resources{display:flex;gap:10px;margin:18px 0}.resources div{flex:1;background:#fff7e291;border:1px solid #d5c5a0;border-radius:7px;text-align:center;padding:9px 3px}.resources b{display:block;font:24px Georgia;color:#465b39}.resources span{font-size:10px;color:#81704e}.section-title{font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:space-between;margin:18px 0 9px}.section-title span{font-size:9px;font-weight:400;color:#8d7952}.goal{font-size:11px;line-height:1.9;color:#856638}.goal span{display:inline-block;width:20px}.goal.met{color:#526a40}
.actions{display:grid;gap:6px}.actions button{text-align:left;padding:9px 11px}.actions b{display:block;font-size:12px;font-weight:650}.actions span{display:block;font-size:10px;color:#807051;margin-top:3px;line-height:1.4}#v-order-4{border-color:#b99a7b}#v-message{font-size:11px;line-height:1.5;border-left:3px solid #a58b52;padding-left:9px;margin:12px 0 6px}#v-missions{font-size:10px;color:#576f42;line-height:1.6}.story-mode details{border-top:1px solid #cbbd9c;padding-top:10px;margin-top:14px;font-size:11px}.story-mode summary{cursor:pointer;color:#746140}.story-mode .fine{font-size:10px;line-height:1.6;color:#8a7858}.quiet{background:transparent;font-size:10px;padding:7px;box-shadow:none}
#village-people>.section-title{margin-top:0}#v-close{display:none;width:30px;padding:3px}.person-heading{display:flex;justify-content:space-between;align-items:baseline}.person-heading>span{font-size:11px;color:#7c6d52}.occupation{font-size:11px;color:#7c6d52;margin:6px 0 14px}.opinion{font-size:12px;color:#946847;margin-bottom:5px;display:flex;justify-content:space-between}.opinion.friendly{color:#4d6b42}meter{width:100%;height:6px;accent-color:#72835d}.belongings{display:flex;justify-content:space-between;font-size:10px;margin-top:14px}.belongings b{display:block;font-size:17px;margin-top:4px}.memories{padding:0;list-style:none;margin:0}.memories li{padding:10px 0;border-bottom:1px solid #cebf9c80}.memories p{font-size:11px;line-height:1.55;margin:6px 0 0}.memories small{font-size:8px;letter-spacing:.04em}.distorted{font-size:9px;color:#93613d}#v-events{padding-left:15px;font-size:10px;line-height:1.6}#v-events li{margin-bottom:14px}#v-events small{margin-bottom:4px}#v-events li.goto{cursor:pointer}#v-events li.goto:hover{color:#5a3f22;text-decoration:underline dotted}
#v-result{left:50%;top:50%;transform:translate(-50%,-50%);width:min(410px,90%);z-index:4;padding:27px;box-shadow:0 25px 100px #15342d99}#v-result h2{margin-top:14px}#v-result-text{font-size:12px}#v-result[hidden]{display:none}.sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.story-mode #selection-pin{z-index:1}#v-people-toggle{display:none}.story-mode footer{font-size:9px}
@media(max-height:850px) and (min-width:951px){#village-panel{padding:16px}.brief{font-size:11px;margin-bottom:10px}.resources{margin:12px 0}.resources div{padding:5px}.section-title{margin-top:13px}.actions button{padding:7px 9px}.story-mode h1{font-size:23px}}
@media(max-width:1100px){#village-panel{width:280px;left:12px}#village-people{width:255px;right:12px}}
@media(max-width:950px){.story-mode #toggle-panel{display:block;position:absolute;left:12px;top:12px;width:95px;z-index:3}#v-people-toggle{display:block;position:absolute;right:12px;top:12px;width:95px;z-index:3}#village-panel{display:none;top:62px;left:12px;width:min(315px,calc(100% - 24px));bottom:55px}#village-people{display:none;top:62px;right:12px;width:min(300px,calc(100% - 24px));max-height:calc(100% - 117px)}.options-open #village-panel,.people-open #village-people{display:block}#v-close{display:block}.story-mode footer span:last-child{display:none}}

#v-follow{font-size:11px;padding:7px;margin:0 0 16px}#v-crafts{margin-top:-8px;margin-bottom:12px}.opinion[hidden],meter[hidden]{display:none}

.speech-bubble{position:absolute;z-index:1;pointer-events:none;transform:translate(-50%,-100%);max-width:210px;padding:7px 10px;border:1px solid #b7aa87;border-radius:10px;background:#fff8e9ed;color:#4e553a;box-shadow:0 3px 12px #152d3b30;font:11px/1.4 Georgia,serif}.speech-bubble[hidden]{display:none}.conversation{margin:12px 0;padding:10px;border-left:3px solid #87966b;background:#fff5dc90;font:12px/1.5 Georgia,serif}.cargo{font-size:10px;background:#e5e7c0;padding:8px;border-radius:5px}.relations{list-style:none;padding:0;font-size:10px}.relations li{display:flex;justify-content:space-between;margin:6px 0}

#v-hawk{margin-top:7px;font-size:11px;padding:8px}
#village-animal{right:20px;top:20px;width:292px;max-height:calc(100% - 85px);overflow:auto}#village-animal[hidden],#v-hawk[hidden]{display:none}#village-animal .section-title{margin-top:0}#village-animal p{font-size:12px;line-height:1.6}#v-animal-close{width:30px;padding:3px}.animal-selected #village-people{display:none!important}
@media(max-width:1100px){#village-animal{width:255px;right:12px}}
@media(max-width:950px){#village-animal{top:62px;right:12px;width:min(300px,calc(100% - 24px));max-height:calc(100% - 117px)}}
#v-sky-bar{position:absolute;top:16px;left:50%;transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:12px;padding:12px 16px;max-width:calc(100% - 24px);width:max-content}
#v-sky-bar[hidden]{display:none}#v-sky-bar b{display:block;font:18px Georgia,serif}#v-sky-bar span{display:block;font-size:10px;color:#796c50;margin-top:4px}#v-sky-bar button{width:auto;white-space:nowrap;font-size:12px}
.sky-view #village-panel,.sky-view #village-people,.sky-view #village-animal,.sky-view #toggle-panel,.sky-view #v-people-toggle,.sky-view #selection-pin,.sky-view .speech-bubble,.sky-view .talk-icon{display:none!important}
@media(max-width:650px){#v-sky-bar{flex-wrap:wrap;justify-content:center;gap:8px;padding:10px;width:calc(100% - 24px)}#v-sky-bar>div{width:100%;text-align:center}#v-sky-bar button{flex:1}}

.travel-nav{margin-top:8px}.travel-nav button{flex:1}#v-neighbours details{margin-top:9px}#v-watchtower details{margin-top:9px}

.road-alert{background:#8f422c;color:#fff1d3;border-radius:6px;padding:12px;font-size:12px;line-height:1.5;margin-top:12px}.road-alert[hidden]{display:none}

#v-arrest-banner,#v-move-banner,#v-group-bar{position:absolute;top:15px;left:50%;transform:translateX(-50%);z-index:8;padding:12px;width:min(430px,90%);font-size:13px}#v-arrest-banner[hidden],#v-move-banner[hidden],#v-group-bar[hidden]{display:none}#v-arrest-banner button,#v-move-banner button,#v-group-bar button{width:auto;margin-left:8px}#v-arrest,#v-recruit{font-size:11px;margin-bottom:8px}#v-army,#v-prison{margin-top:12px}

/* Commander HUD (v25): the world in the middle, details in the F2 notebook. */
#hud-top,#hud-captain,#hud-toast{display:none}
.hud-mode #hud-top{display:flex;align-items:center;gap:16px;left:20px;right:20px;top:14px;padding:8px 14px;z-index:3}
.hud-mode #hud-captain{display:block;left:20px;bottom:46px;width:330px;padding:14px 16px;z-index:3}
.hud-mode #village-panel{display:none;top:72px;z-index:4}.hud-mode.carnet-open #village-panel{display:block}
.hud-mode #village-people,.hud-mode #village-animal{top:72px}.hud-mode #village-people{display:none}.hud-mode.people-open #village-people{display:block}.hud-mode #v-close{display:block}
.hud-time b{display:block;font:17px Georgia,serif;color:#3b513e}.hud-time span{font-size:10px;color:#796c50;white-space:nowrap}
.hud-time progress{display:block;width:100%;height:5px;margin:3px 0;accent-color:#536c45}.hud-time small{font-size:10px;color:#536c45}
#hud-sky{display:block;color:#56677a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#hud-sky:empty{display:none}
#v-resumed{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:6;padding:10px 14px;max-width:90vw}#v-resumed[hidden]{display:none}#v-resumed button{width:auto;margin-left:8px}
#hud-controls .v-row{margin:0}#hud-controls .v-row button{padding:7px 9px}
.hud-stock{display:flex;gap:12px;margin-left:auto}.hud-stock span{font-size:9px;color:#81704e;text-align:center;text-transform:uppercase;letter-spacing:.04em}.hud-stock span.short b{color:#a2412b}.hud-stock b{display:block;font:17px Georgia,serif;color:#465b39;text-transform:none;letter-spacing:0}
.hud-enemy{display:flex;align-items:center;gap:8px;font-size:11px;padding:6px 10px;border-radius:8px;background:#fff7e291;border:1px solid #d5c5a0;max-width:420px}.hud-enemy small{font-weight:700;color:#7a3f2c;text-transform:uppercase;font-size:9px;letter-spacing:.06em}.hud-enemy meter{width:60px;height:6px}.hud-enemy.hostile{border-color:#b98a62;background:#f6dcc2b0}.hud-enemy.alert{background:#8f422c;color:#fff1d3;border-color:#7a3322}.hud-enemy.alert small{color:#ffd9b8}
.story-mode button.link{all:unset;cursor:pointer;color:inherit;font-weight:650;text-decoration:underline dotted;text-underline-offset:3px}
#hud-carnet{width:auto;white-space:nowrap}.carnet-open #hud-carnet{background:#536c45;color:#fff7df}
.captain-head{display:flex;gap:12px;align-items:center}.medallion{flex:none;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font:22px Georgia,serif;color:#fff7df;background:radial-gradient(circle at 35% 30%,#7d9a63,#3f5a33);border:3px solid #c9b27a;box-shadow:0 2px 6px #2a3a2a55}.medallion.hurt{background:radial-gradient(circle at 35% 30%,#b98a62,#7a3f2c)}
.captain-id{min-width:0}.captain-id small{font-size:9px;text-transform:uppercase;letter-spacing:.06em;color:#8d7952}.captain-id b{display:block;font:18px Georgia,serif;color:#3b513e}.captain-id span{display:block;font-size:10px;color:#7c6d52;line-height:1.4}
.troop{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}.soldier{position:relative;width:30px;height:34px;padding:0;border-radius:6px;font:13px Georgia,serif;overflow:hidden}.soldier span{display:block;margin-top:-3px}.soldier i{position:absolute;left:0;bottom:0;height:3px;background:#668052}.soldier.leader{border:2px solid #b0893d}.soldier.chosen{outline:2px solid #f2c94c;outline-offset:1px}.soldier.away{background:#e5e7c0}.soldier.hurt{background:#f2d4c0}.soldier.hurt i{background:#a4553a}.soldier.dead{opacity:.35}.soldier.militia{border-style:dashed;background:#efe6cf;color:#6b5a3c;font-style:italic}
.stance{display:flex;margin-bottom:8px}.stance button{flex:1;border-radius:0;padding:6px 4px;font-size:11px}.stance button:first-child{border-radius:6px 0 0 6px}.stance button:last-child{border-radius:0 6px 6px 0}.stance button.on{background:#536c45;color:#fff7df;border-color:#47623b}.stance button[data-stance="2"].on{background:#8f422c;border-color:#7a3322}
.orders{display:grid;grid-template-columns:1fr 1fr;gap:6px}.orders button{padding:8px 6px;font-size:11px}#hud-march,#hud-target{grid-column:1/-1}#hud-target{padding:6px;font:inherit;font-size:12px;border-radius:6px;border:1px solid #b9a77f;background:#fbf5e6;color:#3b2f1e}
#hud-message{margin:8px 0 0;min-height:1.6em}
.hud-mode #hud-toast{display:block;left:50%;top:76px;transform:translateX(-50%);width:min(460px,90%);padding:12px 14px;z-index:4;border-left:4px solid #8f422c}.hud-mode #hud-toast[hidden]{display:none}#hud-toast p{margin:0 0 8px;font:13px/1.5 Georgia,serif}#hud-toast div{display:flex;gap:8px;justify-content:flex-end}#hud-toast button{width:auto;padding:5px 12px;font-size:11px}
.sky-view #hud-top,.sky-view #hud-captain,.sky-view #hud-toast{display:none!important}
@media(max-width:1250px){.hud-enemy>span:last-child{display:none}.hud-stock span:nth-child(3){display:none}}
@media(max-width:950px){.hud-mode #hud-top{left:12px;right:12px;top:58px;gap:8px;padding:6px 10px}.hud-mode #v-overview{display:none}.hud-mode #hud-controls{margin-left:auto}.hud-mode #hud-top .hud-stock,.hud-mode #hud-top .hud-enemy,.hud-mode #hud-carnet{display:none}.hud-mode #hud-captain{left:12px;right:12px;width:auto;bottom:12px;padding:10px 12px}.hud-mode .troop{margin:8px 0}.hud-mode #village-panel,.hud-mode #village-people,.hud-mode #village-animal{top:112px;max-height:calc(100% - 300px)}.hud-mode #hud-toast{top:112px}.hud-mode.options-open #village-panel{display:block}.story-mode.hud-mode footer{display:none}}
.enemy-troop{font-weight:650;white-space:nowrap}
.offer-tag{display:block;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#536c45;margin-bottom:6px}#hud-toast .fine{margin:0 0 8px}
.hud-enemy{white-space:nowrap;max-width:none}
.captives{border-top:1px solid #cbbd9c;margin-top:10px;padding-top:8px}.captives small{display:block;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#8d7952;margin:4px 0}.captive{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin:4px 0}.captive span{display:flex;gap:4px}.captive span button{width:auto;padding:4px 7px;font-size:10px}.captives>button{font-size:11px;padding:7px;margin-top:6px}
.orders button.on{background:#536c45;color:#fff7df;border-color:#47623b}.verdict{font-style:italic;color:#6b5a3c}.hud-enemy.alert .verdict{color:#ffe7cf}
#hud-sound-box{position:relative;display:flex;align-items:center;gap:2px}#hud-sound,#hud-sound-gear{width:auto;font-size:15px;padding:4px 10px}#hud-sound-gear{padding:4px 7px;font-size:13px}#hud-sound.muted{opacity:.45;text-decoration:line-through}
#hud-sound-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:12;display:grid;gap:8px;min-width:160px;padding:10px 12px;border-radius:8px;background:#f3e8cc;border:1px solid #b49a6a;box-shadow:0 6px 18px #0004;font:12px/1.3 Georgia,serif;color:#3b2a1a}#hud-sound-panel[hidden]{display:none}#hud-sound-panel label{display:grid;grid-template-columns:1fr;gap:4px}#hud-sound-panel input[type=range]{width:100%;accent-color:#72835d}
.status-mark{position:absolute;z-index:1;pointer-events:none;transform:translate(-50%,-100%);min-width:18px;height:18px;padding:0 4px;border-radius:9px;display:grid;place-items:center;font:600 9px/1 system-ui,sans-serif;letter-spacing:.03em;text-transform:uppercase;color:#fff7df;background:#6b5a3c;box-shadow:0 1px 4px #0005}.status-mark[hidden]{display:none}.status-mark[data-kind="captif"]{background:#4b4f58}.status-mark[data-kind="combat"]{background:#8f422c}.status-mark[data-kind="alerte"]{background:#c2862b}.status-mark[data-kind="blessé"]{background:#a84f4f}.status-mark[data-kind="traqué"]{background:#a3611f}.status-mark[data-kind="caché"]{background:#46603f}.sky-view .status-mark{display:none!important}.status-mark[data-kind="combat"]{font-size:10px;height:20px;padding:0 7px;animation:fightpulse .9s ease-in-out infinite}.status-mark i{position:absolute;left:3px;right:3px;bottom:-5px;height:3px;border-radius:2px;background:#79b05a;box-shadow:0 0 0 1px #0007;max-width:calc(100% - 6px)}@keyframes fightpulse{50%{box-shadow:0 0 0 4px #c0503a55,0 1px 4px #0005}}

#hud-battle{display:none}.hud-mode #hud-battle{display:flex;position:absolute;z-index:5;left:50%;top:76px;transform:translateX(-50%);align-items:center;gap:12px;padding:8px 10px 8px 16px;border-radius:8px;background:#f1e6cc;color:#3b2a1a;border:1px solid #b49a6a;box-shadow:0 4px 14px #0004;font:13px/1.3 Georgia,serif;max-width:min(560px,92%)}.hud-mode #hud-battle[hidden]{display:none}
#hud-battle b{white-space:nowrap}#hud-battle span{opacity:.85}#hud-battle button{width:auto;padding:5px 12px;font-size:11px;white-space:nowrap}
#hud-battle.urgent{background:#7d2e1f;color:#fff3dc;border-color:#3d140c;animation:battlepulse 1.4s ease-in-out infinite}#hud-battle.urgent button{background:#fff3dc;color:#7d2e1f;border-color:#fff3dc;font-weight:700}
@keyframes battlepulse{50%{box-shadow:0 0 0 5px #b0402a55,0 4px 14px #0004}}
.hud-mode.battle-on #hud-toast{top:128px}@media(max-width:950px){.hud-mode.battle-on #hud-toast{top:170px}}
.sky-view #hud-battle{display:none!important}
@media(max-width:950px){.hud-mode #hud-battle{top:112px;flex-wrap:wrap;gap:6px}}

#spectate-badge{position:fixed;z-index:6;right:16px;bottom:46px;padding:6px 12px;border-radius:14px;background:#2d3b26;color:#f3ead2;font:600 11px/1.2 system-ui,sans-serif;letter-spacing:.03em;box-shadow:0 2px 8px #0005}

#v-animal-details h3{margin:10px 0 4px;font:600 10px/1.2 system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#7a6440}.place-people{list-style:none;margin:0;padding:0;display:grid;gap:3px}.place-people li{display:flex;gap:8px;align-items:baseline;font-size:12px}.place-people .fine{opacity:.75}

.hud-mode #hud-captain{max-height:calc(100% - 120px);overflow-y:auto}

#hud-battle .score{display:flex;align-items:center;gap:6px;opacity:1}#hud-battle .score b{font:700 12px/1 system-ui,sans-serif;padding:3px 6px;border-radius:4px;color:#fff}#hud-battle .score b.orme{background:#b2412b}#hud-battle .score b.aulnes{background:#2f5f8f}#hud-battle .score small{font:600 10px/1 system-ui,sans-serif;opacity:.85}
#hud-battle .tug{position:relative;display:inline-block;width:70px;height:8px;border-radius:4px;background:#2f5f8f;overflow:hidden;box-shadow:inset 0 0 0 1px #0004}#hud-battle .tug i{position:absolute;left:0;top:0;bottom:0;background:#d4553a;transition:width .4s}
.status-mark[data-kind="combat"]{background:var(--camp-0-dark,#b2412b)}.status-mark[data-kind="combat"][data-side="1"]{background:var(--camp-1-dark)}.status-mark[data-kind="combat"][data-side="2"]{background:var(--camp-2-dark)}.status-mark[data-kind="combat"][data-side="3"]{background:var(--camp-3-dark)}.status-mark[data-kind="combat"][data-side="4"]{background:var(--camp-4-dark)}#hud-ending .facts{margin:4px auto 0;padding:0;list-style:none;font-size:13px;line-height:1.45;text-align:left;max-width:460px}#hud-ending .facts li{margin:3px 0}

.soldier .stars{position:absolute;top:-7px;right:-4px;font:700 8px/1 system-ui,sans-serif;color:#c8901e;text-shadow:0 0 2px #fff}.soldier{position:relative}.hud-enemy .dreaded{color:#8f2c1c;font-weight:700}

#hud-ending{position:fixed;z-index:20;left:50%;top:50%;transform:translate(-50%,-50%);width:min(560px,92vw);padding:26px 30px;border-radius:10px;background:#f4ead2;color:#2d2014;border:2px solid #8b6b3d;box-shadow:0 20px 60px #000a;font:15px/1.55 Georgia,serif;text-align:center}#hud-ending[hidden]{display:none}
#hud-ending small{font:700 11px/1 system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#8b6b3d}#hud-ending h2{margin:8px 0 10px;font:700 34px/1.1 Georgia,serif;color:#6b2618}#hud-ending h3{margin:18px 0 6px;font:700 12px/1 system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#8b6b3d}#hud-ending .headline{font-style:italic}#hud-ending .deeds{font:12px/1.4 system-ui,sans-serif;opacity:.75}#hud-ending button{margin-top:12px;width:auto;padding:8px 18px}
.status-mark[data-kind="voleur"]{background:#2a2622}.status-mark[data-kind="mercenaire"]{background:#5a2a52}
.status-mark[data-kind="exilé"]{background:#3b5a73}

.captivity{margin:8px 0;padding:8px 10px;border-left:3px solid #8a3a2a;background:rgba(138,58,42,.08);font-size:13px;line-height:1.45}
.abduct-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:6px 0}.abduct-row label{font-size:12px;color:#6b5a3a}.abduct-row select{flex:0 0 auto}

.goal{margin:8px 0 2px;padding:6px 8px;border-radius:6px;background:rgba(120,90,40,.08)}.goal small{display:block;text-transform:uppercase;letter-spacing:.06em;font-size:10px;opacity:.7}.goal b{font-size:14px}

#v-group-bar{top:auto;bottom:92px}
.chosen-mark{position:absolute;transform:translate(-50%,-100%);pointer-events:none;z-index:2;color:#f2c94c;font-size:13px;line-height:1;text-shadow:0 0 3px #2a1c08,0 1px 2px #000}.chosen-mark[hidden]{display:none}
#pick-frame{position:fixed;z-index:9;pointer-events:none;border:1.5px dashed #f2c94c;background:#f2c94c22}#pick-frame[hidden]{display:none}

#v-civil-banner{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:30;max-width:min(90vw,650px);padding:12px;display:flex;gap:12px;align-items:center}
#v-civil-banner[hidden],#v-civil [hidden]{display:none}
#v-civil label{display:block;margin-top:6px}
#v-civil input{box-sizing:border-box;width:100%;padding:7px;font:inherit}
#v-civil-status{white-space:normal}

/* Army report: scrolls inside the existing troop panel, also on narrow screens. */
.army-force{margin:10px 0;border-top:1px solid #73604866;padding-top:8px}.army-force summary{cursor:pointer;font-weight:700}.army-force .fine{line-height:1.45;margin:8px 0}.army-force article{border-top:1px solid #73604844;padding:8px 0;font-size:12px;line-height:1.5}.army-force .orders{margin-top:8px}#hud-force-enemy{font-style:italic}
.conduct .production,.conduct .long-hours,.conduct .masonry{display:flex;flex-wrap:wrap;align-items:center;gap:0;margin-top:8px}.army-force .production small{flex-basis:100%;margin-bottom:4px;font-weight:700}.army-force .production button{flex:1;border-radius:0;padding:6px 2px;font-size:11px;min-width:0}.army-force .production button:nth-of-type(1){border-radius:6px 0 0 6px}.army-force .production button:last-child{border-radius:0 6px 6px 0}.army-force .production button.on{background:#536c45;color:#fff7df;border-color:#47623b}#hud-production{margin:6px 0}
.army-force .force-next{margin:4px 0;padding:4px 8px;border-left:3px solid #8a6d2b;background:rgba(138,109,43,.08);font-size:12.5px;line-height:1.35}
/* An element marked hidden stays hidden, whatever its layout rule says. */
[hidden]{display:none!important}

/* First game: keep the purpose and the observer's viewpoint in sight. */
.hud-mode #hud-top{flex-wrap:wrap;row-gap:4px}
#hud-observation{flex-basis:100%;margin:0;border-top:1px solid #b9aa8170;padding-top:4px;font:12px/1.4 Georgia,serif;color:#51462e}
.hud-mode #village-panel,.hud-mode #village-people,.hud-mode #village-animal{top:108px}
.hud-mode #hud-toast,.hud-mode #hud-battle{top:112px}
.hud-mode.battle-on #hud-toast{top:174px}
/* People/building sheets must stop above the footer once the HUD has wrapped. */
.hud-mode #village-people,.hud-mode #village-animal{max-height:calc(100% - var(--hud-bottom,108px) - 46px)}
.hud-mode #village-panel{max-height:none;bottom:46px}
#hud-troop-toggle{width:auto;margin-left:auto;align-self:start;font-size:11px;padding:6px}
#hud-captain .goal{font:13px/1.45 Georgia,serif;color:#423820;margin:10px 0;padding:9px 10px}
#hud-captain .goal b{font-size:18px}
#hud-captain .goal small{font:600 12px/1.4 system-ui,sans-serif;text-transform:none;letter-spacing:0;opacity:1}
@media(max-height:800px){#hud-captain .goal{font-size:12px;line-height:1.35;margin:6px 0;padding:6px 8px}#hud-captain .goal b{font-size:16px}.hud-mode #hud-captain .stance{margin-bottom:6px}.hud-mode #hud-captain .troop{margin:8px 0}}
.white-banner{display:block;margin-top:5px;font-weight:600}
#v-first-steps p{font:14px/1.55 Georgia,serif;color:#51442f;margin:12px 0}
#v-notebook-details{border-top:1px solid #b9aa81;padding-top:12px;margin-top:16px}
#v-notebook-details>summary{cursor:pointer;font-size:13px;font-weight:600}
#v-welcome{position:fixed;inset:0;margin:auto;width:min(600px,calc(100% - 32px));max-height:90vh;padding:26px;overflow:auto;z-index:30;background:#f3ead5;border:2px solid #866b40;border-radius:12px;color:#423820}
#v-welcome::backdrop{background:#172519b8}
#v-welcome h1{font-size:27px;line-height:1.3}
#v-welcome p{font:16px/1.65 Georgia,serif;color:#51442f}
#v-welcome-start{margin-top:8px}
#hud-event-marker{position:absolute;transform:translate(-50%,-50%);pointer-events:none;z-index:2;border:3px solid #fff0a6;border-radius:50%;width:44px;height:44px;text-align:center;font:32px/38px Georgia,serif;color:#fff8ce;background:#8c3d21b8;box-shadow:0 0 0 7px #f8ba4770,0 2px 14px #23180b;animation:event-pulse 1.4s ease-in-out infinite}
@keyframes event-pulse{50%{box-shadow:0 0 0 13px #f8ba4720,0 2px 14px #23180b}}
@media(prefers-reduced-motion:reduce){#hud-event-marker{animation:none}}
@media(max-width:950px){
  #hud-observation{font-size:11px}
  .hud-mode #village-panel,.hud-mode #village-people,.hud-mode #village-animal{top:156px;max-height:calc(100% - 180px);bottom:12px}
  .hud-mode #hud-toast,.hud-mode #hud-battle{top:156px}
  .hud-mode.battle-on #hud-toast{top:222px}
  .hud-mode #hud-captain{max-height:calc(100% - 170px)}
  .hud-mode #v-overview{display:block;font-size:10px}
  #hud-captain .goal{font-size:12px}
  #v-welcome{padding:18px}
}
.hud-mode #village-panel,.hud-mode #village-people,.hud-mode #village-animal,.hud-mode #hud-toast,.hud-mode #hud-battle{top:var(--hud-bottom,108px)}
.hud-mode #hud-captain{max-height:calc(100% - var(--hud-bottom,108px) - 56px)}
.hud-mode.battle-on #hud-toast{top:calc(var(--hud-bottom,108px) + 62px)}
@media(max-width:950px){
  .hud-mode #hud-controls{flex:1 1 100%;order:1}
  #hud-observation{order:2}
  #hud-controls .v-row{flex-wrap:wrap}
  #hud-controls .v-row button{width:auto;flex:1 1 auto}
  .hud-mode #hud-captain,.hud-mode #village-panel,.hud-mode #village-people,.hud-mode #village-animal{max-height:calc(100% - var(--hud-bottom,156px) - 24px)}
}
#hud-captain .captain-head{position:sticky;top:0;background:#eee3c9;z-index:1;padding-bottom:6px}
#hud-captain .goal,#hud-goal{display:block}#hud-captain .goal .white-banner{display:block;width:auto;max-width:none}
/* The notebook and the troops share the left column, like two tabs: F2
   switches between them and the 3D view stays free. */
@media(min-width:951px){.hud-mode.carnet-open #hud-captain{display:none}.hud-mode #village-panel{left:20px;top:150px;bottom:46px;width:330px;box-sizing:border-box}}
#v-carnet-back{display:none;width:auto;margin:0 0 10px;padding:5px 10px;font-size:12px}.hud-mode.carnet-open #v-carnet-back{display:inline-block}
@keyframes carnet-hint{0%,100%{box-shadow:none}50%{box-shadow:0 0 0 3px #c9a44a}}.carnet-hint #hud-carnet{animation:carnet-hint 1s ease-in-out 6}
#v-bandit-buttons .thief-row{margin:6px 0}#v-bandit-buttons .thief-row button{width:auto;padding:4px 8px;margin:3px 4px 0 0;font-size:11px}#v-visitor-actions button.primary{font-weight:650}
/* Under the war banner, whatever its height (set by the HUD). */
.hud-mode.battle-on #hud-toast{top:var(--battle-bottom,calc(var(--hud-bottom,108px) + 62px))}

.conduct{margin:8px 0;padding:8px;border:1px solid #b9a77f;border-radius:8px;background:rgba(255,248,226,.35)}.conduct-title{display:block;margin-bottom:2px}
.conduct .production small,.conduct .long-hours small,.conduct .masonry small{flex-basis:100%;margin-bottom:4px;font-weight:700}
.conduct .production button,.conduct .long-hours button,.conduct .masonry button{flex:1;border-radius:0;padding:6px 2px;font-size:11px;min-width:0}
.conduct .production button:first-of-type,.conduct .long-hours button:first-of-type,.conduct .masonry button:first-of-type{border-radius:6px 0 0 6px}
.conduct .production button:last-child,.conduct .long-hours button:last-child,.conduct .masonry button:last-child{border-radius:0 6px 6px 0}
.conduct button.on{background:#536c45;color:#fff7df;border-color:#47623b}.conduct .long-hours button.on{background:#8a5a2b;border-color:#6d4520}
.conduct .long-hours,.conduct .masonry{display:flex;flex-wrap:wrap;align-items:center;gap:0;margin-top:8px}#hud-conduct{margin:6px 0 0}
.status-mark[data-kind^="✦"]{background:#6b5216;color:#ffe9a8;border:1px solid #d9b85a}.status-mark[data-kind="envoûté"]{background:#4a2d5e;color:#efe2ff}
#v-help{max-width:min(460px,92vw);padding:18px 24px;border:2px solid #8b6b3d;border-radius:10px;background:#f4ead2;color:#2d2014;font:14px/1.45 Georgia,serif}#v-help::backdrop{background:#0006}#v-help h2{margin:0 0 10px;font:700 20px/1.2 Georgia,serif}.v-help-keys{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;margin:0 0 10px}.v-help-keys dt{font:700 12px/1.6 system-ui,sans-serif;background:#e3d3ad;border-radius:4px;padding:0 6px;justify-self:start}.v-help-keys dd{margin:0}
.march-flag{position:absolute;z-index:1;pointer-events:none;transform:translate(-4px,-100%);display:flex;align-items:flex-end;gap:4px;color:var(--camp-0,#d84c33);text-shadow:0 1px 2px #000c}.march-flag span{font:700 26px/1 Georgia,serif}.march-flag small{font:600 11px/1.2 system-ui,sans-serif;color:#fff;background:#0008;padding:1px 6px;border-radius:8px;margin-bottom:4px}.march-flag[hidden]{display:none}
#hud-menu{display:inline-flex;align-items:center;padding:0 10px;height:28px;border-radius:7px;border:1px solid #c9b48a;color:inherit;text-decoration:none;font:600 12px/1 system-ui,sans-serif;margin-left:4px}#hud-menu:hover{background:#0001}
.inquiry-zone{position:absolute;z-index:1;pointer-events:none;transform:translate(-50%,-50%) scaleY(.55);border:2px dashed #f2d27acc;border-radius:50%;background:radial-gradient(circle,#f2d27a22,#f2d27a08 70%,transparent)}.inquiry-zone small{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scaleY(1.8);font:600 11px/1.2 system-ui,sans-serif;color:#fff;background:#0009;padding:1px 6px;border-radius:8px;white-space:nowrap}.inquiry-zone[hidden]{display:none}
.army-standard{position:absolute;z-index:2;transform:translate(-2px,-100%);display:flex;align-items:flex-start;gap:0;padding:0;border:0;background:none;cursor:pointer;width:auto;min-width:0}.army-standard[hidden]{display:none}.army-standard i{display:block;width:3px;height:38px;background:#3b2a18;border-radius:2px;box-shadow:0 1px 2px #0008}.army-standard span{display:block;margin-top:2px;padding:3px 8px 3px 6px;font:700 12px/1 system-ui,sans-serif;color:#fff;background:var(--camp-0);clip-path:polygon(0 0,100% 0,86% 50%,100% 100%,0 100%);text-shadow:0 1px 1px #0008;min-width:26px}.army-standard[data-side="1"] span{background:var(--camp-1)}.army-standard[data-side="2"] span{background:var(--camp-2)}.army-standard[data-side="3"] span{background:var(--camp-3)}.army-standard[data-side="4"] span{background:var(--camp-4)}
/* Dépêches : bouton de la barre du haut, compteur de non-lues, tiroir accessible. */
#hud-news-toggle{width:auto;white-space:nowrap;display:inline-flex;align-items:center;gap:5px;padding:5px 10px}#hud-news-toggle.on{background:#536c45;color:#fff7df}
.news-count{display:inline-block;min-width:18px;padding:0 5px;border-radius:9px;background:#8f422c;color:#fff7df;font:700 10px/18px system-ui,sans-serif;text-align:center}.news-count[hidden]{display:none}
#hud-news{display:none}
.hud-mode #hud-news{display:flex;flex-direction:column;position:absolute;right:20px;top:var(--hud-bottom,108px);z-index:6;width:min(360px,calc(100% - 24px));max-height:calc(100% - var(--hud-bottom,108px) - 24px);box-sizing:border-box;padding:10px 12px 8px;border-left:4px solid #536c45;box-shadow:0 10px 30px #15342d55;outline:none}
.hud-mode #hud-news[hidden]{display:none}.hud-mode #hud-news:focus-visible{box-shadow:0 0 0 3px #c9a44a,0 10px 30px #15342d55}
.news-head{display:flex;align-items:center;justify-content:space-between;gap:8px}#hud-news h2{margin:0;font:18px Georgia,serif;color:#3b513e}
.news-head button{width:auto;min-width:40px;min-height:40px;padding:4px 10px;font-size:15px}
.news-help{margin:2px 0 6px}
.news-list{list-style:none;margin:0;padding:0 4px 0 0;overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1 1 auto;touch-action:pan-y}
.news-item{display:flex;gap:10px;padding:8px 2px;border-top:1px solid #d5c5a0}.news-item:first-child{border-top:0}
.news-item>div{min-width:0;flex:1}
.news-glyph{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font:16px/1 Georgia,"Segoe UI Symbol","Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji","Noto Sans Symbols",serif;color:#3b2a1a;background:#fff7e2;border:2px solid #c9b27a}
.cat-combat .news-glyph{border-color:#8f422c}.cat-capture .news-glyph{border-color:#6b5a8a}.cat-alliance .news-glyph{border-color:#536c45}.cat-feu .news-glyph{border-color:#c9662a}.cat-sorciere .news-glyph{border-color:#4b5f86}.cat-brigands .news-glyph{border-color:#5d4630}
.news-item small{display:block;font-size:10px;color:#7c6d52;letter-spacing:.02em}.news-item small b{color:#8f422c;text-transform:uppercase;font-size:9px;letter-spacing:.05em}
.news-item.fresh{background:#fff7e2a8;border-radius:6px}
.news-item p{margin:2px 0 6px;font:13px/1.45 Georgia,serif;color:#33291b;overflow-wrap:anywhere}
.news-item button{width:auto;min-height:36px;padding:6px 12px;font-size:12px}
.news-empty{padding:10px 2px;font-size:12px;color:#7c6d52}
.news-glyph-inline{display:inline-block;min-width:1.2em;text-align:center;font-family:Georgia,"Segoe UI Symbol","Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji","Noto Sans Symbols",serif}
@media(pointer:coarse){.news-item button,.news-head button{min-height:44px}#hud-news-toggle{min-height:44px}}
@media(max-width:950px){.hud-mode #hud-news{right:12px}}
.sky-view #hud-news{display:none!important}
/* Hors champ, le marqueur ◎ se colle au bord : glyphe de la catégorie et flèche vers le lieu. */
#hud-event-marker .em-arrow{display:none}
#hud-event-marker.edge{width:40px;height:40px;font:20px/34px Georgia,"Segoe UI Symbol","Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji","Noto Sans Symbols",serif;pointer-events:auto;cursor:pointer}
#hud-event-marker.edge .em-arrow{display:block;position:absolute;left:50%;top:50%;width:0;height:0;border-left:15px solid #fff0a6;border-top:10px solid transparent;border-bottom:10px solid transparent;transform:translate(-50%,-50%) rotate(var(--a,0rad)) translateX(30px);filter:drop-shadow(0 0 2px #23180b)}

/* What a conversation is about, one sign per pair of talkers. */
.talk-icon{position:absolute;z-index:1;pointer-events:none;transform:translate(-50%,-100%);min-width:18px;height:18px;padding:0 3px;border-radius:9px;border:1px solid #b7aa87;background:#fff8e9e6;color:#4e553a;box-shadow:0 2px 6px #152d3b30;font:12px/18px Georgia,serif;text-align:center}
.talk-icon[hidden]{display:none}
.talk-icon[data-kind=sorciere]{background:#3d2f55e6;color:#e8dcff;border-color:#6d5a91}
.talk-icon[data-kind=guerre]{background:#8f422ce6;color:#fff1d3;border-color:#b5664c}
.talk-icon[data-kind=brigands]{background:#4a4030e6;color:#f3e3c0;border-color:#7a6a4f}
.talk-icon[data-kind=colere]{background:#b8452fe6;color:#fff;border-color:#d26a52}
.talk-icon[data-kind=peur]{background:#e7c14ae6;color:#4a3a10;border-color:#b8942a;font-weight:bold}
.talk-icon[data-kind=amour]{color:#b0365a}
.talk-icon[data-kind=commerce]{background:#e5e7c0e6;color:#5a5a2a}

/* A person's life, from the chronicle. */
details.life{margin:10px 0}details.life summary{cursor:pointer;font:600 12px Georgia,serif;color:#4e553a}
.life-facts{list-style:none;margin:6px 0 0;padding:0 0 0 10px;border-left:2px solid #b7aa87;max-height:260px;overflow:auto}
.life-facts li{margin:0 0 8px;font:11px/1.45 Georgia,serif}.life-facts small{display:block;color:#8a7d5c}

/* Getting the army ready: arms, drill, and the « Armée » priority. */
.army-ready{margin:8px 0;padding:8px 10px;border-left:3px solid #8f422c;background:#fff5dcb0;font:12px/1.5 Georgia,serif}
.army-ready p{margin:5px 0}.army-ready .ok{color:#3c7a3c;font-weight:bold}.army-ready .ko{color:#a5301f;font-weight:bold}
.army-ready button{padding:2px 8px;margin-right:4px}

#v-plan textarea{width:100%;box-sizing:border-box;font:inherit;font-size:11px;margin:4px 0}#v-plan-steps{padding-left:18px;margin:6px 0}#v-plan-steps li.done{opacity:.55;text-decoration:line-through}#v-plan-steps li.now{font-weight:bold}
#v-welcome .welcome-deal{margin:14px 0;padding:12px 16px;background:#fbf5e6;border:1px solid #c9b48a;border-left:4px solid #866b40;border-radius:8px;font:15px/1.5 Georgia,serif;color:#423820}
#v-welcome .welcome-deal ul{margin:6px 0 0;padding-left:20px}#v-welcome .welcome-deal li{margin:2px 0}
#v-herbal{position:fixed;inset:0;margin:auto;width:min(560px,calc(100% - 32px));max-height:88vh;padding:24px;overflow:auto;z-index:31;background:#f3ead5;border:2px solid #866b40;border-radius:12px;color:#423820;font:15px/1.55 Georgia,serif}
#v-herbal::backdrop{background:#17251999}#v-herbal h2{margin:2px 0 6px;font-size:24px}#v-herbal h2 i{font-size:15px;font-weight:400;color:#6d5a3a}
#v-herbal dl{margin:10px 0}#v-herbal dt{margin-top:9px;font:700 11px/1.3 system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#866b40}#v-herbal dd{margin:2px 0 0}
#v-herbal .herb-use{display:inline-block;margin:0;padding:2px 10px;border-radius:999px;font:700 12px/1.6 system-ui,sans-serif;color:#fff;background:#52703f}
#v-herbal .herb-use.use-poison{background:#6b2f55}#v-herbal .herb-use.use-croyance{background:#8a6a2a}
#v-herbal .herb-witch{margin:8px 0;padding:8px 10px;border-radius:8px;background:rgba(107,47,85,.10);border-left:3px solid #6b2f55;font-size:13px;line-height:1.45}#v-herbal .herb-witch span{opacity:.75;font-size:12px}#v-herbal .herb-asks{margin:8px 0 6px;flex-wrap:wrap;justify-content:flex-start}#v-herbal .herb-asks button{font-size:12px;padding:5px 9px}#v-herbal .herb-asks button:disabled{opacity:.45;cursor:default}
#v-herbal .herb-askew{color:#7a4a12}#v-herbal dd.herb-askew{border-left:3px solid #c08a3a;padding-left:8px}#v-herbal .herb-list em{color:#a06a1e;font-style:italic}
#v-herbal .herb-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:14px}
#v-herbal .herb-list{list-style:none;margin:10px 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:6px}
#v-herbal .herb-list button{width:100%;text-align:left;padding:8px 10px;background:#fbf5e6;border:1px solid #c9b48a;border-radius:8px;cursor:pointer}
#v-herbal .herb-list span{display:block;font:12px/1.4 system-ui,sans-serif;color:#6d5a3a}
#v-herbal .lore-trade{margin:12px 0 2px;font:700 12px/1.3 system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#866b40}#v-herbal .lore-list{margin:4px 0;padding-left:20px}#v-herbal .lore-list li{margin:5px 0}
#v-welcome-name{font:inherit;font-weight:700;color:inherit;background:#fffaf0;border:0;border-bottom:2px solid #866b40;border-radius:3px 3px 0 0;padding:0 5px;width:8.5em}#v-welcome-name:focus{outline:2px solid #a58b52;outline-offset:1px}.you-are{border-left:3px solid #a58b52;padding-left:8px}.you-are button{margin-left:4px}
