/* Une manche : deux vues sur téléphone, deux panneaux sur grand écran. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.game-page{padding-top:12px}
.round-hud{position:sticky;top:0;z-index:1100;background:var(--yellow);padding:12px 0 15px;margin-bottom:8px}
.round-hud-top{display:flex;align-items:center;gap:20px}
.round-heading{flex:1;min-width:0}
.round-eyebrow{display:block;font-size:10px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;margin-bottom:6px}
.game-page .game-label{font-size:35px;line-height:1.1;letter-spacing:-.05em;margin:0}
.game-label small{font-size:.65em;color:var(--ink);font-weight:600}
.round-hud .score-mini{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:20px;border:2px solid var(--ink);border-radius:9px;padding:9px 12px;gap:7px}
.score-mini small{font-family:'Manrope',sans-serif;font-size:10px;letter-spacing:.04em}
.round-clock{display:flex;align-items:center;gap:10px}
.clock-label{font-size:10px;font-weight:700;color:var(--muted);max-width:70px;line-height:1.4}
.game-page .timer{display:flex;align-items:center;justify-content:center;gap:7px;min-width:92px;min-height:51px;padding:7px 10px;background:var(--purple);font-variant-numeric:tabular-nums}
.timer small{font-family:'Manrope',sans-serif;font-size:12px}
.timer .icon{width:20px;height:20px}
.round-clock.urgent .timer{background:var(--coral)}
.round-time-track{height:6px;border:1px solid var(--ink);border-radius:4px;margin-top:15px;overflow:hidden;background:var(--cream)}
.round-time-track>span{display:block;width:100%;height:100%;background:var(--ink);transform-origin:left center;will-change:transform}
.round-time-track>span.urgent{background:var(--coral)}
.game-tabs{display:none}
.game-page .game-layout{align-items:start}
.game-page .card-header{min-height:46px}
.game-page .card-header>span{min-width:0}
.game-map-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.game-page .photo-viewport,.game-page .map{height:clamp(330px,49vh,540px)}
.game-page .photo-credit{font-size:10px;line-height:1.6;padding:9px 12px;margin:0;min-height:48px;overflow-wrap:anywhere}
.photo-loading{padding:20px;text-align:center;font-size:13px;line-height:1.6}
.game-page .photo-overlay{max-width:calc(100% - 28px)}
.game-actionbar{display:flex;align-items:center;gap:18px;padding:22px 0 12px}
.round-progress{flex:0 0 auto}
.guess-feedback{font-size:12px;font-weight:600;line-height:1.5;margin:0;flex:1;min-width:0}
.round-submit{min-width:215px}
.round-result-mini{display:flex;align-items:center;gap:15px;flex:1}
.round-result-mini strong{display:inline-flex;align-items:center;gap:7px;font-family:'Space Grotesk',sans-serif;font-size:25px;letter-spacing:-.03em}
.round-result-mini>span{font-size:12px;font-weight:600}
.round-next{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700}
.round-next .icon{width:17px;height:17px}
.game-page .map-instructions{font-size:12px;line-height:1.5}
.map-legend{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.map-legend>span{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700}
.legend-pin{display:inline-block;width:12px;height:16px;border:2px solid var(--ink);border-radius:8px 8px 8px 0;transform:rotate(-45deg);background:var(--coral)}
.legend-pin.answer-pin{background:var(--ink)}
.game-page .answer{margin-top:10px;padding:25px}
.game-page .answer h2{margin:16px 0 7px;font-size:32px;line-height:1.15}
.answer-town{font-size:14px;font-weight:600;margin:0;color:var(--muted)}
.answer-stats{display:flex;gap:35px;padding:20px 0;margin-top:5px}
.answer-stats>div{display:flex;flex-direction:column;gap:7px}
.answer-stats>div>span{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.answer-stats strong{font-family:'Space Grotesk',sans-serif;font-size:34px;font-weight:700;letter-spacing:-.05em}
.answer-stats strong small{font-size:15px}
.game-page .answer .credit{margin-bottom:0;overflow-wrap:anywhere}
@media(max-width:1000px) and (min-width:851px){.game-actionbar{gap:12px}.round-progress .progress-dots{gap:4px}.round-progress .progress-dots span{width:10px;height:10px}.round-submit{min-width:195px}.game-page .card-header small{font-size:8px}.game-page .card-header>span{font-size:11px}}
@media(max-width:850px){
  .shell-game{padding:12px 16px calc(135px + env(safe-area-inset-bottom,0px))}
  .shell-game .topbar{min-height:48px;margin-bottom:0;padding-bottom:10px;gap:10px;border-width:2px}
  .shell-game .brand-icon{width:34px;height:34px}
  .shell-game .brand-name{font-size:25px;letter-spacing:-1.4px}
  .shell-game .top-pill{max-width:50%;font-size:9px;padding:7px 9px;letter-spacing:.03em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block}
  .shell-game .footer{display:none}
  .game-page{padding-top:0}
  .round-hud{padding:12px 0 13px;margin-bottom:0;top:0}
  .round-hud-top{gap:10px}
  .round-eyebrow{font-size:8px;letter-spacing:.06em;margin-bottom:4px}
  .game-page .game-label{font-size:25px;white-space:nowrap;letter-spacing:-.04em}
  .round-hud .score-mini{font-size:16px;padding:7px 9px;gap:5px;background:var(--blue)}
  .round-hud .score-mini .icon{width:16px;height:16px}
  .score-mini small{font-size:8px}
  .round-clock{gap:0}
  .clock-label{display:none}
  .game-page .timer{min-width:75px;min-height:47px;font-size:24px;border-width:2px;box-shadow:2px 2px 0 var(--ink);gap:5px;padding:6px 8px}
  .timer .icon{width:17px;height:17px}.timer small{font-size:10px}
  .round-time-track{margin-top:10px;height:5px}
  .game-tabs{display:flex;gap:0;border:2px solid var(--ink);border-radius:10px;overflow:hidden;margin-top:12px;background:var(--cream)}
  .game-tabs button{display:flex;flex:1;align-items:center;justify-content:center;gap:8px;min-height:44px;border:0;background:var(--cream);font:800 12px 'Manrope',sans-serif;cursor:pointer;position:relative;padding:10px}
  .game-tabs button+button{border-left:2px solid var(--ink)}
  .game-tabs button[aria-pressed=true]{background:var(--ink);color:var(--cream)}
  .game-tabs button:focus-visible{outline-offset:-4px;z-index:1}
  .game-tabs .icon{width:18px;height:18px}
  .point-ready{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--purple);border:1px solid var(--ink);color:var(--ink)}
  .point-ready .icon{width:14px;height:14px}
  .point-ready[hidden]{display:none}
  .game-page .game-layout{display:block}
  .game-page[data-view=photo] .game-map-panel,.game-page[data-view=map] .game-photo-panel{display:none}
  .game-page .game-card{border-width:2px;border-radius:12px;box-shadow:3px 3px 0 var(--ink)}
  .game-page .card-header{min-height:38px;padding:9px 10px;gap:8px}
  .game-page .card-header>span{font-size:11px;gap:6px}
  .game-page .card-header>span .icon{width:16px;height:16px}
  .game-page .card-header small{font-size:8px;letter-spacing:0;flex-shrink:0}
  .game-page .photo-viewport,.game-page .map{height:clamp(220px,calc(100vh - 380px),560px);height:clamp(220px,calc(100svh - 380px),560px);min-height:220px}
  .game-page .photo-credit{font-size:9px;padding:7px 10px;line-height:1.5;min-height:34px}
  .game-page:not(.round-reveal) .map-instructions{display:none}
  .game-page .map-instructions{min-height:38px;padding:9px 11px}
  .game-page .photo-overlay{font-size:10px;bottom:10px;left:10px;padding:6px 8px;gap:5px}
  .photo-overlay .icon{width:16px;height:16px}
  .game-actionbar{position:fixed;left:0;right:0;bottom:0;z-index:1100;display:flex;flex-direction:column;align-items:stretch;gap:9px;padding:10px 16px calc(13px + env(safe-area-inset-bottom,0px));border-top:3px solid var(--ink);background:var(--yellow)}
  .round-progress{display:none}
  .guess-feedback{font-size:10px;line-height:1.4;min-height:15px;text-align:center;flex:none}
  .game-page .round-submit{min-height:49px;width:100%;min-width:0;font-size:13px;border-width:2px;box-shadow:3px 3px 0 var(--ink)}
  .round-submit:disabled{opacity:.6;box-shadow:2px 2px 0 var(--ink)}
  .round-result-mini{justify-content:space-between;gap:12px}
  .round-result-mini strong{font-size:25px}.round-result-mini>span{font-size:12px}
  .round-next{justify-content:center;font-size:10px;border-top:1px solid var(--ink);padding-top:8px}
  .game-page .answer{padding:19px 16px;border-width:2px;box-shadow:3px 3px 0 var(--ink);margin-top:20px}
  .game-page .answer h2{font-size:28px;margin-top:14px}
  .answer-town{font-size:12px}
  .answer-stats{gap:28px;padding:17px 0}.answer-stats strong{font-size:30px}
  .answer-stats>div>span{font-size:9px}
  body:has(.shell-game) #toast{bottom:calc(124px + env(safe-area-inset-bottom,0px));font-size:12px;max-width:calc(100% - 32px);text-align:center}
}
@media(max-width:370px){.round-hud-top{gap:7px}.round-hud .score-mini{font-size:13px;padding:7px 6px}.round-hud .score-mini .icon{display:none}.game-page .game-label{font-size:21px}.game-page .timer{min-width:66px;font-size:21px;padding:6px;gap:3px}.timer .icon{display:none}.game-page .card-header small{font-size:7px}.shell-game .brand-name{font-size:23px}.game-tabs button{font-size:11px}}
@media(max-width:850px) and (max-height:600px){.game-page .photo-viewport,.game-page .map{height:240px}.round-hud{padding-top:8px;padding-bottom:9px}.game-tabs{margin-top:8px}.game-tabs button{min-height:38px}.round-time-track{margin-top:7px}}
