/* Préparation : zones dimensionnées par la hauteur utile, sans zoom du texte. */
:root{--a26-fit-release:prepcorrectifs01-20261104-c1}
body.a26-prep{overflow:hidden!important}
body.a26-prep .wrap{height:100dvh!important;min-height:0!important}
body.a26-prep #game #a26Scene{height:calc(100dvh - 6px)!important;min-height:0!important;max-height:calc(100dvh - 6px)!important;box-sizing:border-box!important;grid-template-rows:56px 40px minmax(0,1fr) 62px!important;grid-template-areas:'head head head' '. commands .' 'left core right' 'footer footer footer'!important;padding:0!important;gap:6px 14px!important;align-content:stretch!important}
body.a26-prep #game #a26Scene .a26Head{height:56px!important;min-height:0!important}
body.a26-prep #game #a26Scene #a26Core{min-height:0!important;height:100%!important}
body.a26-prep #game #a26Scene #a26Core #preparation{height:100%!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;min-height:0!important}
body.a26-prep #game #a26Scene #preparation>.shopPanel{grid-area:1/1!important;min-height:0!important}
body.a26-prep #game #a26Scene #preparation>.armyPanel{grid-area:2/1!important;min-height:0!important}
body.a26-prep #game #a26Scene #preparation>#handZone{grid-area:3/1!important;min-height:0!important}
body.a26-prep #game #a26Scene #a26Left,body.a26-prep #game #a26Scene #a26Right{min-height:0!important;max-height:100%!important;overflow:auto!important}
body.a26-prep #game #a26Scene .tavernControls{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;height:40px!important}
body.a26-prep #game #a26Scene #a26Commands .tavernControls>button{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:40px!important;height:40px!important;max-height:40px!important;overflow-wrap:normal!important;word-break:normal!important;white-space:normal!important;text-wrap:balance;line-height:1.15!important;font-size:13px!important;padding:4px 7px!important}
body.a26-prep #game #a26Scene .tavernHeader{margin-bottom:3px!important;gap:2px!important}
body.a26-prep #game #a26Scene .shopDetails{line-height:1.2!important}
body.a26-prep #game #a26Scene .armyHeader{margin-bottom:3px!important}
body.a26-prep #game #a26Scene #army{grid-template-columns:minmax(0,var(--a26-back-track)) minmax(0,var(--a26-front-track))!important;gap:3px 12px!important}
body.a26-prep #game #a26Scene #army .formationLine{flex-wrap:nowrap!important;gap:6px!important;overflow:visible!important;min-width:0!important}
body.a26-prep #game #a26Scene #army .formationSlot{flex:0 0 var(--a26-fit-army,80px)!important;width:var(--a26-fit-army,80px)!important;max-width:var(--a26-fit-army,80px)!important;min-height:0!important;height:auto!important;aspect-ratio:2/3!important}
body.a26-prep #game #a26Scene #army .card.empty{min-height:0!important;font-size:11px!important}
body.a26-prep #game #a26Scene #hand{padding:3px 16px 10px!important;height:auto!important;min-height:0!important}
body.a26-prep #game #a26Scene #hand .collectionCard{flex-basis:var(--a26-fit-hand,80px)!important;width:var(--a26-fit-hand,80px)!important;max-width:var(--a26-fit-hand,80px)!important}
body.a26-prep #game #a26Scene #hand .collectionCard+.collectionCard{margin-left:calc(var(--a26-fit-hand,80px)*-.46)!important}
body.a26-prep #game #a26Scene #a26Footer{min-height:0!important;align-content:center!important;gap:3px 10px!important;padding:0!important}
body.a26-prep #game #a26Scene #a26WorkersButton{display:none!important}
body.a26-prep #game #a26Scene #a26Information #workerDetails{display:block!important;max-height:none!important}
body.a26-prep #game #a26Scene #a26Information #workers{width:100%!important}
body.a26-prep #game #a26Scene #a26Information .workerToken{padding:8px!important}
@media(max-height:600px) and (orientation:landscape){
body.a26-prep .wrap{padding:0 6px!important}
body.a26-prep #game #a26Scene{width:100%!important;max-width:none!important;height:calc(100dvh - 4px)!important;max-height:calc(100dvh - 4px)!important;grid-template-columns:128px minmax(0,1fr)!important;grid-template-rows:34px 40px minmax(0,1fr) 40px!important;grid-template-areas:'head head' 'left commands' 'left core' 'footer footer'!important;gap:4px 8px!important;margin:0!important;padding:0!important}
body.a26-prep #game #a26Scene .a26Head{height:34px!important;min-height:0!important;width:calc(100% - 170px)!important;margin:0 120px 0 50px!important;grid-template-columns:90px minmax(0,1fr) 130px!important;gap:4px!important;align-items:center!important}
body.a26-prep #game #a26Scene .a26Head h1{font-size:18px!important;white-space:nowrap!important;letter-spacing:0!important}
body.a26-prep #game #a26Scene .a26Head #bar>strong{display:none!important}
body.a26-prep #game #a26Scene .a26Head #countdown{font-size:14px!important;white-space:nowrap!important}
body.a26-prep #game #a26Scene #wallet strong{font-size:18px!important}
body.a26-prep #game #a26Scene .a26Logo{height:30px!important;width:42px!important;top:0!important}
body.a26-prep #game #a26Scene #a26Commands .tavernControls>button{font-size:12px!important;padding:3px 5px!important}
body.a26-prep #game #a26Scene #a26Left{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;overflow:auto!important}
body.a26-prep #game #a26Scene #a26VerseSummary{flex:none!important;width:100%!important;max-width:none!important;margin:0 0 2px!important;gap:3px!important}
body.a26-prep #game #a26Scene #a26VerseChoice{width:100%!important;min-height:42px!important;padding:5px 6px!important;gap:4px!important;grid-template-columns:12px minmax(0,1fr)!important}
body.a26-prep #game #a26Scene #a26VerseChoice strong{font-size:12px!important}
body.a26-prep #game #a26Scene #a26VerseChoice small{font-size:10px!important}
body.a26-prep #game #a26Scene #verseStreak{min-height:0!important;margin:0!important;padding:2px 0!important;font-size:11px!important}
body.a26-prep #game #a26Scene #verseStreak strong{font-size:12px!important}
body.a26-prep #game #a26Scene #verseStreak span{font-size:10px!important}
body.a26-prep #game #a26Scene #a26Left>.a26MobileInformation{display:block!important;font-size:12px!important;min-height:30px!important;padding:4px!important;text-align:left!important}
body.a26-prep #game #a26Scene #a26Right{display:none!important}
body.a26-prep #game #a26Scene #a26Core #preparation{grid-template-columns:minmax(0,42fr) minmax(0,58fr)!important;grid-template-rows:minmax(0,1.3fr) minmax(0,1fr)!important;gap:5px 8px!important}
body.a26-prep #game #a26Scene #preparation>.shopPanel{grid-area:1/1!important}
body.a26-prep #game #a26Scene #preparation>.armyPanel{grid-area:1/2!important}
body.a26-prep #game #a26Scene #preparation>#handZone{grid-area:2/1/3/3!important}
body.a26-prep #game #a26Scene .tavernHeader h2,body.a26-prep #game #a26Scene .armyHeader h2,body.a26-prep #game #a26Scene #handZone>h3{font-size:14px!important;line-height:1.1!important}
body.a26-prep #game #a26Scene #shopLevel{font-size:10px!important;line-height:1.1!important}
body.a26-prep #game #a26Scene #shop{scrollbar-width:thin!important}
body.a26-prep #game #a26Scene #expansion button{min-height:20px!important;font-size:10px!important;padding:1px 3px!important}
body.a26-prep #game #a26Scene .lineTitle{font-size:11px!important}
body.a26-prep #game #a26Scene #a26Footer #encounters,body.a26-prep #game #a26Scene #a26Footer #notice{display:none!important}
body.a26-prep #game #a26Scene #a26Footer #launch{min-height:36px!important;height:36px!important;font-size:12px!important;padding:6px 12px!important}
body.a26-prep #game #a26Scene #a26Footer .launchbar{margin-left:auto!important;flex-wrap:nowrap!important;gap:6px!important}
body.a26-prep #game #a26Scene #a26Footer #readyInfo{font-size:10px!important;white-space:nowrap!important}
body.a26-prep #game #a26Scene #a26History{font-size:12px!important}
body.a26-prep #game #a26Scene #a26Footer #sellZone{min-height:28px!important}
}
body.a26-prep{height:100dvh!important;min-height:0!important;margin:0!important}
body.a26-prep .wrap{position:fixed!important;inset:0!important;box-sizing:border-box!important;height:100dvh!important;min-height:0!important;margin:0!important;overflow:hidden!important}
body.a26-prep>footer{display:none!important}
body.a26-prep #game #a26Scene{grid-template-rows:56px 40px minmax(0,1fr) 76px!important}
body.a26-prep #game #a26Scene #a26Footer .launchbar{flex-direction:row!important;align-items:center!important;gap:8px!important}
body.a26-prep #game #a26Scene #a26Footer #readyInfo{white-space:nowrap!important}
@media(max-height:600px) and (orientation:landscape){body.a26-prep #game #a26Scene{grid-template-rows:34px 40px minmax(0,1fr) 40px!important}body.a26-prep #game #a26Scene #a26Footer .launchbar{flex-direction:row!important}}

/* Correctif A26 : remplir la hauteur utile, sans plafond de carte fixe sur PC. */
@media(min-height:601px){
body.a26-prep #game #a26Scene{max-width:none!important;grid-template-columns:clamp(155px,13.5vw,250px) minmax(0,1fr) clamp(175px,15vw,285px)!important;grid-template-rows:62px 44px minmax(0,1fr) max-content!important;gap:8px 16px!important;padding-bottom:8px!important}
body.a26-prep #game #a26Scene .a26Head{height:62px!important}
body.a26-prep #game #a26Scene .tavernControls{height:44px!important}
body.a26-prep #game #a26Scene #a26Commands .tavernControls>button{height:44px!important;max-height:44px!important;font-size:clamp(13px,.95vw,17px)!important}
body.a26-prep #game #a26Scene #a26Footer{display:grid!important;grid-template-columns:minmax(80px,1fr) minmax(0,2fr) minmax(180px,1fr)!important;grid-auto-rows:max-content!important;min-height:66px!important;gap:3px 12px!important;align-items:center!important;align-content:center!important;padding:0!important}
body.a26-prep #game #a26Scene #a26History{grid-area:1/1!important;justify-self:start!important}
body.a26-prep #game #a26Scene #a26Footer #sellZone{grid-area:1/2!important;justify-self:center!important;max-width:100%!important}
body.a26-prep #game #a26Scene #a26Footer .launchbar{grid-area:1/3!important;justify-self:end!important;min-width:0!important;max-width:100%!important;flex-wrap:wrap!important;justify-content:flex-end!important}
body.a26-prep #game #a26Scene #a26Footer #launch{font-size:clamp(13px,1vw,18px)!important;white-space:normal!important;min-width:0!important;max-width:100%!important;padding:8px 14px!important}
body.a26-prep #game #a26Scene #a26Footer #readyInfo{white-space:normal!important;font-size:13px!important}
body.a26-prep #game #a26Scene #encounters{grid-area:2/1/3/4!important;font-size:13px!important}
body.a26-prep #game #a26Scene #notice{grid-area:3/1/4/4!important;font-size:13px!important}
body.a26-prep #game #a26Scene #players .a26PlayerIdentity>strong,body.a26-prep #game #a26Scene #players .a26PlayerIdentity>.a26PlayerHp{font-size:clamp(13px,.9vw,17px)!important}
body.a26-prep #game #a26Scene #players .player>small{font-size:clamp(11px,.75vw,14px)!important}
body.a26-prep #game #a26Scene #players .scoutButton{font-size:clamp(11px,.75vw,14px)!important}
body.a26-prep #game #a26Scene #civilizations .civChip{font-size:clamp(12px,.85vw,16px)!important;padding:5px 4px!important}
body.a26-prep #game #a26Scene #civilizations .familyGroup h3{font-size:clamp(15px,1vw,19px)!important}
body.a26-prep #game #a26Scene :is(.tavernHeader h2,.armyHeader h2,#handZone>h3){font-size:clamp(18px,1.35vw,26px)!important}
body.a26-prep #game #a26Scene :is(#shopLevel,.lineTitle){font-size:clamp(12px,.85vw,16px)!important}
}
/* Les overlays existants portent les conditions réelles ; A26 ne les neutralise plus. */
body.a26-prep #game #a26Scene #shop .shopFeedback{border:2px solid #b9f5ff!important;border-radius:6px!important;filter:none!important}
body.a26-prep #game #a26Scene #shop .shopFeedback--owned{box-shadow:0 0 6px #b9f5ff,0 0 12px #4cdbf0aa,inset 0 0 6px #a7edff55!important;animation:shopOwnedLight 2.8s ease-in-out infinite!important}
body.a26-prep #game #a26Scene #shop .shopFeedback--fusion{border-color:#fff0a1!important;box-shadow:0 0 6px #fff0a1,0 0 16px #ffb32dcc,inset 0 0 9px #ffcc5677!important;animation:shopFireGlow .8s ease-in-out infinite alternate!important}
body.a26-prep #game #a26Scene #shop .shopFeedback--fusion i{display:block!important}
body.a26-prep #game #a26Scene #shop .offerBadge{max-width:calc(100% - 8px)!important;max-height:none!important;line-height:1.2!important;opacity:1!important;z-index:7!important;color:#fff8dd!important;text-shadow:0 1px 2px #000!important}
body.a26-prep.reducedMotion #game #a26Scene #shop .shopFeedback,body.a26-prep.reducedMotion #game #a26Scene #shop .shopFeedback i{animation:none!important}
@media(prefers-reduced-motion:reduce){body.a26-prep #game #a26Scene #shop .shopFeedback,body.a26-prep #game #a26Scene #shop .shopFeedback i{animation:none!important}}

/* Le voile A26 reste derrière les informations, y compris avec .wrap fixé. */
body.a26-prep .wrap{z-index:1!important}
body.a26-prep #game #a26Scene #army{height:auto!important;min-height:0!important;grid-template-rows:20px auto!important;align-content:start!important}
body.a26-prep #game #a26Scene #army>.lineTitle{height:20px!important;max-height:20px!important;line-height:20px!important;padding:0!important;margin:0!important}
body.a26-prep #game #a26Scene #army .formationLine{align-items:flex-start!important}
body.a26-prep #game #a26Scene .collectionFace,body.a26-prep #game #a26Scene .collectionFace>.bv-tile{max-width:none!important}

@media(max-height:600px) and (orientation:landscape){
body.a26-prep #game #a26Scene .tavernHeader h2{display:block!important;font-size:14px!important;line-height:1.1!important}
body.a26-prep #game #a26Scene #shopLevel{display:inline!important;font-size:10px!important;line-height:1.1!important}
body.a26-prep #game #a26Scene .shopDetails{font-size:10px!important;margin:0!important}
}
