:root{--ink:#e7dfc7;--muted:#b0a88e;--gold:#d7ae6b;--gold2:#8c6536;--bg:#101714;--panel:#1d2420;--panel2:#263028;--line:#475044;--red:#a95c49;--green:#7c9b76;--blue:#6b9697;--paper:#e8dcc1;--shadow:0 16px 40px rgba(0,0,0,.32)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at top,#26362f 0%,#111714 55%,#0b100f 100%);color:var(--ink);font:15px/1.5 system-ui,-apple-system,Segoe UI,sans-serif;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}h1,h2,h3,h4,p{margin:0}h1,h2,h3,.serif{font-family:Georgia,'Times New Roman',serif}h1{font-weight:normal;font-size:clamp(30px,5vw,51px);letter-spacing:.08em;line-height:1.12}h2{font-size:clamp(23px,3vw,31px);font-weight:normal}h3{font-size:19px;font-weight:normal}small{font-size:12px}.uppercase{letter-spacing:.19em;text-transform:uppercase;font-size:10px;color:var(--gold)}.muted{color:var(--muted)}.hint{font-size:12px;color:var(--muted)}.divider{height:1px;background:linear-gradient(90deg,transparent,var(--line),transparent);margin:16px 0}.top{position:sticky;top:0;z-index:20;background:#131b17f5;border-bottom:1px solid #6e624a;backdrop-filter:blur(12px)}.top-inner{max-width:1250px;margin:auto;padding:12px 20px;display:flex;align-items:center;gap:16px;justify-content:space-between}.brand{background:none;border:0;color:var(--gold);font-family:Georgia,serif;letter-spacing:.23em;font-size:23px;white-space:nowrap}.brand small{display:block;letter-spacing:.25em;font:9px system-ui;text-transform:uppercase;color:var(--muted);text-align:center}.stats{display:flex;align-items:center;gap:13px;flex-wrap:wrap;font-size:12px}.stats b{color:var(--gold);font-weight:650}.nav{display:flex;gap:7px;flex-wrap:wrap}.btn,.nav button,.action{border:1px solid #6e624c;background:linear-gradient(160deg,#323c30,#232c25);color:var(--ink);padding:10px 15px;border-radius:4px;min-height:42px;transition:background .15s,border-color .15s,transform .12s}.btn:hover:not(:disabled),.nav button:hover,.action:hover:not(:disabled){background:#394639;border-color:var(--gold)}.btn:active:not(:disabled),.action:active:not(:disabled){transform:scale(.98)}.btn.gold{background:linear-gradient(130deg,#cb9c56,#9f6c33);color:#1b160e;font-weight:700;border-color:#e1bc7c}.btn.gold:hover{background:#dcb471}.btn.red{border-color:#9b5745;color:#f1b09e}.btn.slim{padding:6px 10px;min-height:34px}.btn.ghost{background:transparent}.nav button.active{border-color:var(--gold);color:var(--gold)}.layout{max-width:1250px;padding:24px 20px 56px;margin:auto}.hero-title{margin-bottom:19px;display:flex;align-items:end;justify-content:space-between;gap:20px}.hero-title p{color:var(--muted);max-width:510px}.kicker{font:11px system-ui;letter-spacing:.27em;color:var(--gold);text-transform:uppercase;margin-bottom:7px}.panel{background:linear-gradient(145deg,#242e27ef,#1b211ceD);border:1px solid #4b5246;box-shadow:var(--shadow);border-radius:5px;overflow:hidden}.panel.pad{padding:20px}.panel h3{margin-bottom:10px}.grid2{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(285px,1fr);gap:18px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.section{margin-top:18px}.chapter{font:10px system-ui;letter-spacing:.28em;text-transform:uppercase;color:var(--gold);margin-bottom:10px}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.between{justify-content:space-between}.stack{display:grid;gap:10px}.scroll{overflow:auto;max-height:440px}.line-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #3b4539}.line-item:last-child{border:0}.token{display:inline-flex;align-items:center;gap:6px;border:1px solid #636650;padding:4px 9px;border-radius:3px;background:#171d19;color:var(--gold);font-size:12px}.pill{border:1px solid #586052;border-radius:99px;padding:3px 9px;font-size:11px;color:var(--muted)}.good{color:#a5c59a}.bad{color:#df9384}.price{color:var(--gold);font-variant-numeric:tabular-nums;white-space:nowrap}.vital{height:7px;background:#0c120f;border-radius:10px;overflow:hidden;border:1px solid #3a453c}.vital>i{display:block;height:100%;background:linear-gradient(90deg,#51775f,#a0c198)}.vital.red>i{background:linear-gradient(90deg,#8f4438,#d98d69)}.vital.gold>i{background:linear-gradient(90deg,#7e6039,#dfb273)}.smallgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.statbox{border:1px solid #4b5947;background:#151e19;padding:10px;border-radius:3px}.statbox b{font:24px Georgia;color:#f0dcb4}.statbox small{display:block;color:var(--muted)}.map{position:relative;width:100%;min-height:500px;overflow:hidden;background:#a99773;border:8px solid #5a4c35;box-shadow:inset 0 0 60px #30291a}.map svg{width:100%;height:100%;position:absolute;inset:0}.map:after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 95px #251f14b0;background:repeating-linear-gradient(20deg,#161d0d05 0 2px,transparent 2px 5px)}.place{position:absolute;z-index:2;transform:translate(-50%,-50%);border:1px solid #695237;outline:3px solid #b6a37a33;min-width:94px;background:#1e2925e8;padding:8px;color:#f4dfb5;text-align:center;font:12px Georgia,serif;box-shadow:0 4px 15px #0009;border-radius:3px}.place i{display:block;font-style:normal;font-size:20px;margin-bottom:1px}.place:hover,.place.selected{background:#ad7c43;color:#171a14;border-color:#ffe1a7}.map-caption{position:absolute;bottom:9px;left:15px;z-index:3;color:#3b3123;font:italic 15px Georgia;pointer-events:none}.dest{padding:18px;background:linear-gradient(145deg,#293b34,#1c241e)}.illustration{position:relative;min-height:240px;overflow:hidden;background:linear-gradient(#4b584f,#b2a07b);border-bottom:1px solid #6c5738}.illustration svg{display:block;width:100%;height:250px}.illus-title{position:absolute;bottom:0;left:0;right:0;padding:31px 24px 17px;background:linear-gradient(transparent,#151a18eb)}.illus-title h2{text-shadow:0 3px 5px #000}.content{padding:18px 20px 22px}.character-card{display:flex;gap:12px;padding:13px;border:1px solid #4d594c;background:#182019;border-radius:4px;align-items:center}.portrait{width:53px;height:61px;flex:none;border:1px solid #817255;background:radial-gradient(circle at 40% 30%,#a78561,#3c4136 55%,#111912);display:flex;align-items:center;justify-content:center;font-size:26px}.list-btn{width:100%;text-align:left}.shop-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:12px;border-bottom:1px solid #3c483a}.shop-row:nth-child(odd){background:#1b251d}.shop-row:last-child{border:0}.shop-row h4{font-weight:600}.shop-row p{font-size:12px;color:var(--muted)}.shop-row .btn{min-width:68px}.inventory-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:10px;border-bottom:1px solid #344037}.camp-visual{height:300px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 55% 47%,#4a583e 0%,#253b2d 55%,#101c19 100%);border:1px solid #5b604b}.camp-visual:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(20deg,#ddc49d08 0px 2px,transparent 2px 38px)}.camp-node{position:absolute;transform:translate(-50%,-50%);border:1px solid #9d804e;background:#17221cd9;color:var(--ink);padding:9px 14px;border-radius:4px;font:12px Georgia;text-align:center;min-width:95px}.camp-node b{display:block;font-size:24px}.camp-node.active{color:#1a1a12;background:var(--gold)}.flame{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:48px;filter:drop-shadow(0 0 26px #e28d35)}.tabs{display:flex;gap:7px;overflow:auto;scrollbar-width:thin;padding:2px 0 9px}.tabs .btn{white-space:nowrap}.tabs .active{border-color:var(--gold);color:var(--gold)}.combat-track{height:215px;position:relative;overflow:hidden;background:linear-gradient(#2d3930 0%,#6c6749 68%,#38382c 69%,#252a23);border:1px solid #68604c}.combat-track:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 calc(10% - 1px),#e6d6a121 calc(10% - 1px) 10%)}.track-floor{position:absolute;left:5%;right:5%;top:70%;height:4px;background:#bca879}.fighter{position:absolute;top:32%;transform:translateX(-50%);text-align:center;z-index:2;min-width:63px;transition:left .35s}.fighter>span{font-size:40px;display:block;filter:drop-shadow(0 5px 3px #000b);line-height:1.1}.fighter small{display:block;font-size:10px;background:#161f19d9;padding:2px 4px;border:1px solid #7e785c;white-space:nowrap}.fighter.ally small{border-color:#a3bd8e}.fighter.enemy small{border-color:#c98774}.fighter.out{opacity:.45;filter:grayscale(1)}.fighter.target small{background:var(--gold);color:#181512}.tactics{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.fighter-info{padding:13px;border:1px solid #4d5748;background:#17201b;border-radius:4px}.fighter-info h4{margin-bottom:7px}.action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.action{display:block;text-align:left;min-height:62px;padding:10px}.action strong{display:block}.action small{color:var(--muted);display:block;font-size:11px}.action.active{border-color:var(--gold);background:#625037}.action:disabled{opacity:.34}.field{background:#141e19;border:1px solid #586251;color:#f4e9d4;border-radius:3px;padding:10px;min-height:42px;max-width:100%}.field option{background:#18211c}.game-log{max-height:325px;overflow:auto;font-size:12px;line-height:1.55}.log-line{padding:8px 10px;border-bottom:1px solid #374238}.log-line time{font-variant-numeric:tabular-nums;color:var(--gold);margin-right:8px}.log-line.hit{border-left:3px solid #ab6655}.log-line.info{border-left:3px solid #657f70}.log-line details{margin-top:5px}.log-line summary{cursor:pointer;color:#b6c4ae}.notice{border-left:3px solid var(--gold);padding:11px 13px;background:#50422c44;color:#e8d7b7;font-size:13px}.notice.warn{border-color:var(--red);background:#522c2944}.toast{position:fixed;z-index:70;bottom:25px;left:50%;transform:translate(-50%,-20px);padding:13px 22px;background:#e4c28b;color:#181b15;font-weight:700;border:1px solid #fff0c7;box-shadow:var(--shadow);border-radius:5px;max-width:min(94%,560px);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}.overlay{position:fixed;inset:0;background:#080c0bc9;z-index:50;display:flex;justify-content:center;align-items:center;padding:15px}.modal{width:min(610px,100%);max-height:90vh;overflow:auto;background:#232c24;border:1px solid #a48a59;box-shadow:0 30px 120px #000e;padding:22px}.modal h2{margin-bottom:12px}.modal .stack{margin-top:15px}.menu-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.list-meta{font:12px system-ui;color:var(--muted);margin-top:5px}.footer{max-width:1250px;margin:auto;padding:10px 20px 25px;text-align:center;color:#858c7a;font-size:11px;letter-spacing:.04em}hr{border:0;height:1px;background:#465040;margin:14px 0}.tiny{font-size:11px}details>summary{cursor:pointer}details.content-details{padding:12px;border:1px solid #48554a}details.content-details summary{font-weight:600;color:var(--gold)}@media(max-width:850px){.grid2{grid-template-columns:1fr}.top-inner{padding:8px 12px;flex-wrap:wrap;justify-content:center;gap:8px}.stats{justify-content:center}.layout{padding:15px 12px 40px}.map{min-height:410px}.hero-title{align-items:start;flex-direction:column;gap:4px}.tactics{grid-template-columns:1fr}.grid3{grid-template-columns:1fr 1fr}.illustration svg{height:206px}.illustration{min-height:206px}}@media(max-width:500px){body{font-size:14px}.top-inner{justify-content:space-between}.brand{font-size:19px}.nav{width:100%;justify-content:center}.nav button{font-size:12px;min-height:36px;padding:7px 9px}.stats{font-size:11px;gap:8px}.map{min-height:355px;border-width:5px}.place{font-size:10px;min-width:63px;padding:6px 3px}.place i{font-size:17px}.grid3{grid-template-columns:1fr}.shop-row{grid-template-columns:minmax(0,1fr) auto}.shop-row .price{grid-column:2;grid-row:1}.shop-row .btn{grid-column:2;grid-row:2}.panel.pad{padding:13px}.camp-visual{height:260px}.camp-node{min-width:72px;padding:7px;font-size:10px}.camp-node b{font-size:19px}.fighter>span{font-size:31px}.fighter small{font-size:8px}.fighter{min-width:47px}.combat-track{height:185px}.action-grid{grid-template-columns:1fr 1fr}.action{padding:8px;font-size:12px}.modal{padding:17px}.shop-row p{font-size:11px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Les deux camps restent distincts visuellement même au même mètre. */
.fighter.ally{top:38%}.fighter.enemy{top:8%}.grid2{align-items:start}


/* Camp vivant : tuiles isométriques dessinées en SVG, ateliers et combattants activables. */
.camp-main-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(325px,1fr);gap:18px;align-items:start}
.camp-board{width:100%;aspect-ratio:1000/570;min-height:370px;position:relative;overflow:hidden;isolation:isolate;background:#24352e;border:6px solid #64573c;box-shadow:inset 0 0 50px #101a14,0 10px 28px #0007}
.camp-scene-svg{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.camp-map-object,.camp-map-character{position:absolute;z-index:2;transform:translate(-50%,-50%);display:grid;justify-items:center;align-items:center;gap:1px;border:1px solid #d0b681d1;background:#19251ddf;color:#f1e4c8;padding:5px 8px;min-width:63px;min-height:48px;border-radius:4px;box-shadow:0 6px 15px #0009;backdrop-filter:blur(2px);max-width:116px;text-align:center}
.camp-map-object:hover,.camp-map-character:hover,.camp-map-object:focus-visible,.camp-map-character:focus-visible{background:#5d4b31;border-color:#ffdea5;z-index:4}
.camp-map-object.active{background:#a17b46;border-color:#f7dbaa;color:#151d18}
.camp-map-object.uninstalled{border-style:dashed;filter:saturate(.38);opacity:.7}
.camp-map-object .camp-icon{font:25px/1 Georgia,'Times New Roman',serif;text-shadow:0 1px 4px #000b}
.camp-map-object small,.camp-map-character small{font:11px/1.1 system-ui;white-space:normal}
.camp-map-object em{font:8px/1 system-ui;color:#dfb28a;white-space:nowrap}
.camp-map-character{min-width:48px;min-height:50px;border:2px solid #8cad90;background:#1e392deb;padding:4px}
.camp-map-character span{font-size:26px;line-height:1;color:#d8d4ae}
.camp-map-character.injured{border-color:#da8b65}
.character-sheet-grid{display:grid;grid-template-columns:minmax(125px,1fr) minmax(0,1fr);gap:12px}
.character-anatomy{width:100%;max-height:280px}
.character-equip-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.character-skills-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.character-equip-grid .statbox b.smallitem{display:block;font:12px/1.3 system-ui;color:var(--ink);margin:4px 0;overflow-wrap:anywhere}
.character-skills-grid .statbox b{font-size:15px}
.character-skills-grid .btn{margin-top:7px}
.wound-impact{margin:7px 0;padding:7px 9px;border-left:3px solid #bc8065;background:#553b3433;color:#f0c9b7;font-size:12px}
.fighter-wound-list{display:grid;gap:3px;margin-top:5px}
.fighter-wound-list p{font-size:11px;line-height:1.3;color:#e8b9a4}
@media(max-width:1020px){.camp-main-layout{grid-template-columns:1fr}.camp-board{min-height:310px}}
@media(max-width:620px){.camp-board{min-height:360px;aspect-ratio:4/3}.camp-map-object{min-width:45px;min-height:37px;padding:3px 4px;max-width:63px}.camp-map-object .camp-icon{font-size:19px}.camp-map-object small,.camp-map-character small{font-size:8px}.camp-map-object em{font-size:7px}.camp-map-character{min-width:42px;min-height:39px;padding:2px}.camp-map-character span{font-size:20px}.character-sheet-grid{grid-template-columns:minmax(120px,0.8fr) minmax(0,1fr)}.character-skills-grid{grid-template-columns:1fr}}


/* COMBAT V2 : compréhension immédiate, deux camps, anatomie et sélection progressive. */
.combat-top .top-inner{padding:9px 20px;min-height:60px}
.battle-brand{cursor:default;display:block}
.battle-top-context{display:flex;gap:22px;align-items:center;color:var(--paper);font-variant-numeric:tabular-nums}
.battle-top-context b{font:14px Georgia;letter-spacing:.09em;color:var(--gold)}
.battle-top-context span{font-weight:750;color:#eddbb4}
.battle-title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:16px}
.battle-title p{font-size:12px;color:var(--muted);max-width:560px}
.battle-title h1{font-size:clamp(26px,5vw,43px)}
.battle-track-caption{font-size:11px;color:var(--muted);padding:7px 11px}
.battle-rosters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.battle-roster{min-width:0;display:grid;gap:8px;align-items:start}
.battle-roster-heading{padding:9px 12px;display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:750;letter-spacing:.11em;color:#d6e4c6;border-left:4px solid #7d9c83;background:#273b32}
.battle-roster-heading.enemy{color:#ecd2bd;border-color:#c48363;background:#3c2d29}
.battle-roster-heading span{font-size:11px;letter-spacing:0;opacity:.8}
.battle-unit{min-width:0;background:linear-gradient(145deg,#22332a,#151d1a);border:1px solid #556e59;border-left:3px solid #83a590;padding:12px;border-radius:5px}
.battle-unit.enemy{background:linear-gradient(145deg,#382d29,#1c201d);border-color:#74564a;border-left-color:#c48363}
.battle-unit.selected{box-shadow:inset 0 0 0 1px #c5b27e}
.battle-unit.out{opacity:.65}
.battle-unit-title{display:flex;gap:5px;align-items:center;justify-content:space-between;min-width:0;margin-bottom:9px}
.battle-unit-title b{font:20px/1.2 Georgia;overflow-wrap:anywhere;color:#f2e6ca}
.battle-unit-title small{flex:none;color:var(--muted);font-size:10px}
.battle-vitals{display:flex;align-items:stretch;gap:6px;font-variant-numeric:tabular-nums}
.battle-vital-main{flex:1;min-width:0;padding:8px 10px;background:#101a16;border:1px solid #506454}
.battle-vital-main>span,.battle-fat>span{font-size:9px;letter-spacing:.1em;color:#aab99e;display:block}
.battle-fraction{display:flex;gap:6px;align-items:baseline;justify-content:center}
.battle-fraction strong{font:700 30px/1.15 Georgia;color:#c9e0bf}
.battle-fraction strong:last-child{color:#f1d6a5}
.battle-fraction i{font-style:normal;font-size:21px;color:#9c9d88}
.battle-fat{padding:8px 12px;background:#2f211d;border:1px solid #8b6152;text-align:center;min-width:75px}
.battle-fat span{color:#eab29b}
.battle-fat strong{display:block;font:700 29px/1.15 Georgia;color:#e6a18a}
.battle-res-bar{margin:6px 0 10px;background:#583a30;height:9px;border:1px solid #3a3328;overflow:hidden;border-radius:3px}
.battle-res-bar i{display:block;height:100%;background:linear-gradient(90deg,#4a876b,#b2d5a4)}
.battle-unit-middle{display:grid;grid-template-columns:minmax(82px,.52fr) minmax(0,1fr);gap:10px;align-items:center}
.battle-figure{display:flex;align-items:center;justify-content:center}
.battle-body{display:block;width:min(100%,142px);height:auto;max-height:235px;filter:drop-shadow(0 5px 6px #0005)}
.battle-gear-summary{min-width:0;display:grid;gap:5px;align-content:start}
.battle-gear-weapon{display:grid;gap:2px;min-width:0}
.battle-gear-weapon b{font:16px/1.25 Georgia;overflow-wrap:anywhere}
.battle-gear-symbol{font:28px Georgia;color:var(--gold)}
.battle-gear-summary small{font-size:10px;color:var(--muted)}
.battle-gear-summary>p{font-size:11px;overflow-wrap:anywhere}
.battle-gear-summary .btn{white-space:normal;text-align:center;line-height:1.1;font-size:11px;min-height:32px;padding:5px}
.battle-wound-header{display:flex;justify-content:space-between;gap:4px;margin-top:11px;border-top:1px solid #536054;padding-top:10px;font-size:10px;letter-spacing:.08em}
.battle-wound-header b{letter-spacing:0;color:#e9c7ae}
.battle-wounds{display:grid;gap:4px;margin-top:5px}
.battle-wound{padding:5px 7px;background:#4d312b;border-left:3px solid #d39f6d}
.battle-wound.severity-3,.battle-wound.severity-4{border-left-color:#e27263;background:#573031}
.battle-wound b{display:block;font-size:11px;color:#f0ceb4}
.battle-wound small{display:block;font-size:10px;color:#d1baad}
.battle-position{font-size:10px;color:#b2b7a4;padding-top:9px;letter-spacing:.06em}
.battle-tactics{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.battle-orders{min-width:0}
.battle-debt{background:#263229;border:1px solid #526454;padding:10px 12px;margin-top:13px;font-size:12px}
.battle-debt.active{background:#4f3b29;border-color:#d4a66f;box-shadow:inset 0 0 18px #ba81352b}
.battle-debt b{display:block;font-size:12px;color:#eed7ac;letter-spacing:.06em}
.battle-debt p,.battle-debt small{display:block;font-size:11px;color:#bfc4aa;margin-top:5px}
.battle-debt small{color:#e9bd83}
.battle-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.battle-category{border:1px solid #627264;background:#25372d;min-height:53px;border-radius:3px;color:#e9e3c7;padding:5px 6px;font-weight:650;font-size:12px}
.battle-category.active{color:#1b1c13;background:#cba365;border-color:#e4bc78}
.battle-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.battle-action-choice{display:grid;align-content:center;gap:6px;min-height:72px;text-align:left;border:1px solid #5f6957;background:#19251f;color:#ecdfc6;padding:9px;border-radius:3px}
.battle-action-choice strong{font:16px/1.1 Georgia}
.battle-action-choice small{font-size:11px;color:#bdbb9e;line-height:1.4}
.battle-action-choice.active{background:#62503a;border:2px solid #d7b378;padding:8px}
.battle-action-choice:disabled{opacity:.35}
.battle-aim{background:#17231c;border:1px solid #4d594a;padding:10px 10px 0;margin-top:12px}
.battle-aim .chapter{margin-bottom:3px}
.battle-target-figure{height:265px;width:min(100%,255px);margin:5px auto 10px;position:relative}
.battle-target-figure .battle-body{height:100%;width:100%;max-height:none}
.battle-aim-point{position:absolute;transform:translate(-50%,-50%);background:#151d19e8;border:1px solid #b5a67f;padding:5px 7px;color:#efddbb;text-align:center;border-radius:4px;min-width:68px}
.battle-aim-point b{display:block;font:10px/1.2 system-ui}
.battle-aim-point strong{font:700 19px/1 Georgia;color:#deb777}
.battle-aim-point.active{background:#d0ad73;border-color:#ffe2a2;color:#171d17;z-index:2}
.battle-aim-point.active strong{color:#352516}
.battle-action-review{display:grid;gap:5px;border-left:4px solid #8eaf86;margin-top:17px;padding:12px;background:#24382a;color:#e1ddc6;font-size:12px}
.battle-action-review b{font-size:13px}
.battle-action-review.illegal{border-color:#bd695b;background:#402b29}
.battle-surrender{margin-top:18px;border-top:1px solid #4d5b50;padding-top:12px;display:flex;flex-direction:column;align-items:flex-end;gap:9px}
.battle-surrender-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:9px 13px;border:1px solid #966057;border-radius:7px;background:linear-gradient(150deg,#342523,#261e1c);color:#e1afa4;font-size:12px;font-weight:600;letter-spacing:.03em;transition:background .18s,border-color .18s}
.battle-surrender-toggle:hover,.battle-surrender-toggle[aria-expanded="true"]{background:#4a2d29;border-color:#dc9a89;color:#f6d7cb}
.battle-surrender-toggle:focus-visible{outline:2px solid #ffd1ac;outline-offset:2px}
.battle-surrender-toggle svg{width:21px;height:21px;flex:0 0 21px}
.battle-surrender-chevron{font-size:13px;margin-left:5px;opacity:.8}
.battle-surrender-choices{width:min(100%,460px);padding:14px;border:1px solid #995d55;border-radius:7px;background:#382725;display:flex;flex-wrap:wrap;align-items:center;gap:9px}
.battle-surrender-choices p{width:100%;font-size:12px;color:#e6c3b8;font-weight:700;letter-spacing:.04em}
.battle-recap{min-width:0}
.battle-round-empty{padding:22px 12px;border:1px dashed #596253;color:var(--muted);margin-top:17px;font-size:13px}
.battle-round-recap{border:1px solid #4f5c4c;margin-top:14px}
.battle-round-heading{padding:10px;display:flex;justify-content:space-between;align-items:center;background:#393c2d;font-size:12px}
.battle-round-heading b{color:#f2dbb1}
.battle-round-heading span{font-size:10px;color:var(--muted)}
.battle-recap-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:8px}
.battle-recap-side{border-left:3px solid #7eae8d;background:#1d2d24;padding:9px;min-width:0}
.battle-recap-side.enemy{border-color:#b77661;background:#352a27}
.battle-recap-side>strong{display:block;font-size:10px;letter-spacing:.12em;margin-bottom:8px;color:#ccdfc6}
.battle-recap-side.enemy>strong{color:#f0c9b4}
.battle-recap-actor{display:grid;gap:3px;border-top:1px solid #556051;padding-top:8px;margin-top:8px;font-size:12px}
.battle-recap-actor b{color:#f0e3ce;font:15px Georgia;overflow-wrap:anywhere}
.battle-recap-actor span{color:#e0bd8c}
.battle-recap-actor em{font-size:11px;color:#f5ad91;font-style:normal;font-weight:700}
.battle-recap-actor small{font-size:10px;color:#b7bea9;overflow-wrap:anywhere}
.battle-recap-highlights{border-top:1px solid #4f5c4c;padding:8px;display:grid;gap:5px}
.battle-recap-highlight{font-size:12px;padding:7px 8px;border-left:3px solid #7eaa8b;background:#25352b}
.battle-recap-highlight.enemy{border-color:#c67c63;background:#3a2e2a}
.battle-recap-highlight strong{color:#f3ce94}
.battle-log-panel{min-width:0}
.battle-log{max-height:440px}
.battle-legend{display:flex;gap:15px;font-size:11px;color:#b9bcac;margin:5px 0 12px}
.battle-legend .friendly{color:#a5c9a9}.battle-legend .hostile{color:#edb19a}
.battle-log-turn{padding:11px 12px;background:linear-gradient(90deg,#7c5f37,#35382c);border-top:2px solid #e1b877;border-bottom:1px solid #c09f6e;color:#f8ddb0;letter-spacing:.14em;font-weight:800}
.battle-log-turn small{font-size:10px;float:right;color:#d7c6a6;letter-spacing:0}
.battle-log .log-line.log-ally{border-left:3px solid #8bb99a;background:#203329}
.battle-log .log-line.log-enemy{border-left:3px solid #d4836c;background:#342923}
.battle-log .log-line.log-system{border-left:3px solid #8f9181;background:#242724}
.battle-log .log-line strong{color:#ffcf9c}
.battle-log .log-line.log-enemy strong{color:#f2a58f}
.battle-log .log-line time{display:inline-block;min-width:42px;color:#ddc596}
.battle-log .log-line details p{margin:8px 0;padding:8px;background:#0d1813;color:#d2ccb6}
@media(max-width:820px){.battle-tactics{grid-template-columns:1fr}.battle-title{align-items:start;flex-direction:column}.battle-aim-point{min-width:68px}}
@media(max-width:630px){.combat-top .top-inner{flex-wrap:nowrap;padding:7px 10px}.battle-top-context{gap:8px;flex-direction:column;align-items:flex-end;font-size:11px}.battle-top-context b{font-size:11px}.battle-rosters{gap:7px}.battle-unit{padding:7px}.battle-unit-title{display:block}.battle-unit-title b{display:block;font-size:16px}.battle-unit-title small{font-size:9px}.battle-vital-main{padding:5px}.battle-vital-main>span,.battle-fat>span{font-size:8px;letter-spacing:0}.battle-fraction strong{font-size:21px}.battle-fraction{gap:3px}.battle-fraction i{font-size:14px}.battle-fat{padding:5px;min-width:44px}.battle-fat strong{font-size:21px}.battle-unit-middle{grid-template-columns:1fr;gap:5px}.battle-body{max-height:170px}.battle-gear-weapon{display:flex;flex-wrap:wrap;align-items:center;gap:4px}.battle-gear-weapon b{font-size:12px}.battle-gear-symbol{font-size:19px}.battle-gear-summary{gap:3px}.battle-gear-summary .btn{min-height:32px;font-size:9px}.battle-wound-header{display:block}.battle-wound small{font-size:9px}.battle-roster-heading{padding:7px;font-size:10px}.battle-roster-heading span{font-size:9px}.battle-recap-cols{grid-template-columns:1fr}.battle-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.battle-track-caption{font-size:10px}.battle-title p{font-size:11px}.battle-aim .battle-body{max-height:none}}


/* Combat V2.2 : cibles tactiles, dette conditionnelle, equipement détaillé */
.battle-target-buttons{display:flex;gap:7px;align-items:stretch;flex-wrap:nowrap;overflow-x:auto;padding:5px 1px 10px;scrollbar-width:thin}
.battle-target-button{min-width:115px;flex:1 0 max-content;border:1px solid #71806c;background:#22352c;color:#f1dec2;padding:10px 11px;text-align:left;border-radius:4px}
.battle-target-button strong{display:block;font:15px Georgia}
.battle-target-button small{display:block;font-size:12px;color:#c9b28c;margin-top:4px}
.battle-target-button.active{background:#665039;border:2px solid #e4bb78;padding:9px 10px}
.battle-target-kit{display:grid;gap:4px;border:1px solid #4c5e50;background:#23342a;padding:9px;font-size:12px;margin:9px 0}
.battle-target-kit b{color:#dcb988}
.battle-target-armors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-bottom:8px}
.battle-target-armors span{font-size:10px;padding:7px;background:#141e18;border:1px solid #4c5646;overflow-wrap:anywhere}
.battle-target-armors strong{display:block;color:#d9bb81;margin-bottom:3px}
.battle-no-melee{margin-top:15px}
.battle-card-abandon{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px;border-bottom:1px solid #475448;margin:0 0 8px}
.battle-card-abandon .battle-surrender-link{padding:4px;font-size:10px;color:#cc958b}
.battle-card-abandon-options{display:flex;flex-wrap:wrap;align-items:center;gap:6px;width:100%;padding:9px;background:#372626;border-top:1px solid #995b50}
.battle-card-abandon-options p{width:100%;font-size:11px;color:#e5bfad}
.battle-card-abandon-options .btn{font-size:11px;padding:5px 8px;min-height:30px}
.equipment-stat-slot{border:1px solid #4d5b4e;background:#17221b;padding:11px;border-radius:4px;margin:5px 0}
.equipment-stat-slot>.row b{font-size:13px}
.equipment-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:9px}
.equipment-stat-grid>div{background:#0f1b15;padding:7px;border:1px solid #3c5240;display:grid;gap:3px}
.equipment-stat-grid small{font-size:10px;color:#b4c2a9}
.equipment-stat-grid strong{font-size:13px;color:#eac797;font-variant-numeric:tabular-nums}
.character-anatomy{width:100%;height:auto;max-height:310px}
@media(max-width:520px){.battle-target-button{min-width:95px;max-width:50%;padding:8px}.battle-target-button strong{font-size:13px}.battle-target-armors{grid-template-columns:1fr 1fr}.equipment-stat-grid{grid-template-columns:1fr 1fr}}

/* Camp V2 : scene permanente, grille 11x9, fiches par dessus comme un plateau de jeu */
.camp-header{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin-bottom:15px}
.camp-header h1{font-size:clamp(26px,4vw,43px)}
.camp-header p{color:var(--muted);font-size:12px;max-width:640px;margin-top:6px}
.camp-world{position:relative;min-width:0}
.camp-game-board{position:relative;aspect-ratio:1000/570;width:100%;height:auto;min-height:0;border:6px solid #9d8456;box-shadow:0 17px 44px #000a,inset 0 0 60px #0e1d14;background:#1f3325;overflow:hidden}
.camp-game-board .camp-scene-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.camp-map-brand{position:absolute;left:12px;bottom:7px;color:#e3ca8e;font:11px Georgia;letter-spacing:.2em;z-index:1;pointer-events:none;text-shadow:0 2px 4px #000}
.camp-isometric-piece{position:absolute;z-index:4;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:65px;max-width:105px;min-height:51px;padding:5px 7px;background:linear-gradient(140deg,#384e38ed,#15251cf5);border:1px solid #d2b680;border-radius:4px;color:#f6e4b9;text-align:center;box-shadow:0 6px 12px #0008;line-height:1.15;backdrop-filter:blur(2px);transition:transform .13s,background .15s}
.camp-isometric-piece:hover,.camp-isometric-piece:focus-visible{transform:translate(-50%,-50%) scale(1.06);background:#65583b;z-index:6}
.camp-isometric-piece>strong{font-size:22px;line-height:1;color:#e3c687}
.camp-isometric-piece>span{font:11px Georgia;overflow-wrap:anywhere}
.camp-isometric-piece small{font-size:9px;color:#b7d5b4;max-width:94px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.camp-isometric-piece em{font:9px system-ui;color:#e5b691}
.camp-person-piece{border:2px solid #82b79c;background:#182f29ec;min-width:53px;min-height:49px}
.camp-person-piece>strong{color:#a8ddbd}
.camp-person-piece.injured{border-color:#cf8468}
.camp-station-piece.uninstalled{border-style:dashed;opacity:.65;filter:saturate(.4)}
.camp-isometric-piece.moving{border:2px solid #ffe5a6;background:#8a6336;box-shadow:0 0 0 4px #f6ce7666,0 7px 14px #000a}
.camp-grid-spot{position:absolute;z-index:2;transform:translate(-50%,-50%);width:8.15%;height:8.2%;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);border:none;background:#7eaa7b81;transition:background .15s}
.camp-grid-spot.free:hover:not(:disabled){background:#fff0b4ca}
.camp-grid-spot.occupied{background:#2a292482;opacity:.6}
.camp-grid-spot:disabled{cursor:default;opacity:.5}
.camp-grid-spot.free:not(:disabled){outline:none;background:#b8d994a0}
.camp-placement-help{position:absolute;z-index:8;top:10px;right:10px;width:min(315px,45%);background:#17231df5;border:1px solid #d8b478;padding:13px;box-shadow:0 10px 30px #000a}
.camp-placement-help strong{color:#f4d499;font-size:12px;letter-spacing:.1em}
.camp-placement-help p{font-size:11px;margin:7px 0;color:#ddd2b8}
.camp-floating-panel{position:absolute;z-index:15;top:12px;right:12px;bottom:12px;width:min(470px,47%);min-height:0;display:flex;flex-direction:column;background:linear-gradient(#24362eea,#151d19fa);border:1px solid #d6aa69;box-shadow:0 15px 60px #000d;backdrop-filter:blur(7px);border-radius:5px}
.camp-floating-head{display:flex;align-items:center;justify-content:space-between;padding:14px;border-bottom:1px solid #6e785f;background:#28352af2}
.camp-floating-head .chapter{margin:0}
.camp-floating-head h2{font-size:26px}
.camp-floating-body{overflow:auto;min-height:0;flex:1;padding:15px;overscroll-behavior:contain}
.camp-world-foot{padding:11px;background:#19251e;border:1px solid #5b664f;display:flex;gap:8px;flex-wrap:wrap}
.camp-shortcuts{margin-top:8px;display:flex;gap:6px;overflow-x:auto;padding-bottom:8px;scrollbar-width:thin}
.camp-shortcut{white-space:nowrap;background:#28352a;border:1px solid #687659;border-radius:3px;color:#e2d4b4;padding:8px 13px;font-size:12px;min-height:38px}
.camp-shortcut.active{background:#a57c4b;color:#141c16;border-color:#efcc8d;font-weight:700}
.camp-world-tip{margin:3px 0 16px}
@media(max-width:800px){.camp-header{align-items:start;flex-direction:column}.camp-header .row{width:100%}.camp-world{overflow-x:auto}.camp-game-board{min-width:760px;width:760px;aspect-ratio:1000/570}.camp-floating-panel{position:fixed;z-index:45;left:8px;right:8px;bottom:8px;top:auto;width:auto;max-height:min(76vh,740px);height:70vh;background:#1d2822f9}.camp-floating-head{padding:10px}.camp-floating-head h2{font-size:21px}.camp-floating-body{padding:11px}.camp-placement-help{width:250px;right:6px;top:6px}.camp-world-foot{position:sticky;left:0}.camp-shortcuts{position:sticky;left:0}.camp-world-tip{position:sticky;left:0}}
@media(max-width:500px){.camp-game-board{min-width:700px;width:700px}.camp-isometric-piece{min-width:59px;min-height:46px;padding:4px}.camp-isometric-piece>strong{font-size:19px}.camp-isometric-piece>span{font-size:10px}.camp-isometric-piece small{font-size:8px}.camp-placement-help{width:225px;padding:8px}.camp-world-foot .token{font-size:10px}.camp-floating-panel{height:74vh}}


/* CAMP V2.1 • Illustration SVG, interaction directe et vraie adaptation mobile.
   Les anciennes cases-boutons / min-width 700px ont été remplacées. */
.camp-world{overflow:visible;max-width:100%;min-width:0}
.camp-game-board,.camp-board.camp-game-board{box-sizing:border-box;position:relative;width:100%;min-width:0;max-width:100%;
  height:auto;min-height:0;aspect-ratio:1000/570;overflow:hidden;isolation:isolate;
  background:#203e30;border:3px solid #897451;border-radius:6px;
  box-shadow:inset 0 0 40px #091a14,0 14px 25px #0008}
.camp-game-board .camp-scene-svg{inset:0;width:100%;height:100%;display:block;position:absolute;z-index:0;pointer-events:none}
.camp-game-board .camp-prop{position:absolute;z-index:calc(4 + var(--depth, 0));display:flex;align-items:center;justify-content:center;flex-direction:column;
  left:50%;top:50%;width:clamp(45px,8vw,89px);height:auto;min-width:0;min-height:0;max-width:none;max-height:none;
  box-sizing:border-box;padding:0;margin:0;border:0;background:transparent;border-radius:0;box-shadow:none;
  transform:translate(-50%,-61%);color:#f7ddb2;cursor:grab;text-align:center;
  -webkit-tap-highlight-color:transparent;touch-action:none;user-select:none}
.camp-game-board .camp-prop:active{cursor:grabbing}
.camp-game-board .camp-prop-svg{width:100%;height:auto;display:block;filter:drop-shadow(0 5px 3px #05140cbf);transition:filter .14s,transform .14s;pointer-events:none}
.camp-game-board .camp-prop:hover .camp-prop-svg,.camp-game-board .camp-prop:focus-visible .camp-prop-svg{filter:drop-shadow(0 0 7px #eacb73) drop-shadow(0 5px 3px #06190d);transform:translateY(-3px)}
.camp-game-board .camp-prop.picked .camp-prop-svg{filter:drop-shadow(0 0 8px #f5d48e) drop-shadow(0 0 5px #ffc464)}
.camp-game-board .camp-prop-name{display:block;position:relative;margin-top:-8px;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  color:#ffe8bc;text-shadow:0 2px 2px #09150d,0 -1px 2px #07120d,1px 1px #0c120f;
  font:700 clamp(9px,1.2vw,12px)/1.1 Georgia,serif;letter-spacing:.01em;pointer-events:none}
.camp-game-board .camp-prop.not-installed{opacity:.46;filter:grayscale(.7)}
.camp-game-board .camp-not-built{position:absolute;top:8%;right:8%;width:15px;height:15px;line-height:14px;
  border-radius:100%;font-size:14px;color:#f6e5bd;background:#263b30;border:1px solid #cfb87c;pointer-events:none}
.camp-game-board .camp-staff-dot,.camp-game-board .camp-work-marker{position:absolute;top:4%;left:7%;font-size:13px;color:#a1dfbb;text-shadow:0 0 7px #3c9d65;pointer-events:none}
.camp-game-board .camp-human{width:clamp(44px,7.2vw,77px)}
.camp-game-board .camp-human .camp-prop-svg{filter:drop-shadow(0 0 2px #b6dfb0) drop-shadow(0 4px 3px #04170f)}
.camp-game-board .camp-human.injured .camp-prop-svg{filter:drop-shadow(0 0 4px #d06b57) drop-shadow(0 4px 3px #05170f)}
.camp-terrain-hits{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
.camp-terrain-spot{fill:#ffffff;fill-opacity:.001;stroke:none;pointer-events:all;cursor:crosshair}
.camp-terrain-spot:hover,.camp-terrain-spot:focus-visible{fill:#fae6a2;fill-opacity:.27;stroke:#e5c479;stroke-width:2}
.camp-placement-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:9px 12px;border-left:3px solid #d5ad6c;
 background:#1c2d24;color:#d5d1b7;font-size:12px}
.camp-placement-toolbar b{color:#f0cf93}
.camp-placement-toolbar .btn{margin-left:auto}
.camp-world-foot{padding:9px 10px;display:flex;gap:14px;flex-wrap:wrap;justify-content:space-between;
 background:#17291f;color:#c8c8b1;border:1px solid #53654f;font-size:11px}
.camp-world-foot b{color:#e7d2ab}
.camp-header{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:10px}
.camp-header h1{font-size:clamp(23px,3vw,34px)}
.camp-header p{font-size:11px;margin-top:4px}
.camp-header>.row{flex-shrink:0}
.camp-shortcuts{margin-top:9px;gap:6px}
.camp-floating-panel{z-index:35;max-width:520px}
.camp-top .top-inner{min-height:52px;padding:7px 15px;gap:8px}
.camp-top .camp-top-brand{font:700 23px Georgia,serif;letter-spacing:.2em;color:#d9b87b}
.camp-top .camp-top-meta{color:#e5d5aa;font-size:12px;white-space:nowrap}
.camp-top .camp-top-actions{display:flex;gap:6px}
.camp-top .camp-top-actions .btn{padding:7px 10px;min-height:33px;font-size:11px}
.camp-top .camp-top-actions .btn:last-child{display:none}
@media(max-width:760px){
 .camp-top .top-inner{padding:5px 9px;display:flex;flex-wrap:nowrap;gap:6px}
 .camp-top .camp-top-brand{font-size:16px;letter-spacing:.14em}
 .camp-top .camp-top-meta{font-size:10px;line-height:1.2;text-align:center}
 .camp-top .camp-top-actions .btn{min-height:30px;padding:5px 6px;font-size:10px}
 .camp-top .camp-top-actions .btn:last-child{display:none}
 .camp-header{align-items:center;flex-direction:row;gap:7px;margin-bottom:6px}
 .camp-header h1{font-size:21px;line-height:1.1}
 .camp-header .kicker{font-size:9px}
 .camp-header p{display:none}
 .camp-header>.row{width:auto;gap:5px}
 .camp-header>.row .btn{padding:6px 9px;font-size:11px;min-height:32px}
 .camp-world{overflow:visible}
 .camp-game-board,.camp-board.camp-game-board{min-width:0!important;width:100%!important;aspect-ratio:auto;height:clamp(330px,94vw,470px);max-width:100%;min-height:0!important;border-width:2px}
 .camp-game-board .camp-prop{width:clamp(35px,10.8vw,54px);transform:translate(-50%,-61%)}
 .camp-game-board .camp-human{width:clamp(34px,10.5vw,50px)}
 .camp-game-board .camp-prop-name{margin-top:-5px;font-size:clamp(8px,2.3vw,10px);max-width:60px}
 .camp-game-board .camp-not-built{width:11px;height:11px;line-height:10px;font-size:11px;right:2px;top:2px}
 .camp-world-foot{gap:7px;font-size:10px;padding:7px}
 .camp-shortcuts{position:static;overflow-x:auto;left:auto;gap:5px;padding-bottom:5px}
 .camp-shortcut{font-size:11px;min-height:31px;padding:6px 8px}
 .camp-floating-panel{position:fixed;z-index:45;left:7px;right:7px;top:auto;bottom:7px;max-height:78dvh;height:min(78dvh,650px);width:auto;max-width:none}
 .camp-floating-head{padding:8px 10px}.camp-floating-head h2{font-size:20px}
 .camp-floating-body{padding:12px}
 .camp-world-tip{font-size:10px}
}
@media(max-width:390px){
 .camp-game-board,.camp-board.camp-game-board{height:350px}
 .camp-top .camp-top-actions .btn:nth-child(2){display:none}
 .camp-top .camp-top-brand{font-size:15px}
 .camp-game-board .camp-prop-name{font-size:8px;max-width:53px}
}


/* Fiche superposée hors du plateau SVG pour éviter les zones qui passent devant. */
.camp-overlay-scrim{position:absolute;inset:0;z-index:34;border:0;border-radius:6px;background:#06130d99;cursor:pointer}
.camp-world>.camp-floating-panel{z-index:35;box-shadow:0 20px 60px #000e;border:1px solid #dfb778}
.camp-prop.dragging .camp-prop-svg{filter:drop-shadow(0 0 9px #ffd490) drop-shadow(0 7px 4px #000);transform:scale(1.07)}
@media(max-width:760px){
 .camp-overlay-scrim{position:fixed;inset:0;z-index:44;background:#040a07cd}
 .camp-world>.camp-floating-panel{position:fixed;z-index:45;left:7px;right:7px;bottom:7px;top:auto;width:auto;height:min(78dvh,650px);max-height:78dvh}
}


/* ERGONOMIE V3 : camp en vrai plan 2D, pas d'isométrie ni faux mobilier. */
.camp-world{max-width:100%;position:relative;overflow:visible}
.camp-board.camp-game-board,.camp-game-board{
 box-sizing:border-box;position:relative;width:min(100%,600px)!important;height:auto!important;
 min-width:0!important;min-height:0!important;aspect-ratio:1!important;
 max-width:600px;border-radius:50%;margin:8px auto 13px;overflow:hidden;
 border:0!important;box-shadow:0 0 0 2px #b5a77a,0 15px 42px #071711b3;
 background:#304d3d
}
.camp-game-board .camp-scene-svg{width:100%;height:100%;inset:0;object-fit:contain;position:absolute}
.camp-game-board .camp-prop{
 position:absolute;transform:translate(-50%,-45%)!important;min-width:0!important;
 width:clamp(42px,9vw,64px)!important;min-height:42px!important;height:auto!important;
 z-index:5;background:transparent!important;border:0!important;box-shadow:none!important;
 color:#f5e8c2;touch-action:none;cursor:grab;display:flex;align-items:center;flex-direction:column;
 gap:0;overflow:visible;padding:0!important
}
.camp-game-board .camp-prop-svg{width:100%;height:auto;pointer-events:none;filter:drop-shadow(0 3px 3px #101b11dc)}
.camp-game-board .camp-prop-name{
 display:block;position:relative;font:700 clamp(9px,1.15vw,12px)/1.1 system-ui;
 margin:0!important;color:#fcf0c7;text-align:center;white-space:nowrap;
 text-shadow:0 1px 4px #06170e,0 -1px 2px #06170e;max-width:84px;
 overflow:visible;text-overflow:clip
}
.camp-game-board .camp-prop.picked .camp-prop-svg{filter:drop-shadow(0 0 8px #fff2aa) drop-shadow(0 0 5px #f6ad48)}
.camp-game-board .camp-staff-dot,.camp-game-board .camp-work-marker{font-size:11px}
.camp-terrain-hits{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}
.camp-terrain-spot{fill:#bff6b3;fill-opacity:.07;stroke:#f8ecaa;stroke-opacity:.8;stroke-width:2;pointer-events:all}
.camp-terrain-spot:active,.camp-terrain-spot:hover{fill-opacity:.28}
.camp-header{margin-bottom:7px;gap:10px;display:flex;justify-content:space-between;align-items:center}
.camp-header h1{font-size:clamp(23px,3vw,32px)}
.camp-header .kicker{margin-bottom:3px}
.camp-hud{display:flex;gap:15px;align-items:center;justify-content:center;flex-wrap:wrap;
 color:#c4c2a7;font-size:11px;padding:7px 6px 10px}
.camp-hud-icons{display:flex;gap:5px;margin-left:auto}
.camp-hud-icons button{background:#243b30;border:1px solid #5b745d;color:#e1c895;
 border-radius:6px;min-width:48px;min-height:43px;display:grid;justify-items:center;
 align-items:center;font-size:18px;padding:3px 8px}
.camp-hud-icons small{display:block;font:10px system-ui;color:#dcd5b7}
.camp-shortcuts,.camp-world-foot,.camp-world-tip{display:none!important}
.camp-placement-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;
 background:#253b2e;color:#e1d5b4;padding:9px 12px;font-size:12px;border:1px solid #7d815d}
.camp-placement-toolbar strong{color:#f0ca86}
.camp-placement-toolbar span{flex:1}
.camp-floating-panel{max-width:520px}
.camp-overlay-scrim{z-index:34}
.footer{display:none}
@media(max-width:620px){
 .camp-game-board,.camp-board.camp-game-board{width:min(100%,94vw)!important;height:auto!important;aspect-ratio:1!important;margin:10px auto}
 .camp-game-board .camp-prop{width:clamp(38px,11vw,50px)!important;min-height:38px!important}
 .camp-game-board .camp-prop-name{font-size:9px!important;max-width:58px}
 .camp-header{flex-direction:row}
 .camp-hud{gap:8px;font-size:10px;justify-content:space-between}
 .camp-hud-icons{margin-left:0}
 .camp-hud-icons button{min-width:42px;padding:3px 6px}
 .camp-floating-panel{position:fixed;top:auto;bottom:8px;left:8px;right:8px;
   width:auto;max-height:78dvh;height:min(72dvh,650px)}
}
/* Ville : une carte seule, icônes sans chevauchement, puis fiche par-dessus. */
.city-overview{width:min(100%,850px);margin:0 auto}
.city-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 12px}
.city-topline h1{font:clamp(29px,4vw,44px)/1.1 Georgia;color:#ddc08a;letter-spacing:.14em}
.city-map-stage{position:relative;aspect-ratio:800/580;width:100%;background:#8d8564;
 border:5px solid #9e855e;box-shadow:inset 0 0 25px #0009,0 15px 35px #0008;overflow:hidden}
.city-map-stage>svg{position:absolute;inset:0;width:100%;height:100%}
.city-map-stage>.city-place{position:absolute;transform:translate(-50%,-50%);
 z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;
 width:clamp(66px,11vw,93px);height:clamp(67px,10vw,88px);
 min-width:0!important;padding:6px 5px!important;border:2px solid #bd9a66;
 border-radius:7px;background:#1d2c25eb;color:#f8e7c8;box-shadow:0 6px 15px #0008;
 text-align:center;outline:0;font:12px/1.1 system-ui;gap:6px}
.city-map-stage>.city-place i{font-size:clamp(23px,3.2vw,31px);margin:0}
.city-map-stage>.city-place .city-place-label{font-size:clamp(10px,1.4vw,12px);font-weight:650;white-space:nowrap}
.city-map-stage>.city-place:active,.city-map-stage>.city-place:hover{background:#785d3d;border-color:#ffdda1}
.city-map-hint{text-align:center;font-size:11px;color:#aaaf9b;margin:10px 0}
@media(max-width:600px){
 .city-map-stage{aspect-ratio:1/1.23;max-height:70dvh}
 .city-map-stage>.city-place{width:clamp(60px,19vw,74px);height:clamp(66px,20vw,79px);gap:3px}
 .city-map-stage>.city-place i{font-size:25px}
 .city-map-stage>.city-place .city-place-label{font-size:10px}

 .city-topline{margin:2px 0 9px}
}

/* Navigation clavier : focus contrasté sans effet parasite au toucher. */
.city-map-stage>.city-place:focus-visible,
.city-location-close:focus-visible,
.city-location-actions .btn:focus-visible,
.camp-hud-icons button:focus-visible,
.camp-game-board .camp-prop:focus-visible,
.camp-floating-panel button:focus-visible{
 outline:3px solid #ffda91!important;
 outline-offset:3px;
 box-shadow:0 0 0 5px #102015!important;
}



/* Combat V4 : mini-cartes B2-A, pictogrammes SVG, détail de résolution au toucher */
.battle-tempo-placement{margin-top:12px}
.battle-tempo{overflow:hidden;padding:12px 14px}
.battle-tempo-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;font-size:12px}
.battle-tempo-heading b{letter-spacing:.14em;color:#ebc68c}
.battle-tempo-heading span{color:#cbc3aa;font-variant-numeric:tabular-nums}
.battle-tempo-ruler{height:5px;margin:12px 3px 5px;background:#3c473a;border-radius:6px;overflow:hidden}
.battle-tempo-progress{height:100%;background:linear-gradient(90deg,#6b9b83,#e3c088);transform-origin:left;animation:tempo-sweep 1.65s ease-out both}
.battle-tempo-ticks{display:flex;justify-content:space-between;font-size:10px;color:#aeb6a5;font-variant-numeric:tabular-nums}
.battle-tempo-events{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;padding:12px 0 6px;scrollbar-width:thin;overscroll-behavior-x:contain}
.battle-tempo-event{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:5px;flex:0 0 99px;min-width:0;min-height:109px;scroll-snap-align:start;padding:8px 5px 9px;text-align:center;color:#eee4cd;font:inherit;background:#20342b;border:1px solid #5d806b;border-radius:7px;animation:tempo-appear .34s ease both;animation-delay:var(--tempo-delay,0s);transition:background .18s,border-color .18s}
.battle-tempo-event:hover{background:#2e4839;border-color:#c1a778}
.battle-tempo-event:focus-visible{outline:2px solid #ffda91;outline-offset:2px}
.battle-tempo-event.enemy{background:#362923;border-color:#956453}
.battle-tempo-event.enemy:hover{background:#4b3028;border-color:#d89a76}
.battle-tempo-event.system{background:#2b3029;border-color:#727a6a}
.battle-tempo-event.hit{border-top:3px solid #ce8b66}
.battle-tempo-event.miss{border-top:3px solid #99a6a9}
.battle-tempo-event.recovery{border-top:3px solid #77a38d}
.battle-tempo-stamp{font-size:10px;line-height:1.25;color:#d8d0ae;white-space:nowrap;font-variant-numeric:tabular-nums}
.battle-tempo-symbol{position:relative;display:flex;justify-content:center;align-items:center;height:38px;width:56px;color:#f0c686}
.battle-tempo-event.ally .battle-tempo-symbol{color:#a4d0b7}
.battle-tempo-event.enemy .battle-tempo-symbol{color:#e6b08e}
.battle-tempo-event.recovery .battle-tempo-symbol{color:#a7d1b3}
.battle-tempo-event.miss .battle-tempo-symbol{color:#bbc4c2}
.battle-tempo-icon{display:block;width:32px;height:32px}
.battle-tempo-glyph{font:36px/1 Georgia,'Times New Roman',serif;letter-spacing:-.04em}
.battle-tempo-result{position:absolute;bottom:-2px;right:1px;display:grid;place-items:center;width:18px;height:18px;border-radius:100%;color:#1d251e;background:#a6cfa6;font:700 14px/1 system-ui,sans-serif;border:1px solid #13251c}
.battle-tempo-result.failed{background:#c28a87}
.battle-tempo-value{display:block;font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap}
.battle-tempo-event.hit .battle-tempo-value{color:#f0a991}
.battle-tempo-event.recovery .battle-tempo-value{color:#b5d6ad}
.battle-tempo-actor{display:block;max-width:100%;font-size:10px;line-height:1.25;overflow-wrap:anywhere;color:#d5d3bf}
.battle-tempo-quiet{font-size:12px;color:var(--muted);padding:4px}
.battle-tempo-modal-head{display:flex;align-items:center;gap:13px;padding:12px;border:1px solid #616e59;border-radius:7px;background:#26352d;margin-top:12px}
.battle-tempo-modal-head .battle-tempo-icon{width:40px;height:40px;color:#e4c181}
.battle-tempo-modal-head .battle-tempo-glyph{color:#e4c181}
.battle-tempo-modal-head p{font-size:13px;color:#ddc8a0}
.battle-tempo-log{font-size:14px;line-height:1.55;margin:7px 0}
.battle-tempo-metadata{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.battle-tempo-metadata span{font-size:11px;border:1px solid #65715e;border-radius:5px;background:#28372d;padding:4px 7px}
.battle-tempo-calculations{display:grid;gap:6px;margin:12px 0;padding:12px;background:#151f1a;border:1px solid #516351;border-radius:7px;font-size:12px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.battle-tempo-calculations>div{border-bottom:1px solid #35463a;padding-bottom:6px}
.battle-tempo-calculations>div:last-child{border-bottom:0;padding-bottom:0}
.battle-tempo-stats{display:grid;gap:5px;padding:12px;margin-top:9px;background:#202e26;border:1px solid #4c634f;border-radius:6px;font-size:12px;font-variant-numeric:tabular-nums}
.battle-tempo-stats b{font-size:13px;color:#e7c791}
@keyframes tempo-sweep{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes tempo-appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.battle-tactics{grid-template-columns:minmax(0,1fr)}
.battle-unit-middle{display:flex;flex-direction:column;gap:7px;align-items:center}
.battle-unit .battle-figure{width:100%;min-width:0}
.battle-unit .battle-body{width:100%;max-width:142px;max-height:none}
.battle-equipment-button{width:min(100%,145px);min-height:35px;font-size:12px}
.battle-unit-title{min-height:30px}
.battle-unit .battle-wound-header{display:block}
.battle-unit .battle-wounds{margin-top:7px}
.battle-injury-mark{filter:drop-shadow(0 1px 2px #100)}
.battle-target-figure{height:265px}
.battle-target-figure .battle-body{max-height:none}
.battle-aim{padding-bottom:7px}
.battle-surrender{margin-top:18px}
@media(max-width:630px){
 .battle-tempo{padding:10px}
 .battle-tempo-event{flex-basis:96px;min-height:105px}
 .battle-unit .battle-body{max-height:190px}
 .battle-unit-title b{font-size:15px}
 .battle-equipment-button{font-size:11px;min-height:33px}
 .battle-target-figure{height:245px}
}
@media(prefers-reduced-motion:reduce){.battle-tempo-progress,.battle-tempo-event{animation:none}}

/* Combat V4.1 : priorité aux événements et traçabilité de l'impact */
.battle-tempo{scroll-margin-top:88px}
.battle-tempo-heading{margin-bottom:10px}
.battle-tempo-event.move.back .battle-tempo-icon{transform:scaleX(-1)}
.battle-tempo-section{margin:14px 0 0;padding:13px 12px;border:1px solid #536650;border-radius:8px;background:#1c2a22}
.battle-tempo-section h3{font:600 14px/1.4 system-ui,sans-serif;letter-spacing:.02em;color:#e6c88f;margin-bottom:11px}
.battle-tempo-detail-line{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:7px 0;border-bottom:1px solid #3b493c;font-size:12px;font-variant-numeric:tabular-nums}
.battle-tempo-detail-line span{color:#c5c8b5}
.battle-tempo-detail-line strong{font-weight:700;color:#e2dac7;text-align:right;max-width:55%;overflow-wrap:anywhere}
.battle-tempo-detail-total{display:flex;justify-content:space-between;gap:12px;margin-top:11px;padding:10px 8px;border-top:1px solid #ab9667;color:#efddb5;font-size:13px;font-variant-numeric:tabular-nums}
.battle-tempo-detail-total b{font-size:16px;text-align:right;white-space:nowrap}
.battle-tempo-equation{text-align:center;background:#142019;border:1px solid #54664f;border-radius:7px;padding:13px 6px;font-variant-numeric:tabular-nums}
.battle-tempo-equation b{color:#f1c987;font-size:21px}
.battle-tempo-equation small{display:block;color:#b1bdab;font-size:10px;line-height:1.5;margin-top:6px}
.battle-tempo-verdict{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 8px;margin-top:10px;background:#2a372b;border-radius:7px;font-variant-numeric:tabular-nums}
.battle-tempo-verdict b{font-size:20px;color:#f4dfbb}
.battle-tempo-verdict strong{font-size:13px;letter-spacing:.05em}
.battle-tempo-verdict strong.yes{color:#a7d6a8}
.battle-tempo-verdict strong.no{color:#e9a99d}
.battle-tempo-gear-name{font-weight:700;color:#e6dbba;font-size:13px;padding-bottom:5px}
.battle-tempo-small{color:#bfc9b7;font-size:12px;line-height:1.55}
@media(max-width:630px){
 .battle-tempo{scroll-margin-top:72px}
 .modal:has(.battle-tempo-section){padding:14px;max-height:92dvh}
 .battle-tempo-section{padding:11px 10px}
 .battle-tempo-detail-line strong{max-width:50%}
 .battle-surrender-toggle{width:100%;max-width:230px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}


/* VEYRE 0.12 : les lieux sont des écrans dédiés, jamais des fenêtres sur la carte */
.place-top{background:linear-gradient(180deg,#171d1a,#19241d);border-bottom:1px solid #756345}
.place-top .top-inner{max-width:1120px;min-height:68px;gap:22px}
.place-brand{flex:0 0 auto;border:0;background:none;color:#e5c18d;text-align:left;font:27px/1 Georgia,serif;letter-spacing:.2em;padding:2px}
.place-brand small{display:block;color:#c1a37e;font:9px/1.5 system-ui,sans-serif;letter-spacing:.15em;margin-top:5px}
.place-header-label{color:#e0cda8;font:18px/1.2 Georgia,serif;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.place-header-nav{display:flex;align-items:center;gap:6px;margin-left:auto;white-space:nowrap}
.place-header-nav .btn{min-height:36px;font-size:12px;border-color:#665f4c}
.place-screen{width:min(100%,1080px);margin:0 auto;display:grid;gap:23px;--place-accent:#d6b27c}
.place-breadcrumb{min-height:35px;display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;border-bottom:1px solid #485346;padding-bottom:12px}
.place-return{display:flex;align-items:center;gap:10px;background:none;border:1px solid #877351;border-radius:5px;color:#ecd0a1;padding:8px 12px;min-height:40px;font-size:12px;font-weight:600}
.place-return span{font-size:19px;line-height:1}
.place-return:hover{background:#3b4033;border-color:#d9b681}
.place-breadcrumb-trail{font-size:10px;letter-spacing:.13em;color:#a8a995;flex:1;text-align:center}
.place-breadcrumb-trail span{color:#776f5b}
.place-breadcrumb-time{font:12px/1.2 system-ui,sans-serif;color:#d9c79c;font-variant-numeric:tabular-nums}
.place-hero{position:relative;isolation:isolate;min-height:330px;aspect-ratio:1000/418;overflow:hidden;border:1px solid #a28258;border-radius:9px;background:#242d27;box-shadow:0 14px 48px #0008}
.place-hero .place-artwork{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;filter:brightness(1.35) saturate(1.23)}
.place-hero-scrim{position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,17,16,.42) 0%,rgba(13,19,16,.12) 46%,transparent 78%),linear-gradient(0deg,rgba(12,17,15,.83) 0%,rgba(14,17,15,.10) 42%,rgba(0,0,0,.04) 100%)}
.place-hero-copy{position:absolute;z-index:1;left:clamp(20px,5.2vw,58px);bottom:clamp(24px,5.6vw,60px);width:min(78%,710px);text-shadow:0 2px 18px #060805}
.place-hero-kicker{font:700 10px/1.4 system-ui,sans-serif;letter-spacing:.22em;color:#ead0a1;margin-bottom:17px}
.place-hero-kicker span{margin:0 8px;color:#b8915f}
.place-hero h1{font:normal clamp(30px,5.5vw,61px)/1.08 Georgia,serif;letter-spacing:.025em;color:#fff0d4;text-wrap:balance;margin-bottom:12px}
.place-hero-copy p{font:italic clamp(14px,1.8vw,20px)/1.5 Georgia,serif;color:#e7cfaa}
.place-hero-corner{position:absolute;top:17px;right:26px;font:26px/1 Georgia,serif;color:#e8c28d;border:1px solid #e8c28d70;padding:8px 13px;opacity:.72;z-index:1}
.place-intro{display:grid;grid-template-columns:180px minmax(0,1fr);gap:25px;padding:21px 29px 25px;border:1px solid #4c5848;border-left:3px solid #ac8b59;border-radius:7px;background:linear-gradient(115deg,#243027,#1d2721);box-shadow:0 7px 25px #0003}
.place-section-index{font:700 10px/1.4 system-ui,sans-serif;color:#caa979;letter-spacing:.15em}
.place-section-index span{font:normal 20px/1 Georgia,serif;color:#e0c48d;vertical-align:middle;margin-right:11px;letter-spacing:0}
.place-intro .place-section-index{padding-top:5px}
.place-intro-body{display:flex;align-items:center;justify-content:space-between;gap:15px}
.place-intro-body p{font:16px/1.8 Georgia,serif;color:#dedac7;max-width:770px}
.place-intro-ornament{color:#b79665;font:39px/1 Georgia,serif;opacity:.43;align-self:flex-start}
.place-block{padding-top:8px;min-width:0}
.place-block-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:17px;border-bottom:1px solid #4c574b;padding-bottom:12px}
.place-block-head h2{font:normal clamp(23px,3vw,34px)/1.2 Georgia,serif;color:#e8dfc9;margin-top:7px}
.place-block-head>small{font-size:11px;letter-spacing:.1em;color:#b9bca8}
.place-people-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:13px}
.place-person-card{display:flex;align-items:stretch;gap:17px;min-height:145px;text-align:left;border:1px solid #63705d;border-radius:8px;background:linear-gradient(145deg,#2b372c,#1c2620);color:#e7ddc4;overflow:hidden;padding:12px;box-shadow:0 8px 22px #0003;transition:background .2s,border-color .2s,transform .2s}
.place-person-card:hover{background:linear-gradient(145deg,#3b4937,#242f27);border-color:#c9a978;transform:translateY(-1px)}
.place-person-card:focus-visible,.place-action-tile:focus-visible,.place-return:focus-visible{outline:3px solid #ffd793;outline-offset:3px}
.place-person-portrait{flex:0 0 108px;min-width:0;max-width:108px;align-self:stretch;background:#28372f;border:1px solid #87745a;border-radius:5px;overflow:hidden}
.place-portrait-svg{display:block;width:100%;height:100%;min-height:128px}
.place-person-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-width:0;padding:3px 0}
.place-person-kind{color:#c3a67a;font:700 9px/1.5 system-ui,sans-serif;letter-spacing:.14em}
.place-person-copy strong{font:normal clamp(19px,2.6vw,24px)/1.18 Georgia,serif;color:#efdfc2}
.place-person-copy>span:not(.place-person-talk){font-size:12px;color:#bcbda9}
.place-person-talk{margin-top:10px;font-size:12px;font-weight:700;color:#dfbf8c;display:flex;align-items:center;gap:8px}
.place-person-talk span{font-size:19px;line-height:1}
.place-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.place-action-tile{display:flex;align-items:center;gap:15px;padding:15px 17px;border:1px solid #68735f;border-radius:8px;color:#e5dec8;background:linear-gradient(125deg,#303b30,#202c24);min-height:91px;text-align:left;transition:background .2s,border-color .2s,transform .15s}
.place-action-tile:hover,.place-action-tile.active{background:linear-gradient(130deg,#464a35,#2b392a);border-color:#c1a475}
.place-action-tile:active{transform:scale(.99)}
.place-action-symbol{width:53px;height:53px;flex:0 0 53px;display:grid;place-items:center;border-radius:7px;background:#161f1a;border:1px solid #6a745e;color:#e7c58d;font:29px/1 Georgia,serif}
.place-action-copy{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.place-action-copy strong{font-size:14px;font-weight:700;line-height:1.2;color:#f0e2c5}
.place-action-copy small{font-size:11px;line-height:1.4;color:#b7bba8}
.place-action-chevron{font-size:25px;color:#cba875;line-height:1;flex:0 0 auto}
.place-services{padding:18px 22px 25px;background:linear-gradient(155deg,#202d24,#1a231e);border:1px solid #525d4d;border-radius:8px;box-shadow:0 12px 28px #0004}
.place-services .place-block-head{margin-bottom:18px}
.place-service-content{min-width:0}
.place-service-content .grid2{grid-template-columns:minmax(0,1.3fr) minmax(220px,1fr)}
.place-service-content .panel{box-shadow:0 6px 24px #0004}
.place-service-content>.row:first-child{margin-top:7px}
.place-hero,.place-intro,.place-people-grid,.place-action-grid{animation:place-fade-in .4s ease-out both}
@keyframes place-fade-in{from{opacity:.5;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:750px){
 .place-top .top-inner{padding:9px 12px;min-height:63px;gap:9px;flex-wrap:nowrap}
 .place-brand{font-size:22px}
 .place-brand small{font-size:7px;letter-spacing:.08em}
 .place-header-label{display:none}
 .place-header-nav{gap:4px}
 .place-header-nav .btn{min-height:33px;padding:5px 8px;font-size:11px}
 .place-screen{gap:19px}
 .place-breadcrumb{gap:6px;padding-bottom:9px}
 .place-breadcrumb-trail{display:none}
 .place-breadcrumb-time{font-size:11px}
 .place-return{min-height:37px;font-size:11px;padding:6px 9px}
 .place-hero{min-height:285px;aspect-ratio:auto;border-radius:6px}
 .place-hero .place-artwork{height:100%}
 .place-hero-scrim{background:linear-gradient(0deg,rgba(11,17,14,.79),rgba(11,17,14,.03) 88%),linear-gradient(90deg,rgba(9,15,13,.23),transparent)}
 .place-hero-copy{left:18px;bottom:23px;width:88%}
 .place-hero-kicker{font-size:8px;letter-spacing:.11em;margin-bottom:11px}
 .place-hero-kicker span{margin:0 4px}
 .place-hero h1{font-size:clamp(30px,9vw,43px);margin-bottom:8px}
 .place-hero-copy p{font-size:15px}
 .place-hero-corner{top:11px;right:13px;font-size:17px;padding:5px 9px}
 .place-intro{grid-template-columns:1fr;gap:11px;padding:17px 18px}
 .place-intro-body p{font-size:15px;line-height:1.65}
 .place-intro-ornament{display:none}
 .place-block-head{margin-bottom:12px;align-items:center}
 .place-block-head h2{font-size:24px;margin-top:4px}
 .place-person-card{min-height:122px;gap:13px;padding:9px}
 .place-person-portrait{flex-basis:89px;max-width:89px}
 .place-portrait-svg{min-height:109px}
 .place-action-grid{gap:8px}
 .place-action-tile{min-height:98px;gap:8px;padding:10px 8px;align-items:flex-start}
 .place-action-symbol{width:36px;height:36px;flex-basis:36px;font-size:23px}
 .place-action-copy strong{font-size:12px}
 .place-action-copy small{font-size:10px}
 .place-action-chevron{display:none}
 .place-services{padding:14px 12px 22px}
 .place-service-content .grid2{grid-template-columns:1fr}
}
@media(max-width:350px){
 .place-header-nav .btn{font-size:10px;padding:5px 6px}
 .place-action-grid{grid-template-columns:1fr}
 .place-action-tile{min-height:67px;align-items:center}
}
@media(prefers-reduced-motion:reduce){.place-hero,.place-intro,.place-people-grid,.place-action-grid{animation:none}}

.place-services{scroll-margin-top:92px}
@media(max-width:750px){.place-services{scroll-margin-top:72px}}


/* PROLOGUE V1 · Le Registre des Cendres : histoire intégrée dans les écrans des lieux */
.story-scene{position:relative;min-width:0;border:1px solid #92765d;border-left:4px solid #c29a69;border-radius:9px;padding:clamp(17px,3.5vw,33px);background:
radial-gradient(ellipse at 95% 3%,rgba(127,76,51,.17),transparent 37%),
linear-gradient(146deg,#302b27,#202723 48%,#222721);box-shadow:0 17px 45px #0008;isolation:isolate}
.story-scene::before{content:"";position:absolute;inset:9px;pointer-events:none;border:1px solid #a18c6544;border-radius:4px}
.story-kicker{position:relative;z-index:1;font:700 10px/1.5 system-ui,sans-serif;letter-spacing:.2em;color:#e1bf86;text-transform:uppercase;margin-bottom:11px}
.story-scene h2{font:normal clamp(25px,4vw,39px)/1.15 Georgia,serif;color:#f0d9b0;letter-spacing:.015em;margin-bottom:20px}
.story-prose{max-width:74ch;display:grid;gap:17px;padding:1px 0 9px}
.story-prose p{font:clamp(15px,1.7vw,18px)/1.78 Georgia,serif;color:#e0dcc9;text-wrap:pretty}
.story-prose p:first-child:first-letter{font-size:1.5em;line-height:0;color:#ecc68f}
.story-prose .story-branch{color:#dec493;font-style:italic;padding:12px 16px;margin-top:3px;border-left:2px solid #ac865f;background:#ffffff08}
.story-choice-title{font:700 11px/1.6 system-ui,sans-serif;letter-spacing:.14em;color:#d9bd8a;text-transform:uppercase;margin:19px 0 9px}
.story-choices{display:grid;gap:9px;max-width:790px}
.story-choice{display:flex;align-items:center;gap:13px;min-height:57px;padding:12px 17px;background:#19251e;border:1px solid #64745a;border-radius:6px;color:#ece3cc;text-align:left;transition:background .16s,border-color .16s,transform .16s}
.story-choice>span{align-self:center;font:18px/1 Georgia,serif;color:#b49d75;min-width:27px}
.story-choice b{flex:1;font:500 14px/1.5 system-ui,sans-serif}
.story-choice i{font:26px/1 Georgia,serif;color:#d2b482}
.story-choice:hover{background:#314033;border-color:#e1bc7e;transform:translateX(2px)}
.story-choice:focus-visible,.story-continue:focus-visible{outline:3px solid #f3c98b;outline-offset:3px}
.story-result{padding:16px 19px;margin-top:20px;background:#3c302b;border:1px solid #b68b60;border-radius:6px}
.story-result p{font:16px/1.74 Georgia,serif;color:#e7d4b7;max-width:74ch}
.story-continue{display:flex;justify-content:center;align-items:center;gap:15px;min-height:45px;padding:11px 19px;margin-top:13px;background:linear-gradient(125deg,#cda26a,#997249);border:1px solid #e1c28e;border-radius:6px;color:#241b13;font-weight:700;font-size:13px}
.story-continue:hover{filter:brightness(1.1)}
.story-continue span{font:25px/1 Georgia,serif}
.story-ambient{padding:17px 20px;border-radius:7px;background:linear-gradient(115deg,#273128,#212c26);border:1px solid #4f644f;border-left:3px solid #917e5d}
.story-ambient>p{font:14px/1.7 Georgia,serif;color:#cdcbb4}
.story-notebook{margin-top:17px;border-top:1px solid #69715c66;padding-top:13px}
.story-notebook>summary{cursor:pointer;color:#bda981;font-size:12px;font-weight:600;letter-spacing:.02em}
.story-notebook>summary span{color:#d1c4a7;font-size:11px;margin-left:8px}
.story-notebook-items{padding:12px 0 0;display:grid;gap:9px}
.story-notebook-items article{display:grid;gap:5px;border-left:2px solid #ae8e69;padding:8px 12px;background:#ffffff07}
.story-notebook-items article b{font:normal 17px Georgia,serif;color:#dec69f}
.story-notebook-items article span,.story-notebook-items p{font-size:12px;line-height:1.6;color:#c7c6af}
.story-talk{display:grid;gap:9px;max-width:75ch}
.story-talk h3{font:normal 24px Georgia,serif;color:#e6d5b6}
.story-talk p{font:16px/1.8 Georgia,serif;color:#dfd6c1}
.city-story-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#e0c08d;font:700 10px/1.5 system-ui,sans-serif;letter-spacing:.11em;border-top:1px solid #65533e6e;padding:10px 4px;margin-top:8px}
.city-story-caption span{font-weight:500;letter-spacing:0;color:#bfc5ad}
.city-overview>.story-notebook{max-width:850px;margin-top:14px;padding:12px 16px;background:#1d2b22;border:1px solid #475949;border-radius:6px}
.city-story-marker{position:absolute;top:-10px;right:-7px;z-index:3;min-width:25px;height:25px;display:grid;place-items:center;background:#b78953;border:1px solid #ffd89b;border-radius:50%;color:#271d15;font-size:15px;line-height:1;box-shadow:0 2px 10px #0008}
.city-map-stage>.city-place.story-available{box-shadow:0 0 0 2px #b58a50,0 0 21px #d4a15e6b,0 6px 15px #0008}
.place-screen.story-stage-1 .place-hero-scrim{background:linear-gradient(0deg,#171c18f0,transparent 77%),linear-gradient(90deg,#14130fcc,transparent 76%)}
.place-screen.story-stage-2 .place-hero-scrim{background:linear-gradient(0deg,#1b1818f0,transparent 80%),linear-gradient(90deg,#251614ce,transparent 72%)}
.place-screen.story-stage-3 .place-hero-scrim{background:linear-gradient(0deg,#17191bf0,transparent 80%),linear-gradient(90deg,#1a151acd,transparent 72%)}
.place-screen.story-stage-2 .place-intro{border-left-color:#ad6955}
.place-screen.story-stage-3 .place-intro{border-left-color:#b58f73}
.place-screen.story-stage-2 .place-hero{border-color:#b48573}
.place-screen.story-stage-3 .place-hero{border-color:#aa8c81}
@media(max-width:650px){
 .story-scene{padding:17px 15px}
 .story-scene::before{inset:6px}
 .story-scene h2{font-size:27px;margin-bottom:14px}
 .story-prose{gap:14px}
 .story-prose p{font-size:16px;line-height:1.69}
 .story-choice{gap:10px;min-height:59px;padding:11px 10px}
 .story-choice b{font-size:12px;line-height:1.5}
 .story-choice>span{min-width:23px}
 .story-ambient{padding:15px}
 .city-story-caption{font-size:9px}
}
@media(prefers-reduced-motion:reduce){.story-choice{transition:none}}

.place-story-hint{position:absolute;z-index:2;top:21px;left:clamp(20px,5.2vw,58px);padding:7px 9px;border:1px solid #d1a46c;background:#201b19bb;color:#f0cb94;font:700 9px/1.2 system-ui,sans-serif;letter-spacing:.14em}
@media(max-width:750px){.place-story-hint{left:18px;top:14px;font-size:8px}}

/* Narration V2 : la scène surgit devant le lieu puis se retire, pas de texte à trouver dans la page. */
.story-overlay{position:fixed;inset:0;z-index:110;display:flex;align-items:center;justify-content:center;padding:clamp(10px,3vw,28px);isolation:isolate;overscroll-behavior:contain}
.story-overlay-shade{position:absolute;inset:0;background:rgba(9,12,11,.79);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.story-dialog{position:relative;display:flex;flex-direction:column;gap:13px;max-height:min(92dvh,830px);width:min(100%,750px);overflow-y:auto;overscroll-behavior:contain;padding:clamp(19px,3.8vw,34px);border:1px solid #c6a379;border-radius:10px;color:#eadcc4;background:radial-gradient(ellipse at top right,#543c2f 0%,transparent 55%),linear-gradient(155deg,#302b26,#18241e 88%);box-shadow:0 25px 100px #000e, inset 0 0 0 5px #231e1a;animation:story-dialog-entrance .36s ease-out both}
.story-dialog-art{height:clamp(100px,20vh,160px);flex:0 0 auto;position:relative;overflow:hidden;border:1px solid #9c815e;border-radius:6px;background:#222b25}
.story-dialog-art .place-artwork{width:100%;height:100%;object-fit:cover;display:block}
.story-dialog-art:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#1e2520aa,transparent 75%);pointer-events:none}
.story-dialog-top{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:3px}
.story-dialog-kicker,.story-dialog-count{font:700 10px/1.4 system-ui,sans-serif;letter-spacing:.16em;color:#e3c28c}
.story-dialog-count{font-variant-numeric:tabular-nums;color:#cec6b1}
.story-dialog h2{font:normal clamp(27px,4vw,39px)/1.15 Georgia,serif;color:#ffe8c1;text-wrap:balance}
.story-dialog-text{min-height:105px;display:flex;align-items:center;padding:2px 0 14px}
.story-dialog-text p{font:clamp(17px,2vw,20px)/1.72 Georgia,serif;color:#e6decb;text-wrap:pretty;max-width:64ch}
.story-dialog-text p:first-letter{color:#e8c08c;font-size:1.3em}
.story-dialog-choices{display:grid;gap:9px;border-top:1px solid #76634d;padding-top:8px}
.story-dialog-choices .story-choice{background:#1b281f;border-color:#8d7d60;min-height:58px}
.story-dialog-feedback{display:grid;gap:8px;padding:14px 16px;background:#263b2e;border:1px solid #7b9b76;border-radius:7px}
.story-dialog-feedback-label{color:#bbd1a8;font:700 10px/1.3 system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase}
.story-dialog-feedback-value{font:italic 15px/1.65 Georgia,serif;color:#e2d5b8}
.story-dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding-top:13px;margin-top:auto;border-top:1px solid #78664f}
.story-dialog-place{font:11px/1.5 system-ui,sans-serif;color:#acac99}
.story-dialog-next{margin-left:auto;display:flex;gap:12px;align-items:center;justify-content:center;border:1px solid #e6c08d;border-radius:6px;padding:11px 17px;min-height:46px;background:linear-gradient(135deg,#d5aa75,#9b744b);color:#211b14;font:700 13px/1.3 system-ui,sans-serif}
.story-dialog-next span{font-size:23px;line-height:1}
.story-dialog-next:hover{filter:brightness(1.12)}
.story-dialog button:focus-visible{outline:3px solid #f3dc96;outline-offset:3px}
@keyframes story-dialog-entrance{from{opacity:.15;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
body:has(.story-overlay){overflow:hidden}
@media(max-width:650px){
 .story-overlay{padding:8px;align-items:center}
 .story-dialog{width:100%;max-height:95dvh;padding:16px 15px;gap:11px;border-radius:8px}
 .story-dialog-art{height:110px}
 .story-dialog h2{font-size:27px}
 .story-dialog-text{min-height:94px}
 .story-dialog-text p{font-size:17px;line-height:1.65}
 .story-dialog-place{font-size:10px}
 .story-dialog-footer{align-items:stretch}
 .story-dialog-next{width:100%;margin:0}
 .story-dialog-choices .story-choice{min-height:56px}
}
@media(prefers-reduced-motion:reduce){.story-dialog{animation:none}}

/* VEYRE UX 0.12 : cohérence des lieux, lecture longue et interactions tactiles */
.veyre-top{position:sticky;z-index:45;background:linear-gradient(180deg,#1c2922f8,#111e1af7);border-bottom:1px solid #7e7054}
.veyre-top .top-inner{max-width:1250px;min-height:58px;padding:8px clamp(10px,2.4vw,24px);display:flex;align-items:center;justify-content:flex-start;gap:clamp(8px,2vw,28px);flex-wrap:nowrap}
.veyre-top .top-place{font:600 clamp(15px,2.2vw,23px)/1.15 Georgia,serif;letter-spacing:.025em;color:#edd2a0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:auto}
.veyre-top .top-clock{color:#d9d1b9;font:700 13px/1.2 system-ui,sans-serif;white-space:nowrap;font-variant-numeric:tabular-nums}
.veyre-top .top-purse{font:700 12px/1 system-ui,sans-serif;color:#dabc84;white-space:nowrap;padding:9px 11px;border:1px solid #76674c;border-radius:30px;background:#292b20}
.veyre-top .top-links{display:flex;gap:6px;align-items:center;flex:0 0 auto}
.veyre-top .top-links .btn{min-height:35px;padding:7px 10px;font-size:12px}
.veyre-top.combat-top .top-inner{justify-content:space-between;min-height:58px}
.city-overview .city-topline{margin-bottom:14px}
.city-overview .city-topline>span{display:none}
.place-screen .place-hero{margin-top:5px}
.place-screen .place-choices{margin-bottom:10px}
.npc-new-badge{display:inline-flex;margin-top:6px;color:#e4b875;font-weight:750;letter-spacing:.05em;font-size:11px}
.story-dialog.story-dialog-long{width:min(100%,960px);max-height:96dvh;min-height:min(80dvh,700px);padding:clamp(25px,4.2vw,52px);background:linear-gradient(120deg,#2f2923eF,#1c2820 65%,#202b24);border-radius:4px;box-shadow:0 20px 100px #000f,inset 0 0 0 7px #161d19}
.story-dialog-long .story-dialog-text{min-height:0;display:flex;flex-direction:column;align-items:flex-start;gap:clamp(15px,2.4vh,25px);margin:15px 0 24px;padding:0}
.story-dialog-long .story-dialog-text p{font-size:clamp(18px,2.15vw,23px);line-height:1.78;max-width:72ch;letter-spacing:.004em}
.story-dialog-long h2{margin-top:10px;font-size:clamp(30px,4.7vw,49px)}
.story-dialog-long .story-dialog-choices{margin-top:25px;padding:24px 0 0;gap:12px}
.story-dialog-long .story-choice{min-height:65px;border-left:3px solid #ad9166}
.story-dialog-long .story-choice b{font-size:clamp(14px,1.65vw,17px);font-weight:500;line-height:1.55}
.story-reaction{margin-top:26px;padding:21px 22px;border:1px solid #766848;background:linear-gradient(145deg,#2f3428,#222e28);border-radius:5px}
.story-reaction p{font:clamp(18px,2.1vw,22px)/1.7 Georgia,serif;color:#eaddc5}
.story-reaction .story-dialog-feedback{margin-top:20px;padding:12px;border-color:#766951;background:#22271f}
.story-reaction.story-epilogue{border-left:4px solid #ccaa7a;background:#2c3229}
.story-dialog-long .story-dialog-footer{margin-top:16px}
.story-dialog-long .story-dialog-footer .btn{width:100%;min-height:50px}
.npc-dialogue .npc-opening{font:17px/1.7 Georgia,serif;margin:12px 0;color:#d3c3a3}
.npc-dialogue .story-dialog-choices{margin-top:15px}
.npc-dialogue .story-choice{width:100%;text-align:left;padding:11px 15px}
.npc-dialogue .story-reaction{margin:16px 0}
.shop-product-description{border:0;background:transparent;color:inherit;display:block;text-align:left;min-width:0;flex:1 1 auto;padding:9px 8px 9px 0;cursor:pointer;border-radius:5px}
.shop-product-description:hover,.shop-product-description:focus-visible{background:#334536a6;outline:1px solid #ba9c65;outline-offset:2px}
.shop-product-description h4{font-size:16px;font-family:Georgia,serif}
.shop-detail-link{font-size:11px;color:#edc788;text-decoration:underline;text-underline-offset:3px}
.shop-item-specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:18px 0;max-height:47dvh;overflow:auto}
.shop-spec{background:#202c26;border:1px solid #5b664f;border-radius:4px;padding:10px 12px;display:flex;flex-direction:column;gap:5px}
.shop-spec b{font:11px/1.3 system-ui;color:#bab7a6}
.shop-spec span{font:650 14px/1.3 system-ui;color:#f0d9a8;word-break:break-word}
.recruit-profile{display:grid;gap:11px}
.recruit-profile .story-recruit-quote{font:italic 19px/1.55 Georgia,serif;color:#f0d2a0;background:#303328;border-left:3px solid #a68b64;padding:14px}
.recruit-profile>p{line-height:1.65;color:#cfc6b2}
.recruit-contract{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.recruit-contract>div{border:1px solid #656c53;padding:11px 7px;text-align:center;display:flex;flex-direction:column;gap:5px;background:#222d25}
.recruit-contract b{color:#e8c68c;font-size:23px;font-family:Georgia,serif}
.recruit-contract small{font-size:11px;color:#c1bbab}
.recruit-skill-list{display:flex;flex-wrap:wrap;gap:7px}
.recruit-skill-list span{padding:5px 8px;background:#313a2f;border:1px solid #657052;border-radius:3px;font-size:12px}
.recruit-skill-list b{color:#f0d8a6}
.battle-aim-picks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:11px 0}
.aim-pick{background:#2e3329;padding:9px;border:2px solid #d8ba80;border-radius:5px;display:grid;gap:6px}
.aim-pick.second{border-color:#84b4b6;background:#273b3b}
.aim-pick span{color:#d9bc88;font-size:10px;font-weight:700;letter-spacing:.06em}
.aim-pick.second span{color:#afdddd}
.aim-pick strong{color:#f2dfc0;font:16px Georgia,serif}
.battle-aim-point.first-target{outline:2px solid #e8c079;outline-offset:2px}
.battle-aim-point.second-target{background:#6f9fa1;color:#071e21;border-color:#cff0ee;z-index:3;outline:2px solid #9bd8dc}
.battle-aim-point.second-target strong{color:#102c30}
.battle-aim-point em{position:absolute;top:-9px;right:-8px;font-style:normal;font-size:18px;color:#ffe2a6;text-shadow:0 1px 5px #000;background:#293a2b;border-radius:50%}
.battle-aim-point.second-target em{color:#a7ffff}
.battle-roster .battle-surrender{margin-top:10px;align-items:flex-start;border-top:1px dashed #785d54;padding-top:10px}
.battle-roster .battle-surrender-toggle{max-width:none;min-height:36px;width:100%;font-size:11px;padding:7px;border-color:#715451;background:#322522}
.battle-roster .battle-surrender-choices{width:100%;padding:8px}
.battle-roster .battle-surrender-choices .btn{width:100%;font-size:11px;min-height:32px}
.battle-final-report{margin:21px 0;padding:15px;border:1px solid #917d5c;background:#1e2a23}
.battle-final-report h3{font-size:24px;color:#e4c28a}
.battle-final-list{display:grid;gap:7px;margin-top:13px;max-height:42dvh;overflow-y:auto}
.battle-final-event{display:flex;gap:12px;align-items:flex-start;padding:10px;border-radius:4px;background:#2b392e;border-left:3px solid #719b85}
.battle-final-event.enemy{background:#3a2b27;border-left-color:#bc7968}
.battle-final-event svg{width:25px;height:25px;flex-shrink:0;color:#e0c394}
.battle-final-event>div{min-width:0;display:grid;gap:3px}
.battle-final-event b{font-size:13px}
.battle-final-event small,.battle-final-event p{font-size:11px;color:#c0baab}
.arena-archive{border-top:1px solid #756749;padding-top:15px}
.arena-archive summary{cursor:pointer;font-weight:700;color:#e0c48c}
.camp-game-board{border-radius:50%;border:3px solid #9e8e62;box-shadow:0 8px 40px #000a,0 0 0 8px #1e3229,inset 0 0 45px #18271f;overflow:hidden}
.camp-world{isolation:isolate}
@media(max-width:650px){
 .veyre-top .top-inner{padding:7px 9px;gap:6px;min-height:50px}
 .veyre-top .top-place{font-size:14px;line-height:1.1}
 .veyre-top .top-clock{font-size:10px}
 .veyre-top .top-purse{font-size:10px;padding:7px 5px}
 .veyre-top .top-links{gap:3px}
 .veyre-top .top-links .btn{font-size:10px;min-height:31px;padding:5px}
 .story-dialog.story-dialog-long{width:100%;max-height:97dvh;min-height:0;padding:24px 18px}
 .story-dialog-long h2{font-size:31px}
 .story-dialog-long .story-dialog-text p{font-size:18px;line-height:1.72}
 .story-dialog-long .story-dialog-choices{margin-top:14px;padding-top:18px}
 .story-dialog-long .story-choice{min-height:64px}
 .story-dialog-long .story-choice b{font-size:14px}
 .shop-item-specs{grid-template-columns:1fr 1fr;max-height:42dvh}
 .recruit-contract b{font-size:18px}
 .battle-roster .battle-surrender-toggle svg{display:none}
 .battle-roster .battle-surrender-toggle{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.story-dialog-long .story-choice{transition:none}}

/* Abandon : une action tactique sélectionnée puis confirmée */
.battle-options{display:grid;gap:10px;margin:13px 0 20px}
.battle-action-choice{width:100%;border:1px solid #785c56;border-radius:5px;padding:13px 15px;text-align:left;display:grid;gap:5px;background:#322624;color:#f1d5c3}
.battle-action-choice:hover,.battle-action-choice.active{background:#613a31;border-color:#d3a18c}
.battle-action-choice.active{box-shadow:inset 3px 0 #d7a58d}
.battle-action-choice small{display:block;color:#cebcb0;font-size:12px}
.battle-action-choice:disabled{background:#252624;color:#897a71;cursor:not-allowed}
.battle-action-choice:focus-visible{outline:2px solid #f2b992}


/* ANDROID STORY READER V2: one natural document flow, one scrolling surface.
   No flex shrinking, no fixed choice tray, no spoilers before final paragraph. */
.story-overlay{display:flex;align-items:center;justify-content:center;overflow:hidden;padding:10px;z-index:150}
.story-dialog.story-dialog-long{display:block!important;flex:none!important;box-sizing:border-box;position:relative;width:min(100%,760px);height:auto;max-height:calc(100dvh - 20px);min-height:0!important;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:clamp(18px,3vw,30px)!important;animation:none!important}
.story-dialog-long>*{position:relative;display:block;max-width:100%;min-width:0;flex:none!important;flex-shrink:0!important;overflow:visible;box-sizing:border-box}
.story-dialog-long .story-dialog-top{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;flex-wrap:wrap;margin:0 0 18px}
.story-dialog-long h2{margin:0 0 23px;line-height:1.15}
.story-dialog-long .story-dialog-text{display:block;min-height:0!important;height:auto!important;margin:0 0 25px;padding:0!important;flex:none!important}
.story-dialog-long .story-dialog-text p{display:block;max-width:none!important;height:auto;line-height:1.68;overflow-wrap:break-word;hyphens:auto;margin:0 0 1.35em;padding:0;white-space:normal}
.story-dialog-long .story-dialog-choices{display:grid!important;position:static!important;min-height:0!important;flex:none!important;clear:both;gap:12px;padding:22px 0 0!important;margin:22px 0 0!important;border-top:1px solid #78664f;background:transparent!important}
.story-dialog-long .story-choice-title{position:static;display:block;line-height:1.55;overflow-wrap:anywhere;margin:0 0 7px}
.story-dialog-long .story-choice{position:static;display:grid;grid-template-columns:2em minmax(0,1fr) 1em;align-items:center;gap:12px;min-width:0;min-height:72px;padding:15px;border:1px solid #88755d;border-left:4px solid #b18f60;background:#1d2b23;box-sizing:border-box}
.story-dialog-long .story-choice b{min-width:0;overflow-wrap:anywhere;line-height:1.45}
.story-dialog-long .story-reaction{position:static!important;display:block!important;clear:both;max-width:100%;height:auto;min-height:0;margin:18px 0 24px;padding:22px}
.story-dialog-long .story-reaction p{position:static;line-height:1.65;overflow-wrap:break-word;hyphens:auto}
.story-dialog-long .story-dialog-feedback{position:static!important;display:block;max-width:100%;margin-top:20px}
.story-dialog-long .story-dialog-feedback-value{display:block;margin-top:9px;overflow-wrap:anywhere}
.story-dialog-long .story-dialog-footer{position:static!important;display:block!important;clear:both;min-height:0;margin:20px 0 0}
.story-dialog-long .story-recalled-choice{border-left:3px solid #a48a65;color:#bfc6b6;padding:0 0 0 12px;margin:6px 0 22px;font:15px/1.5 system-ui,sans-serif}
.story-dialog-long button{touch-action:manipulation}
@media(max-width:750px){
 .story-overlay{padding:0;align-items:stretch}
 .story-dialog.story-dialog-long{width:100%;height:100dvh;max-height:100dvh;border-radius:0;border-left:none;border-right:none;padding:calc(20px + env(safe-area-inset-top,0px)) 18px calc(28px + env(safe-area-inset-bottom,0px))!important;scrollbar-gutter:auto}
 .story-dialog-long h2{font-size:clamp(28px,7vw,39px);margin-bottom:22px}
 .story-dialog-long .story-dialog-text p{font-size:18px;line-height:1.76;margin-bottom:1.4em}
 .story-dialog-long .story-dialog-choices{margin-top:30px!important;padding-top:24px!important}
 .story-dialog-long .story-choice{grid-template-columns:27px minmax(0,1fr) 12px;padding:15px 12px;gap:10px}
 .story-dialog-long .story-choice b{font-size:15px}
 .story-dialog-long .story-reaction{padding:17px 15px}
}
/* After-round reading: text-first and scroll-safe on narrow screens. */
.battle-reading{margin:18px 0;padding:18px;background:#17241d;border:1px solid #9a8663;border-radius:8px;display:grid;gap:14px;min-width:0}
.battle-reading-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:7px;color:#e8c58e;font:700 11px/1.5 system-ui,sans-serif;letter-spacing:.1em}
.battle-reading-head span{font-size:11px;color:#d1c9b0;font-weight:400;letter-spacing:0}
.battle-reading-enemy{padding:14px;background:#243329;border:1px solid #61715b;border-radius:5px;min-width:0}
.battle-reading-identity{display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px;padding-bottom:9px;border-bottom:1px solid #58634d;margin-bottom:8px}
.battle-reading-identity>strong{color:#f0d9b4}
.battle-reading-identity span{font:12px/1.55 system-ui,sans-serif;color:#d8d2ba}
.battle-reading-enemy p{margin:7px 0;line-height:1.6;color:#e5d8c1}
.battle-reading-enemy>small{display:block;margin-top:10px;font:11px/1.5 system-ui,sans-serif;color:#b4c4a9}
.battle-reading-morale{font-style:italic}
.modal:has(.battle-tale){box-sizing:border-box;width:min(780px,100%);max-height:calc(100dvh - 22px);overflow-y:auto;overflow-x:hidden;padding:clamp(18px,3vw,32px)}
.battle-tale{display:block;min-width:0}
.battle-tale h2{font:normal clamp(28px,5vw,39px)/1.2 Georgia,serif;color:#f1dbb4;margin:12px 0 21px}
.battle-tale-prose{display:block;max-width:70ch}
.battle-tale-prose p{font:clamp(17px,2.1vw,21px)/1.72 Georgia,serif;color:#e8ddc9;margin:0 0 1.15em;overflow-wrap:break-word;hyphens:auto}
.battle-tale-next{margin:27px 0 19px;border-top:1px solid #827055;padding-top:9px}
.battle-tale-end{margin:20px 0}
.battle-tale-end .btn{width:100%;min-height:50px}
.battle-tale-debug{color:#b5b6ad;font-size:12px;border-top:1px solid #645d4f;padding-top:12px}
.battle-tale-debug summary{cursor:pointer}
.battle-tale-debug p{line-height:1.6;margin:7px 0;overflow-wrap:anywhere}
.battle-final-tale{margin:22px 0;padding:16px;border:1px solid #77674e;border-radius:6px;background:#223027}
.battle-final-tale h3{color:#e6c292;margin-bottom:12px}
.battle-final-tale p{font:17px/1.7 Georgia,serif;margin:0 0 12px;color:#e1d6c2}
@media(max-width:750px){
 .overlay:has(.battle-tale){padding:0!important;align-items:stretch!important}
 .modal:has(.battle-tale){width:100%;max-width:100%;max-height:100dvh;height:100dvh;overflow-y:auto;border-radius:0;padding:calc(20px + env(safe-area-inset-top,0px)) 18px calc(30px + env(safe-area-inset-bottom,0px))}
 .battle-tale-prose p{font-size:18px;line-height:1.7}
 .battle-reading{padding:13px;gap:10px}
}

/* Choix immédiatement disponibles au terme de la lecture, dans le flux vertical. */
.story-dialog-long .story-dialog-choices{scroll-margin-block:20px}
.battle-final-tale p:last-child{margin-bottom:0}


/* Commerce V2 : écran d'échange indépendant, responsive PC / Android. */
.trade-screen{--trade-border:#4d5546;--trade-ink:#f1e5ce;--trade-accent:#d3aa6a;color:var(--trade-ink);max-width:1160px;margin:0 auto}
.trade-banner{display:flex;align-items:end;justify-content:space-between;gap:24px;padding:26px 30px 24px;background:linear-gradient(110deg,#29352b,#17231e 70%,#262b24);border:1px solid #677055;border-bottom:none;box-shadow:0 16px 48px #050b0980}
.trade-eyebrow{font:700 10px/1.5 system-ui;letter-spacing:.2em;text-transform:uppercase;color:#cba36c}
.trade-banner h1{margin:5px 0 7px;letter-spacing:.025em;font-size:clamp(28px,4.2vw,43px)}.trade-banner p{font-size:13px;color:#c3baa5}
.trade-finances{display:flex;gap:12px;flex-shrink:0}.trade-finances>div{padding:10px 14px;min-width:118px;border:1px solid #776b4a;background:#171f1ac9;text-align:right}
.trade-finances small,.trade-price-line small{display:block;color:#b8ae98;font-size:11px}.trade-finances strong{display:block;font:700 19px Georgia,serif;color:#eed3a1}
.trade-tabs{display:grid;grid-template-columns:1fr 1fr;background:#121b16;border:1px solid #59614f;border-top:0;gap:0}
.trade-tab{height:52px;border:0;border-bottom:3px solid transparent;background:#222a23;color:#b9b9a7;letter-spacing:.07em;font-weight:700}
.trade-tab+.trade-tab{border-left:1px solid #505c4d}.trade-tab.active{background:#303c30;color:#f6dfb0;border-bottom-color:#e1b472}.trade-tab:hover{background:#354336}
.trade-workspace{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);min-height:610px;border:1px solid #677055;border-top:0;background:#1b241e;box-shadow:0 15px 45px #0008}
.trade-catalog{min-width:0;border-right:1px solid #59634f;padding:20px 18px 18px;background:linear-gradient(160deg,#202c23,#172019)}.trade-detail{min-width:0;padding:20px 22px 25px;display:flex;flex-direction:column;background:radial-gradient(ellipse at top right,#34403266,transparent 58%),#1c251f}
.trade-section-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:15px}.trade-section-head strong,.trade-section-head small{font-size:11px;color:#bdb8a5;font-weight:500}
.trade-search-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.trade-search{width:100%;height:43px;appearance:none;border:1px solid #70745d;background:#111b17;color:#f3e7cc;padding:10px 12px;margin-bottom:12px;border-radius:3px;font-size:13px}
.trade-search::placeholder{color:#b0ab99}.trade-search:focus{outline:2px solid #dfb677;outline-offset:1px}
.trade-filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:11px}.trade-filter{min-height:33px;background:#28352c;border:1px solid #5b6658;color:#c8c8b4;padding:5px 9px;font-size:11px;border-radius:3px}.trade-filter.active{background:#a98451;border-color:#e0b578;color:#201e16;font-weight:700}
.trade-tiers{display:flex;gap:10px;align-items:center;justify-content:space-between;font-size:12px;color:#c8bb9d;margin-bottom:12px}.trade-tier-select{height:36px;background:#18231c;color:#ecd8b0;border:1px solid #6e745e;padding:4px 10px;min-width:105px;border-radius:3px}
.trade-list{height:min(52vh,510px);min-height:260px;overflow-y:auto;border:1px solid #485645;background:#111b16;scrollbar-color:#65715d #19231d}
.trade-item{display:flex;width:100%;align-items:center;gap:10px;min-height:65px;padding:10px 11px;color:#e8e0cc;text-align:left;border:0;border-bottom:1px solid #354437;background:transparent}.trade-item:hover{background:#344337}.trade-item.active{background:linear-gradient(90deg,#4a4a35,#333b2f);box-shadow:inset 3px 0 #e3b77c}
.trade-item-symbol{display:grid;place-items:center;flex:0 0 34px;height:34px;background:#2e382d;border:1px solid #56634d;color:#e2c18c;font-size:20px}.trade-item-text{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}.trade-item-text strong{font-size:13px;font-weight:650;line-height:1.25}.trade-item-text small{color:#b0ad9c;font-size:10px;line-height:1.35}.trade-item-price{display:flex;align-items:end;flex-direction:column;gap:2px;white-space:nowrap}.trade-item-price strong{color:#e2bf83;font-size:13px}.trade-item-price small{color:#a9af9c;font-size:10px}
.trade-pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:14px;font-size:12px;color:#b7b5a1}.trade-pagination button{width:39px;height:35px;color:#eac78e;background:#2b362d;border:1px solid #637057;font-size:21px}.trade-pagination button:disabled{opacity:.35}
.trade-detail-heading{display:flex;align-items:start;gap:15px;padding:18px 0 16px;border-bottom:1px solid #52604d}.trade-emblem{width:68px;height:76px;flex-shrink:0;display:grid;place-items:center;font:34px Georgia,serif;color:#e8bf82;background:linear-gradient(140deg,#384936,#1a241c);border:1px solid #8d825d;box-shadow:inset 0 0 0 3px #1c271d}
.trade-detail-heading h2{font:normal clamp(24px,3vw,32px)/1.15 Georgia,serif;color:#f0dbb2;margin:5px 0 9px}.trade-detail-heading p{font-size:13px;line-height:1.55;color:#c2baa8}
.trade-detail-specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:17px 0 24px;max-height:300px;overflow:auto;padding-right:3px}.trade-spec{background:#17221b;border:1px solid #465545;padding:10px 11px;min-width:0}.trade-spec small{display:block;font-size:10px;line-height:1.4;color:#adaf9e;margin-bottom:5px}.trade-spec strong{display:block;font-size:13px;color:#e6d4af;overflow-wrap:anywhere;font-weight:600}
.trade-checkout{margin-top:auto;padding:17px 17px 19px;background:#17211b;border:1px solid #776c4f;box-shadow:inset 0 0 35px #0003}.trade-price-line{display:flex;justify-content:space-between;gap:10px}.trade-price-line strong{font:700 21px Georgia,serif;color:#f1d6a0}.trade-price-line>div:last-child{text-align:right}
.trade-quantity{display:flex;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid #424f40;margin-bottom:13px;font-size:13px}.trade-stepper{display:flex;align-items:center;border:1px solid #6e7055}.trade-stepper button{height:39px;width:42px;background:#354332;color:#f3d49b;border:0;font-size:22px}.trade-stepper button:disabled{opacity:.4}.trade-stepper .trade-qty-input{width:58px;text-align:center;appearance:textfield;-moz-appearance:textfield;border-top:0;border-bottom:0;color:#e9d7b4;outline-offset:0}.trade-stepper .trade-qty-input::-webkit-inner-spin-button{appearance:none}.trade-stepper output{display:grid;place-items:center;min-width:52px;height:39px;border-left:1px solid #56624d;border-right:1px solid #56624d;background:#1a241d;font-weight:700;color:#e9d7b4}
.trade-total{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;font-size:13px;color:#c7c1ac}.trade-total strong{font:700 25px Georgia,serif;color:#ecc584}.trade-confirm{width:100%;min-height:49px;border:1px solid #ebc98d;background:linear-gradient(115deg,#d6ae70,#aa7a3d);color:#211c12;font-size:14px;font-weight:800}.trade-confirm:hover:not(:disabled){background:#e8c68d}.trade-confirm:disabled{opacity:.45}
.trade-warning{color:#ecb09d;font-size:12px;margin-top:10px}.trade-empty{padding:25px 15px;color:#b9b39f;text-align:center;font-size:13px}.trade-bottom-note{padding:13px 7px;color:#b2b4a4;font-size:11px;text-align:center}
@media(max-width:850px){.trade-workspace{grid-template-columns:1fr}.trade-catalog{border-right:0;border-bottom:1px solid #63705b}.trade-list{height:min(42vh,390px);min-height:195px}.trade-detail{padding:18px}.trade-detail-specs{max-height:none}.trade-banner{padding:21px}.trade-finances>div{min-width:100px}}
@media(max-width:580px){.trade-banner{align-items:start;flex-direction:column;gap:13px;padding:18px 14px}.trade-banner h1{font-size:31px}.trade-banner p{font-size:12px}.trade-finances{width:100%}.trade-finances>div{flex:1;padding:7px 10px;text-align:left}.trade-finances strong{font-size:17px}.trade-tab{height:47px}.trade-catalog{padding:14px 11px}.trade-list{height:min(38vh,320px)}.trade-item{gap:7px;padding:9px 7px;min-height:60px}.trade-item-symbol{flex-basis:28px;height:29px;font-size:17px}.trade-item-text strong{font-size:12px}.trade-item-price strong{font-size:12px}.trade-detail{padding:15px 12px}.trade-emblem{width:53px;height:63px;font-size:26px}.trade-detail-heading{gap:10px}.trade-detail-heading h2{font-size:25px}.trade-detail-specs{gap:6px}.trade-spec{padding:9px}.trade-checkout{padding:14px}.trade-bottom-note{font-size:10px}}

/* Zones du corps : forge, achat et vente, avec cibles tactiles sur iPhone. */
.trade-zones{display:grid;gap:7px;padding:10px 0;border-bottom:1px solid #4c5345}
.trade-zones>span{font-size:12px;letter-spacing:.06em;color:#c4ae86;font-weight:650}
.trade-zone-buttons{display:flex;flex-wrap:wrap;gap:6px}
.trade-zone-buttons>.trade-filter{min-height:36px;padding:7px 10px}
.save-alert{max-width:1210px;margin:12px auto 0;padding:12px 16px;background:#482a24;color:#ffe1c6;border:2px solid #d5a574;border-radius:5px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.save-alert strong{font-size:14px}.save-alert span{font-size:13px;flex:1;min-width:200px}
@media(max-width:540px){.trade-zone-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.trade-zone-buttons>.trade-filter{padding:8px 4px}.save-alert{margin:8px 10px}}
