:root{--duel:#0f241a;--duel-paper:#183326;--duel-muted:#bbd5c5;--duel-line:#79b09455}
.duel-top .wordmark{text-decoration:none}
.duel-cover{min-height:100svh;isolation:isolate;display:grid;place-items:center;padding:76px 15px 46px;position:relative;background:#122219}
.duel-cover::before,.duel-cover::after{content:'';position:absolute;inset:0;z-index:-1}
.duel-cover::before{background:url('./assets/explore/paris-preview.webp') center/cover}
.duel-cover::after{background:linear-gradient(#07110dbb,#101a12e9),radial-gradient(ellipse at 50% 30%,#0b402980,#1320189e)}
.duel-card{width:min(530px,100%);padding:clamp(16px,4vw,32px);border:1px solid var(--duel-line);border-radius:18px;background:#0d2419ee;box-shadow:0 16px 55px #0008}
.duel-card .eyebrow,.duel-page .eyebrow{color:#a6d9b9}
.duel-card h1,.duel-page h1{font-size:clamp(2rem,6vw,3.5rem);margin:.12em 0 .24em;line-height:1.08;letter-spacing:-.045em}
.duel-card p{margin:.45em 0;color:var(--duel-muted)}
.duel-card .duel-primary,.duel-primary{background:#80e3a0;color:#122a1d;border-color:#80e3a0}
.duel-card .action{min-height:45px}
.duel-card .primary-cta{width:100%;margin:12px 0}
.duel-join{border-top:1px solid var(--duel-line);padding-top:12px}
.duel-label{display:block;margin-bottom:6px;font-size:.82rem;font-weight:740}
.duel-field{display:flex;align-items:stretch;gap:7px}
.duel-field input{min-width:0;width:100%;padding:8px 10px;font:inherit;border:1px solid #82b49970;border-radius:9px;background:#edf5ec;color:#132219}
.duel-field .action{white-space:nowrap}
.room-link{margin:12px 0}
.room-slots,.duel-scoreboard,.duel-reveal-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.room-slot,.duel-player{display:flex;flex-direction:column;gap:3px;padding:8px 10px;border:1px solid var(--duel-line);border-radius:10px;background:var(--duel-paper)}
.room-slot small,.duel-player small{color:var(--duel-muted);font-size:.73rem}
.duel-player strong{font-size:1.25rem;line-height:1.05}
.room-slot[aria-current=true],.duel-player[aria-current=true]{border-color:#91d5ad}
.duel-status{border-top:1px solid var(--duel-line);padding-top:10px;font-size:.85rem}
.duel-notice{position:fixed;top:58px;left:50%;transform:translateX(-50%);z-index:7;width:max-content;max-width:calc(100% - 20px);background:#652e39;color:#fff;padding:8px 13px;border:1px solid #f5bcbd60;border-radius:9px}
.duel-hud{position:absolute;inset:62px 18px auto auto;display:flex;gap:8px;align-items:stretch}
.duel-scoreboard{gap:5px}
.duel-scoreboard .duel-player{padding:6px 9px;background:#12271fe9}
.duel-clock{min-width:70px;background:#12271fe9}
.duel-clock[data-low]{border-color:#ff947e;color:#ffe0d8}
.duel-scene-controls{position:absolute;left:18px;bottom:54px;display:flex;gap:6px}
.duel-scene-controls[hidden]{display:none}
.duel-guess .hint{margin:7px 2px 1px}
.duel-guess .round-actions .action{width:100%}
.duel-guess[data-locked] canvas{pointer-events:none;cursor:default}
.duel-guess[data-locked] .atlas-map__canvas{opacity:.86}
.duel-page{min-height:100svh;padding-bottom:25px;background:#132420;max-width:none;padding-inline:max(15px,calc((100% - 940px)/2))}
.duel-page .result-map{--map-height:clamp(245px,46vh,465px);--map-guess:#4944a1;--map-opponent:#b15b31;--map-answer:#1d8051}
.duel-legend{display:flex;flex-wrap:wrap;gap:7px 14px;margin:8px 0;color:#d5e9dd;font-size:.79rem}
.duel-legend i{display:inline-block;width:9px;height:9px;border-radius:50%;background:#9f97ff}
.duel-legend .opponent-dot{background:#efa16d}.duel-legend .answer-dot{background:#75cda1}
.duel-reveal-stats .duel-player{padding:10px 13px}
.duel-end{padding:10px 12px;border-radius:9px;border:1px solid #91d5ad88;background:#183428}
.duel-end p{margin:3px 0}
.duel-room-code{font-family:ui-monospace,Consolas,monospace;color:#dcf4e2;overflow-wrap:anywhere}
.duel-maker h1{margin-top:.3em}
.duel-maker-tools{display:grid;gap:7px;max-width:610px;margin:18px 0 24px;padding:15px;background:var(--duel-paper);border:1px solid var(--duel-line);border-radius:13px}
.duel-maker-tools label,.duel-maker-tools p{margin:4px 0 0}
.duel-maker-tools>input,.duel-maker-tools select{width:100%;min-height:44px;padding:7px 10px;font:inherit;border:1px solid var(--duel-line);border-radius:9px;color:#132219;background:#edf5ec}
.duel-maker-tools small{min-height:1em}
.duel-map-locations{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(235px,100%),1fr));gap:12px}
.duel-map-location{overflow:hidden;border:1px solid var(--duel-line);border-radius:10px;background:var(--duel-paper)}
.duel-map-location:has(input:checked){border-color:#80e3a0;box-shadow:0 0 0 1px #80e3a0}
.duel-map-location img{display:block;width:100%;height:auto;aspect-ratio:800/460;object-fit:cover}
.duel-map-location label{display:flex;align-items:center;gap:10px;padding:9px 10px;min-height:50px;cursor:pointer}
.duel-map-location input{width:19px;height:19px;accent-color:#80e3a0;flex:none}
.duel-map-location label small{display:block;color:var(--duel-muted)}
.duel-map-credit{padding:0 10px 10px}
@media(max-width:650px){
  .duel-cover{padding-top:61px}.duel-hud{inset:49px 8px auto auto;gap:4px}
  .duel-hud .duel-player{padding:3px 6px}.duel-hud .duel-player small{font-size:.66rem}
  .duel-hud .duel-player strong{font-size:.96rem}
  .duel-clock{min-width:52px}
  .duel-round .round-context{top:54px;max-width:34vw}
  .duel-scene-controls{top:103px;left:8px;bottom:auto}.duel-scene-controls .pill{width:38px}
  .duel-round .round-credit{top:147px}.duel-round:has(.expanded) .duel-scene-controls{display:none}
  .duel-page{padding-top:61px}
}

.duel-map-remote{display:grid;place-items:center;aspect-ratio:800/460;background:#1c382d;color:#d5e9dd;font-size:.85rem}
.duel-remote-status{position:absolute;z-index:2;top:40%;left:50%;transform:translate(-50%,-50%);max-width:85%;padding:11px 14px;border:1px solid var(--duel-line);border-radius:10px;background:#12271fea;text-align:center}
.duel-remote-status .action{margin-inline-start:8px}
.duel-remote-status[hidden],.duel-remote-status [hidden]{display:none}

.duel-maker-pages{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 13px}
#duel-return[hidden]{display:none}
