/* Grille compacte des trois défis publics : trois colonnes sur desktop. */
.battle-page main.battle-shell{box-sizing:border-box;width:min(1320px,calc(100% - 32px))!important;max-width:1320px!important;padding:14px 0 56px}
.battle-page .battle-hero{min-height:180px;padding:26px 30px;border-radius:22px}
.battle-page .battle-hero h1{font-size:clamp(38px,4.3vw,58px)}
.battle-page .battle-live{margin-top:16px}
.battle-page .battle-live [data-battle-participants]{display:inline-flex;align-items:center;margin-left:8px;padding:5px 9px;border:1px solid #ffffff2b;border-radius:999px;background:#ffffff12;color:#cce8ff;font-size:11px;font-weight:800;white-space:nowrap}
.battle-page .battle-choices button [data-community]{font-size:10px;line-height:1.15;white-space:normal}
@media(max-width:640px){.battle-page .battle-live [data-battle-participants]{margin-left:0}}
.battle-page .battle-score{width:150px;flex-basis:150px;padding:14px}
.battle-page .battle-score strong{font-size:34px}
.battle-page .battle-intro{margin:22px 4px 12px}
.battle-page .battle-intro h2{font-size:25px}
.battle-page .battle-grid.battle-grid--three{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:none}
.battle-page .battle-grid--three .battle-card{min-width:0;grid-column:auto}
.battle-page .battle-grid--three .battle-card--daily>header{gap:8px;padding:13px 14px}
.battle-page .battle-grid--three .battle-card--daily>header span{min-width:0;overflow-wrap:anywhere}
.battle-page .battle-grid--three .battle-card--daily .battle-question-prompt{margin:15px 14px 0;font-size:clamp(17px,1.55vw,22px);line-height:1.15;overflow-wrap:anywhere}
.battle-page .battle-grid--three .battle-card--daily .battle-player{min-height:210px;margin-top:12px;padding:18px 12px 0}
.battle-page .battle-grid--three .battle-card--daily .battle-player>div{max-width:60%;min-width:0}
.battle-page .battle-grid--three .battle-card--daily .battle-player h2{font-size:clamp(26px,2.35vw,36px);overflow-wrap:anywhere}
.battle-page .battle-grid--three .battle-card--daily .battle-player p{font-size:12px;overflow-wrap:anywhere}
.battle-page .battle-grid--three .battle-card--daily .battle-player img{right:0;width:48%;max-height:210px}
.battle-page .battle-grid--three .battle-card--daily .battle-duel{min-height:205px;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);gap:3px;margin:12px 10px;padding:12px 4px;border-radius:16px}
.battle-page .battle-grid--three .battle-card--daily .battle-duel img{width:min(100%,128px);height:130px}
.battle-page .battle-grid--three .battle-card--daily .battle-duel b{max-width:100%;padding:5px 6px;font-size:clamp(12px,1.1vw,16px);overflow-wrap:anywhere;text-align:center}
.battle-page .battle-grid--three .battle-card--daily .battle-duel>div small{font-size:9px;line-height:1.25;overflow-wrap:anywhere;text-align:center}
.battle-page .battle-grid--three .battle-card--daily .battle-duel>span{width:40px;height:40px}
.battle-page .battle-grid--three .battle-card--daily .battle-duel>span strong{font-size:12px}
.battle-page .battle-grid--three .battle-card--daily .battle-choices{gap:7px;margin:0 10px 12px;padding:0}
.battle-page .battle-grid--three .battle-card--daily .battle-choices button{min-width:0;min-height:64px;padding:8px;border-radius:12px}
.battle-page .battle-grid--three .battle-card--daily .battle-choices button b{font-size:clamp(13px,1.15vw,16px);overflow-wrap:anywhere}
.battle-page .battle-grid--three .battle-card--daily .battle-choices button span{font-size:10px}
.battle-page .battle-grid--three .battle-card--daily footer{min-height:0;padding:0 12px 14px;font-size:11px;overflow-wrap:anywhere}
@media(max-width:1050px){
  .battle-page .battle-grid.battle-grid--three{grid-template-columns:repeat(2,minmax(0,1fr))}
  .battle-page .battle-grid--three .battle-card:last-child{grid-column:1/-1;width:min(100%,calc((100% - 14px)/2));justify-self:center}
}
@media(max-width:700px){
  .battle-page main.battle-shell{width:calc(100% - 24px)!important;padding-top:10px}
  .battle-page .battle-hero{padding:22px 18px;border-radius:18px}
  .battle-page .battle-grid.battle-grid--three{grid-template-columns:minmax(0,1fr);gap:12px}
  .battle-page .battle-grid--three .battle-card:last-child{grid-column:auto;width:auto;justify-self:stretch}
  .battle-page .battle-grid--three .battle-card--daily .battle-question-prompt{font-size:21px}
  .battle-page .battle-grid--three .battle-card--daily .battle-player{min-height:235px;padding:20px 16px 0}
  .battle-page .battle-grid--three .battle-card--daily .battle-player h2{font-size:clamp(28px,8vw,38px)}
  .battle-page .battle-grid--three .battle-card--daily .battle-player img{max-height:235px}
  .battle-page .battle-grid--three .battle-card--daily .battle-duel{min-height:205px;grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr);margin:12px;padding:14px 6px}
  .battle-page .battle-grid--three .battle-card--daily .battle-duel img{width:min(100%,140px);height:142px}
  .battle-page .battle-grid--three .battle-card--daily .battle-duel b{font-size:16px}
}

/* Une composition unique pour les trois défis : titre, visuel, vote. */
.battle-page .battle-grid.battle-grid--three{align-items:stretch;gap:14px}
.battle-page .battle-grid--three .battle-card--daily{display:flex;height:100%;min-height:0;flex-direction:column;box-sizing:border-box}
.battle-page .battle-grid--three .battle-card--daily>header{flex:0 0 42px;box-sizing:border-box}
.battle-page .battle-grid--three .battle-card--daily .battle-question-prompt{display:flex;min-height:76px;flex:0 0 76px;align-items:center;box-sizing:border-box;margin:0;padding:12px 15px;border-bottom:1px solid #e8edf3;font-size:clamp(17px,1.4vw,20px);line-height:1.2}
.battle-page .battle-grid--three .battle-card--daily .battle-player,
.battle-page .battle-grid--three .battle-card--daily .battle-team{height:194px;min-height:194px;flex:0 0 194px;box-sizing:border-box;margin:0;padding:16px 14px 0}
.battle-page .battle-grid--three .battle-card--daily .battle-player>div,
.battle-page .battle-grid--three .battle-card--daily .battle-team>div{max-width:58%;min-width:0}
.battle-page .battle-grid--three .battle-card--daily .battle-player h2,
.battle-page .battle-grid--three .battle-card--daily .battle-team h2{font-size:clamp(25px,2.1vw,32px);line-height:1;overflow-wrap:anywhere}
.battle-page .battle-grid--three .battle-card--daily .battle-player p,
.battle-page .battle-grid--three .battle-card--daily .battle-team p{font-size:11px;line-height:1.4}
.battle-page .battle-grid--three .battle-card--daily .battle-player img{right:1%;width:43%;height:190px;max-height:190px}
.battle-page .battle-grid--three .battle-card--daily .battle-duel{height:194px;min-height:194px;flex:0 0 194px;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);box-sizing:border-box;margin:0;padding:8px 12px 0;border-radius:0}
.battle-page .battle-grid--three .battle-card--daily .battle-duel img{width:min(100%,118px);height:145px}
.battle-page .battle-grid--three .battle-card--daily .battle-duel b{margin-top:-13px;font-size:13px}
.battle-page .battle-grid--three .battle-card--daily .battle-duel>span{width:38px;height:38px}
.battle-page .battle-grid--three .battle-card--daily .battle-choices{flex:0 0 auto;gap:8px;margin:auto 10px 0;padding:10px 0 8px}
.battle-page .battle-grid--three .battle-card--daily .battle-choices button{min-height:62px;padding:8px 9px}
.battle-page .battle-grid--three .battle-card--daily .battle-choices button b{font-size:14px;line-height:1.2}
.battle-page .battle-grid--three .battle-card--daily footer{min-height:54px;flex:0 0 54px;box-sizing:border-box;padding:8px 12px 12px;font-size:10px;line-height:1.35}
@media(max-width:1050px){
  .battle-page .battle-grid--three .battle-card--daily:last-child{width:auto}
}
@media(max-width:700px){
  .battle-page .battle-grid.battle-grid--three{gap:12px}
  .battle-page .battle-grid--three .battle-card--daily .battle-question-prompt{min-height:68px;flex-basis:68px;font-size:18px}
  .battle-page .battle-grid--three .battle-card--daily .battle-player,
  .battle-page .battle-grid--three .battle-card--daily .battle-team{height:210px;min-height:210px;flex-basis:210px}
  .battle-page .battle-grid--three .battle-card--daily .battle-player img{height:205px;max-height:205px}
  .battle-page .battle-grid--three .battle-card--daily .battle-duel{height:210px;min-height:210px;flex-basis:210px;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr)}
  .battle-page .battle-grid--three .battle-card--daily .battle-duel img{height:155px}
}

/* Le face-à-face garde les portraits et les infos dans leurs propres zones. */
.battle-page .battle-grid--three .battle-card--daily .battle-duel{align-items:stretch;background:linear-gradient(120deg,#eef6ff,#f8fbff 50%,#fff3f4);color:#132b46}
.battle-page .battle-grid--three .battle-card--daily .battle-duel>div{align-self:stretch;justify-content:flex-start;min-width:0;padding-top:3px}
.battle-page .battle-grid--three .battle-card--daily .battle-duel img{display:block;width:min(100%,112px);height:122px;flex:0 0 122px;margin:0 auto;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 5px 8px #102e4c20)}
.battle-page .battle-grid--three .battle-card--daily .battle-duel b{display:block;max-width:100%;margin:5px 0 0;padding:5px 8px;border:1px solid #dce8f4;border-radius:999px;background:#fff;color:#102947;font-size:clamp(12px,1.15vw,15px);line-height:1.15;text-align:center;overflow-wrap:anywhere}
.battle-page .battle-grid--three .battle-card--daily .battle-duel>div small{display:block;width:100%;max-height:28px;margin-top:5px;overflow:hidden;color:#61758c;font-size:9px;line-height:1.3;text-overflow:ellipsis;text-align:center}
.battle-page .battle-grid--three .battle-card--daily .battle-duel .battle-form-bars{display:none!important}
.battle-page .battle-grid--three .battle-card--daily .battle-duel>span{position:relative;align-self:center;display:flex;width:42px;height:42px;align-items:center;flex-direction:column;justify-content:center;border:0;border-radius:50%;background:#0c3b6a;box-shadow:0 4px 12px #0c3b6a26;color:#fff}
.battle-page .battle-grid--three .battle-card--daily .battle-duel>span small{position:absolute;bottom:calc(100% + 7px);left:50%;display:block;width:max-content;transform:translateX(-50%);color:#376487;font-size:8px;line-height:1;letter-spacing:.06em;white-space:nowrap}
.battle-page .battle-grid--three .battle-card--daily .battle-duel>span strong{color:#fff;font-size:16px;line-height:1}
.battle-page .battle-grid--three .battle-card--daily .battle-context{display:-webkit-box;min-height:32px;max-height:32px;box-sizing:border-box;margin:0 12px 4px;padding:5px 7px;overflow:hidden;border-radius:8px;background:#f5f8fc;color:#63768c;font-size:9px;line-height:1.25;text-align:center;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.battle-page .battle-grid--three .battle-card--daily .battle-context[hidden]{display:none!important}

.battle-preview-banner{display:flex;align-items:center;gap:14px;box-sizing:border-box;width:min(1320px,calc(100% - 32px));margin:16px auto 0;padding:13px 16px;border:1px solid #b9d8fa;border-radius:12px;background:#eaf4ff;color:#15375b;font-size:13px}
.battle-preview-banner strong{flex:0 0 auto;color:#0758a5;font-size:12px;letter-spacing:.06em}
.battle-preview-banner span{flex:1}
.battle-preview-banner a{flex:0 0 auto;color:#0758a5;font-weight:800;text-decoration:none}
.battle-page--preview .battle-score,.battle-page--preview .battle-login-nudge,.battle-page--preview .battle-complete,.battle-page--preview .battle-ranking,.battle-page--preview .battle-history,.battle-page--preview .battle-loop,.battle-page--preview .battle-reset,.battle-page--preview .battle-podium{display:none!important}
.battle-page--preview .battle-grid--three .battle-choices button{cursor:default;opacity:1}
@media(max-width:700px){.battle-preview-banner{align-items:flex-start;flex-direction:column;gap:5px;width:calc(100% - 24px);margin-top:10px}.battle-preview-banner a{margin-top:5px}}
