.gestion-contacts{display:grid;gap:16px;max-width:540px}.gestion-contacts form{display:grid;gap:14px}.gestion-contacts label{display:grid;gap:6px}.gestion-contacts input,.gestion-contacts textarea{box-sizing:border-box;width:100%;font:inherit;border:1px solid #cabfa9;border-radius:10px;padding:12px;background:#fff}.gestion-number{padding:12px 16px;background:#eef8ed;border-radius:12px;font-weight:700;margin:0}.gestion-card{padding:16px;border:1px solid #ddd3be;border-radius:14px;background:#fffdf6}.gestion-card h3{margin:0 0 10px;font-size:1.05rem}.gestion-card p{white-space:pre-wrap;overflow-wrap:anywhere}.gestion-card button{margin:6px 8px 0 0;min-height:44px}.has-requests{animation:gestion-pulse 1.5s ease-in-out infinite}@keyframes gestion-pulse{50%{box-shadow:0 0 0 4px #eeb64166}}@media(prefers-reduced-motion:reduce){.has-requests{animation:none;outline:3px solid #eeb641}}dialog{max-height:85dvh;overflow:auto}#guest-space{margin:20px auto;max-width:600px}

.gestion-micro{display:inline-flex;align-items:center;gap:8px}.gestion-micro svg{display:block}.gestion-game-cards{grid-template-columns:1fr;gap:12px;margin-top:16px}.gestion-game-cards .game-card{min-height:140px}

.gestion-participants,#team-people.gestion-participants{display:grid;gap:0;min-width:0;width:100%;margin:0;flex:1 1 100%}
.gestion-person{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:10px 2px;min-width:0}
.gestion-person+.gestion-person{border-top:1px solid #e8d8bd}
.gestion-person-identity{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;column-gap:9px;flex:1;min-width:110px}
.gestion-person-identity i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;font-style:normal;font-size:11px;color:white;background:radial-gradient(circle at 25% 20%,white,#b9a8e8 30%,#7960b1);box-shadow:0 2px 3px #4e3b5d33}
.gestion-person-identity strong{font-size:13px;overflow-wrap:anywhere}
.gestion-person-identity small{grid-column:2;font-size:11px;font-weight:400;color:#796d5c;overflow-wrap:anywhere}
.gestion-person-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.gestion-person-actions .button{margin:0;box-shadow:inset 0 1px #fff9;min-height:38px}
.gestion-person-actions .gestion-micro{display:grid;place-items:center;width:34px;min-width:34px;height:34px;padding:0;border-radius:12px;opacity:1}
.gestion-person.is-speaking .gestion-person-identity i{outline:3px solid #65bd86}
.gestion-person>.gestion-game-cards{flex-basis:100%}
@media(max-width:480px){.gestion-person{gap:8px}.gestion-person-actions{gap:6px}.gestion-person-actions .button{font-size:11px;padding:7px 9px}.gestion-person-actions .gestion-micro{padding:0}}

/* Même bandeau hors de l'iframe : visible en préparation comme pendant la partie. */
.in-game #game-stage .game-controls-panel>.team{flex:0 0 auto;width:min(1112px,calc(100% - 24px));margin:10px auto 12px;max-height:min(30dvh,280px);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:480px){.in-game #game-stage .game-controls-panel>.team{width:calc(100% - 16px);margin:8px auto 10px;padding:8px 10px;max-height:32dvh}}

.in-game #resume-game{display:none}

.game-controls-panel{flex:0 0 auto;min-height:0}.game-controls-toggle,.game-controls-close,.game-controls-backdrop{display:none}
.in-game.game-controls-collapsed .game-controls-toggle{display:block;position:fixed;top:10px;right:12px;z-index:91;min-height:40px;padding:8px 14px;border:2px solid #c99756;border-radius:14px;background:#fff9e9;color:#563e24;font:700 12px system-ui;box-shadow:0 2px 8px #2d291a30}
.in-game.game-controls-collapsed .game-controls-panel{position:fixed;top:60px;right:12px;z-index:90;width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 76px);overflow:auto;background:#fff9e9;border:2px solid #e0b578;border-radius:20px;box-shadow:0 8px 30px #352b2940}
.in-game.game-controls-collapsed:not(.game-controls-open) .game-controls-panel{display:none}
.in-game.game-controls-open .game-controls-backdrop{display:block;position:fixed;inset:0;z-index:89;background:#26382b22}
.in-game.game-controls-open .game-controls-close{display:block;margin:0 auto 12px;padding:8px 18px;border:1px solid #c99756;border-radius:12px;background:#fff0d3;color:#563e24;font-weight:700}
.in-game.game-controls-open #game-stage .game-controls-panel>.team{width:calc(100% - 16px);max-height:none;margin:8px}

.game-controls-toggle.has-requests::after{content:attr(data-pending);display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:8px;padding:0 4px;border-radius:20px;background:#cf4c35;color:#fff;font-size:11px}

.gestion-ready{display:inline-block;margin-left:12px;padding:4px 10px;border-radius:99px;background:#dceac8;color:#35622c;font-size:11px;font-weight:800}.gestion-ready::before{content:"✓ ";font-weight:900}.gestion-ready.is-waiting{background:#f3e6c6;color:#786543}.gestion-ready.is-waiting::before{content:"… "}

/* Préparation : la liste indépendante ne réduit jamais la hauteur du jeu. */
@media(min-width:901px){
.in-game.game-preparing #game-stage{display:grid;grid-template-columns:310px minmax(0,1fr);grid-template-rows:54px minmax(0,1fr);gap:0;background:linear-gradient(#fff9e6aa,#faf0db99),url('/img/cour-billes.png') center/cover}
.in-game.game-preparing .game-controls-panel{display:contents}
.in-game.game-preparing .game-toolbar{grid-column:1/-1;grid-row:1;min-height:54px;padding:5px 12px}
.in-game.game-preparing #game-stage .game-controls-panel>.team{grid-column:1;grid-row:2;align-self:stretch;align-content:start;align-items:start;width:auto;min-height:0;max-height:none;margin:14px 0 18px 14px;padding:8px 12px;overflow-y:auto;border-radius:18px}
.in-game.game-preparing #game-frame-host{grid-column:2;grid-row:2;min-height:0;min-width:0}
.in-game.game-preparing .gestion-person{gap:6px;padding:9px 0}
.in-game.game-preparing .gestion-person-actions{gap:5px}
.in-game.game-preparing .gestion-person-actions .button{font-size:11px;min-height:32px;padding:5px 9px}
.in-game.game-preparing .gestion-person-actions .gestion-micro{width:34px;min-width:34px;height:34px;padding:0}
.in-game.game-preparing .gestion-ready{margin-left:5px;padding:3px 6px}
}

/* Les actions courtes restent compactes ; le raccourci de la ligne personnelle peut revenir à la ligne. */
.gestion-participants{container-type:inline-size}
.gestion-person.has-join{display:grid;grid-template-columns:minmax(110px,1fr) 34px max-content;gap:8px;align-items:center}
.gestion-person.has-join .gestion-person-identity{grid-column:1;grid-row:1;min-width:0}
.gestion-person.has-join .gestion-person-actions{display:contents}
.gestion-person.has-join .gestion-micro{grid-column:2;grid-row:1}
.gestion-person.has-join .gestion-join{grid-column:3;grid-row:1;justify-self:end;white-space:nowrap}
@container(max-width:340px){
 .gestion-person.has-join{grid-template-columns:minmax(0,1fr) 34px}
 .gestion-person.has-join .gestion-join{grid-column:1/-1;grid-row:2}
}

.gestion-person:not(.has-message){flex-wrap:nowrap}
.gestion-person:not(.has-message) .gestion-person-identity{min-width:0}
.gestion-person:not(.has-message) .gestion-person-actions{flex-wrap:nowrap;flex-shrink:0}
.gestion-person-actions .gestion-micro>span,.gestion-person-actions .gestion-contact-end>span{display:flex;align-items:center;justify-content:center;line-height:0}
.gestion-person-actions .gestion-micro svg{width:20px;height:20px;flex:none}
.gestion-person-actions .gestion-contact-end.button,.in-game.game-preparing .gestion-person-actions .gestion-contact-end.button{display:grid;place-items:center;width:34px;min-width:34px;height:34px;min-height:34px;padding:0;border-radius:12px;border:2px solid #c18a49;background:#fff0d3;color:#976229;box-shadow:none}
.gestion-person-actions .gestion-contact-end svg{display:block}

.account-scores{margin-top:24px;padding:16px;border:2px solid #dfb576;border-radius:20px;background:#fff9e9;box-shadow:0 3px #b78b5140}.account-scores>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.account-scores h2{margin:0;font-size:20px}.score-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}.score-values>div{display:flex;justify-content:space-between;gap:8px;padding:14px;border-radius:14px;background:#f0ecd9}.score-values strong{color:#2d7353}.score-filters{display:flex;gap:10px}.score-filters select{min-width:0;flex:1;padding:10px;border:1px solid #d4bb94;border-radius:12px;background:#fffdf5}.score-table{max-height:50dvh;overflow:auto}.score-table table{width:100%;border-collapse:collapse;text-align:left}.score-table th,.score-table td{padding:10px;border-bottom:1px solid #e7d7b7}.score-table thead{position:sticky;top:0;background:#fff9e9}.score-table .is-me{background:#e0f2db;font-weight:700}@media(max-width:600px){.score-values{grid-template-columns:1fr;gap:6px}.score-values>div{padding:9px}}

.tv-pairing{display:grid;gap:16px;text-align:center}.tv-pairing a{overflow-wrap:anywhere;color:#247b99}.tv-pairing .tv-code{display:block;padding:18px;border:2px dashed #d3a55e;border-radius:16px;background:#fff2ce;font:800 42px monospace;letter-spacing:5px;color:#4b633d}

/* Ligne personnelle : numéro et sac visibles sans ouvrir le menu. */
.gestion-person.has-join.has-lobby-bag{grid-template-columns:minmax(140px,1fr) max-content 34px max-content}
.gestion-person.has-lobby-bag>.bag-pill{grid-column:2;grid-row:1;white-space:nowrap;min-height:34px;margin:0}
.gestion-person.has-join.has-lobby-bag .gestion-micro{grid-column:3;grid-row:1}
.gestion-person.has-join.has-lobby-bag .gestion-join{grid-column:4;grid-row:1}
@container(max-width:520px){
 .gestion-person.has-join.has-lobby-bag{grid-template-columns:minmax(0,1fr) max-content 34px}
 .gestion-person.has-join.has-lobby-bag .gestion-join{grid-column:1/-1;grid-row:2}
 .gestion-person.has-lobby-bag .gestion-person-identity strong{font-size:12px}
 .gestion-person.has-lobby-bag>.bag-pill{font-size:11px;padding:6px 8px}
}
