/* BV-GAME-ACCUEIL-01: presentation only; game and dialogs retain their existing layout. */
#bvWelcomeArt{position:fixed;inset:0;z-index:1;pointer-events:none;background:transparent;overflow:hidden}#bvWelcomeArt canvas{width:100%;height:100%;display:block}
body.bv-welcome{background:#071322!important;color:#f6ebd5;display:block!important;height:auto!important;min-height:100dvh;overflow-y:auto!important}
body.bv-welcome>header{position:absolute;inset:0 0 auto;z-index:5;background:linear-gradient(#061222dd,#06122200);border:0;height:auto!important;min-height:55px;padding:12px 20px;display:flex;justify-content:flex-end;box-sizing:border-box}
body.bv-welcome header .brand,body.bv-welcome .gamename{display:none}body.bv-welcome .headerTools{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}body.bv-welcome header button,body.bv-welcome header select,body.bv-welcome header a{font-size:12px;min-height:36px;background:#091a2ce8;border:1px solid #b99454;border-radius:20px;color:#f6ebd5;padding:6px 12px}
body.bv-welcome>.wrap{position:relative;z-index:1;display:block!important;box-sizing:border-box;width:100%;max-width:none!important;margin:0!important;padding:var(--bv-content-top,52vh) 16px 24px!important;height:auto!important;min-height:100dvh}
body.bv-welcome #intro,body.bv-welcome #lobby{width:min(540px,44vw);max-width:none!important;margin:0 auto!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;text-align:center;border-radius:0;box-sizing:border-box}
body.bv-welcome #intro>span,body.bv-welcome #intro>.introLogo,body.bv-welcome #intro>h1,body.bv-welcome #lobby>span{display:none}
body.bv-welcome #intro>p:first-of-type{font:600 clamp(18px,2vw,25px) Georgia,serif;margin:0 0 14px;text-shadow:0 2px 7px #000}body.bv-welcome #intro>p:first-of-type br{display:none}
body.bv-welcome #joinForm{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:100%;margin:0}body.bv-welcome #joinForm label{text-align:left;font-size:14px;margin:0}body.bv-welcome #nickname{width:100%;box-sizing:border-box;border:1px solid #b69662;border-radius:24px;min-height:46px;background:#07172bf2;color:#f5ead1;font-size:16px;padding:10px 18px;box-shadow:0 5px 12px #0005}
body.bv-welcome button.gold{background:linear-gradient(#ffdf8a,#e9ad39)!important;color:#241607!important;border:2px solid #ffe2a0!important;border-radius:9px;min-height:46px;font-weight:700;box-shadow:0 0 0 2px #704716,0 3px 14px #0008;padding:10px 16px}
body.bv-welcome #intro button.gold{font:700 20px Georgia,serif}body.bv-welcome #joinError,body.bv-welcome #lobbyError{color:#ffdbcb;background:#071322b8;border-radius:5px;margin:8px 0;font-size:14px}body.bv-welcome #joinError:empty,body.bv-welcome #lobbyError:empty{display:none}
body.bv-welcome #lobby h1{font:700 29px Georgia,serif;color:#f3d78c;margin:0 0 4px}body.bv-welcome #lobbyCode{margin:4px 0 10px;font-size:13px;text-shadow:0 2px 5px #000}
body.bv-welcome #lobbyPlayers{display:grid;gap:6px;max-height:180px;overflow-y:auto;overscroll-behavior:contain;padding:2px;scrollbar-color:#b99454 #071322}body.bv-welcome .lobbyMember{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #b18a44;border-radius:14px;min-height:39px;padding:5px 12px;background:#071322ed;box-sizing:border-box}body.bv-welcome .lobbyMember strong{overflow-wrap:anywhere;text-align:left;font-size:15px}body.bv-welcome .lobbyMember span{font-size:11px;color:#dbbd7b;text-align:right}
body.bv-welcome #lobbyHint{font-size:13px;color:#f3ead8;margin:8px 0;text-shadow:0 2px 6px #000}body.bv-welcome #lobby .actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px}body.bv-welcome #lobby .actions button{min-height:44px;border:1px solid #b99454;border-radius:15px;background:#071322ed;color:#f6ebd5;padding:8px 14px}body.bv-welcome #lobby .actions button:last-child{border:0;flex-basis:100%;background:transparent;min-height:38px}
body.bv-welcome>footer{position:relative;z-index:1;font-size:10px;padding:8px;text-align:center;background:#071322d9}
#bvEntryOverlay{position:fixed;inset:0;z-index:100000;background:transparent;pointer-events:auto;opacity:1;transition:opacity .3s}#bvEntryOverlay canvas{display:block;width:100%;height:100%}#bvEntryOverlay button{position:absolute;right:20px;bottom:20px;background:#071322e8;color:#f6ebd5;border:1px solid #b99454;border-radius:20px;padding:10px 20px;min-height:44px}#bvEntryOverlay.bv-entry-finished{opacity:0;pointer-events:none}
@media(max-width:700px){body.bv-welcome>header{padding:8px;justify-content:center}body.bv-welcome .headerTools{justify-content:center;gap:4px}body.bv-welcome header button,body.bv-welcome header select,body.bv-welcome header a{font-size:10px;padding:5px 8px;min-height:32px}body.bv-welcome #intro,body.bv-welcome #lobby{width:min(92vw,430px)}body.bv-welcome #intro>p:first-of-type{font-size:18px}body.bv-welcome #lobby h1{font-size:25px}body.bv-welcome #lobby .actions{gap:8px}body.bv-welcome #lobby .actions button{width:100%}body.bv-welcome #lobbyPlayers{max-height:150px}body.bv-welcome .lobbyMember{min-height:42px}body.bv-welcome #lobby .actions button:last-child{min-height:40px}}

body.bv-welcome #intro>p:last-child{font-size:13px;color:#f3ead8;margin:10px 0;text-shadow:0 2px 5px #000}


/* First paint: new artwork before animation initialisation. */
body.bv-welcome::before{content:none!important;display:none!important}
#bvWelcomeFallback{position:fixed;inset:0;z-index:0;pointer-events:none;background:#071322 url('accueil01-pc.jpg?v=accueil01-c3') center top/100% auto no-repeat}
body:not(.bv-welcome) #bvWelcomeFallback{display:none}
@media(max-width:700px){#bvWelcomeFallback{background-image:url('accueil01-mobile.jpg?v=accueil01-c3');background-position:center;background-size:contain}}
