/* "Where was the battle?" map game. Builds on play.css (load that first). */
.play.geo { padding:28px 24px 26px; }
.geo-q { text-align:center; margin:.4rem 0 1rem; }
.geo-when { font-family:var(--font-mono); font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--gold-bright); }
.geo-name { font-family:var(--font-display); font-size:clamp(1.45rem,4.8vw,2.1rem); color:#fff6e2; line-height:1.15; margin:.3rem 0 .35rem; }
.geo-place { color:var(--muted); font-size:.95rem; }
.geo-mapwrap { position:relative; border-radius:16px; overflow:hidden; border:1px solid var(--gold-line); box-shadow:0 24px 50px -30px #000; background:#14222c; }
.geo-map { display:block; width:100%; height:min(58vh,520px); min-height:300px; touch-action:none; cursor:crosshair; outline:none; }
.geo-map.dragging { cursor:grabbing; }
.geo-map:focus-visible { box-shadow:inset 0 0 0 2px var(--gold); }
.geo-sum .geo-map { height:min(42vh,340px); min-height:220px; cursor:default; touch-action:auto; }
.geo-zoom { position:absolute; right:10px; top:10px; display:flex; flex-direction:column; gap:6px; }
.geo-zoom button { width:38px; height:38px; border-radius:10px; border:1px solid var(--gold-line); background:rgba(10,8,6,.78); color:var(--gold-bright); font-size:1.25rem; line-height:1; cursor:pointer; display:grid; place-items:center; }
.geo-zoom button:hover { border-color:var(--gold); }
.geo-zoom svg { width:18px; height:18px; fill:currentColor; }
.geo-credit { position:absolute; left:8px; bottom:6px; font-size:10px; color:rgba(232,226,212,.55); pointer-events:none; }
.geo-hintrow { display:flex; justify-content:center; margin:.8rem 0 .2rem; min-height:2.4rem; align-items:center; }
.geo-hintrow .pl-hintnote { color:var(--gold-bright); font-size:.95rem; text-align:center; }
#geo-confirm[disabled] { opacity:.55; cursor:not-allowed; }

/* slide-out story panel */
.geo-panel { margin:1.1rem auto 0; max-width:640px; border:1px solid var(--gold-line); border-radius:18px; overflow:hidden; background:linear-gradient(180deg,var(--card-2),var(--card));
  transform:translateY(28px); opacity:0; transition:transform .55s cubic-bezier(.2,.8,.2,1), opacity .45s ease; }
.geo-panel.open { transform:none; opacity:1; }
.geo-res { display:flex; justify-content:space-between; align-items:baseline; gap:1rem; padding:.85rem 1.1rem; border-bottom:1px solid var(--gold-line); }
.geo-dist { font-family:var(--font-display); font-size:1.15rem; color:var(--text); }
.geo-pts { font-family:var(--font-mono); font-size:1rem; font-weight:700; }
.geo-res.ok .geo-pts { color:#5bef95; } .geo-res.mid .geo-pts { color:#f0d28c; } .geo-res.no .geo-pts { color:#ff8a8a; }
.geo-fig { margin:0; aspect-ratio:16/8; overflow:hidden; background:#0d0d0f; }
.geo-fig img { width:100%; height:100%; object-fit:cover; display:block; }
.geo-body { padding:1rem 1.15rem 1.15rem; }
.geo-h { font-family:var(--font-display); font-size:1.35rem; color:var(--text); margin:.25rem 0 .5rem; }
.geo-desc { color:var(--muted); line-height:1.65; margin:0 0 .9rem; }
.geo-sh { font-family:var(--font-mono); font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--gold); margin-bottom:.4rem; }
.geo-tw { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.geo-stats table { width:100%; border-collapse:collapse; font-size:.88rem; min-width:360px; }
.geo-stats th, .geo-stats td { padding:.4rem .55rem; border-bottom:1px solid var(--gold-line); text-align:right; white-space:nowrap; }
.geo-stats thead th { font-weight:600; color:var(--gold-bright); font-size:.78rem; }
.geo-stats th:first-child { text-align:left; white-space:normal; color:var(--text); }
.geo-stats tbody th { font-weight:500; }
.geo-body .pl-fbrow { justify-content:space-between; margin-top:1rem; }
.geo-sum { margin:1rem auto 1.1rem; max-width:640px; }
.pl-recap .geo-rd { margin-left:auto; color:var(--muted); font-family:var(--font-mono); font-size:.78rem; }
.pl-recap li a { flex:1; min-width:0; }
@media (max-width:560px) {
  .play.geo { padding:22px 12px 20px; }
  .geo-map { height:min(56vh,460px); }
  .geo-body .pl-fbrow { flex-direction:column-reverse; align-items:stretch; text-align:center; }
}
@media (prefers-reduced-motion:reduce) { .geo-panel { transition:none; transform:none; } }
.geo-h a { color:inherit; text-decoration:none; }
.geo-h a:hover { color:var(--gold-bright); }
.geo-desc a.xlink { color:var(--gold-bright); text-decoration:underline; text-decoration-color:rgba(240,210,140,.4); text-underline-offset:2px; }
.geo-fig a { display:block; width:100%; height:100%; }
