/* Keep the question, media and one clear action in the foreground. */
.help-details{margin-top:22px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.help-details summary{padding:14px 0;cursor:pointer;min-height:44px}
body[data-phase="play"] #panel>.small,body[data-phase="play"] .keyboard-hints{display:none}
body[data-phase="play"] .play-instruction{font-size:16px;font-weight:550;color:var(--ink);margin:0 0 14px}
body[data-phase="play"] .geo-panel .coordinate-controls{order:5;margin:0}
body[data-phase="play"] .geo-panel{display:flex;flex-direction:column;gap:12px}
body[data-phase="play"] .coordinate-controls summary{min-height:44px}
body[data-phase="play"] .geo-panel .guess-status{background:none;border:0;padding:0;margin:0;color:var(--muted);font-size:12px}
body[data-phase="play"] .globe-tools p{font-size:12px}
.globe-tools button{min-width:44px;min-height:44px}
body[data-phase="play"] .geo-cue h2{font-size:28px}
.photo-zoom{display:block;position:relative;width:100%;padding:0;border:0;background:none;cursor:zoom-in;color:var(--ink)}
.geo-photo{margin:16px 0 0;border:0;background:var(--surface)}
.geo-photo img{height:auto;max-height:560px;width:100%;object-fit:contain}
.photo-expand{position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#101c24bd;color:#fff;font-size:25px}
.photo-map-action,.photo-return{display:none}
.photo-credit{margin:0 0 12px}
.photo-credit summary{min-height:36px}
.photo-lightbox,#shared-dialog.photo-lightbox{width:min(1100px,96vw);max-width:none;max-height:96dvh;padding:16px;border-radius:12px}
.photo-lightbox h2{display:none}
.photo-lightbox .enlarged-photo{display:block;max-width:100%;max-height:85dvh;width:auto;height:auto;margin:20px auto 0;object-fit:contain}
body[data-phase="play"] .globe-footnote{display:none}
[data-theme-game="real-sound"] body[data-phase="play"] :is(#sound-title,#sound-caption,.stage-top){display:none}
[data-theme-game="counterweight"] body[data-phase="play"] .arm-meters{display:none}
@media(max-width:800px){
 [data-theme-game="real-sound"] .sound-stage{min-height:0;padding:18px 5%}
 [data-theme-game="real-sound"] .sound-art{height:45px;margin:0 auto 12px}
 [data-theme-game="real-sound"] #panel{padding-top:18px}
 [data-theme-game="counterweight"] .apparatus{margin-top:12px}
 [data-theme-game="counterweight"] .stage-top{display:none}
 [data-theme-game="counterweight"] .object-labels{padding-top:16px}
 [data-theme-game="counterweight"] #panel{padding-top:18px}
 [data-theme-game="counterweight"] .stage-bottom{padding:6px 12px}

 .geo-layout{margin:14px 4% 28px;gap:12px}
 .geo-rounds{margin-bottom:8px!important}
 .geo-cue h2,body[data-phase="play"] .geo-cue h2{font-size:25px;margin:6px 0 12px}
 body[data-geo-game="pinpoint"][data-phase="play"] .geo-layout{display:block}
 body[data-geo-game="pinpoint"][data-phase="play"] .geo-photo{margin-top:0;border-radius:12px}
 body[data-geo-game="pinpoint"][data-phase="play"] .geo-photo img{height:auto;max-height:56dvh;min-height:210px;object-fit:contain}
 body[data-geo-game="pinpoint"][data-phase="play"][data-photo-view="photo"] :is(.globe-stage,.geo-panel){display:none}
 body[data-geo-game="pinpoint"][data-phase="play"][data-photo-view="photo"] .photo-map-action{display:flex;margin:4px 0 0}
 body[data-geo-game="pinpoint"][data-phase="play"][data-photo-view="map"] .geo-cue :is(.geo-photo,.photo-credit,.photo-map-action){display:none}
 body[data-geo-game="pinpoint"][data-phase="play"][data-photo-view="map"] .photo-return{display:block;align-self:flex-start;border:0;background:none;color:var(--accent);min-height:44px;padding:6px 0;font:13px system-ui}
 body[data-geo-game="pinpoint"][data-phase="play"][data-photo-view="map"] .globe-stage{margin-bottom:8px}
 .globe-canvas{height:min(44dvh,370px)}
 .globe-stage{border:0;background:none}
 .globe-tools{padding:0 0 8px}
 .globe-tools p{max-width:none;font-size:11px!important}
 .globe-tools>div{gap:3px}
 .geo-primary{min-height:52px;font-size:14px}
 body[data-phase="play"] .geo-panel .guess-status{display:none}
 .coordinate-controls{font-size:12px}
 body[data-phase="play"] .play-instruction{font-size:16px;margin-bottom:12px!important}
 [data-theme-game="real-time"] .screen-area{margin:12px 4% 0}
 [data-theme-game="real-time"] #panel{padding:16px 5% 24px}
 [data-theme-game="real-time"] .screen-top{display:none}
 [data-theme-game="real-time"] .screen-bottom{margin-top:6px}
 [data-theme-game="real-time"] .control-note{display:none}
 [data-theme-game="ballpark"] .game-layout{padding:20px 5% 32px}
 [data-theme-game="ballpark"] .game-panel h2.question{font-size:27px;line-height:1.3;margin:18px 0}
 [data-theme-game="counterweight"] #stage-caption{display:none}
 body[data-geo-game="headcount"][data-phase="play"] .globe-stage{display:none}
 body[data-geo-game="headcount"][data-phase="play"] .geo-panel{grid-row:2}
 body[data-geo-game="headcount"][data-phase="play"] .geo-layout{min-height:55dvh;align-content:start}
}

[data-theme-game="real-time"] body[data-phase="practice"] #panel h1{font-size:30px;letter-spacing:-1px;margin:0 0 20px}
.practice-count{font-size:12px;color:var(--muted);margin:16px 0}
.practice-pills button{min-height:44px}

/* The globe gets the space; precise controls stay within thumb reach. */
.globe-tools .pin-center{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:85px;width:auto;padding:0 10px;font:14px system-ui;background:var(--surface);color:var(--accent);border:1px solid var(--line);border-radius:8px}
.globe-tools .pin-center>span{font-size:12px;white-space:nowrap}
.globe-tools button:disabled{opacity:.3;cursor:default}
.globe-tools button:not(:disabled):hover{background:var(--theme-raised)}
.camera-views{display:flex;justify-content:center;gap:8px;padding:0 12px 12px}
.camera-views button{min-height:44px;padding:7px 14px;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--muted);font:12px system-ui}
.camera-views button:first-child{color:var(--theme-game-accent,var(--accent))}
.camera-views button:hover{color:var(--ink);background:var(--theme-raised)}
body[data-location-game="true"] .globe-stage{background:radial-gradient(ellipse at 50% 50%,var(--theme-raised),transparent 73%);border-color:transparent}
body[data-location-game="true"] .globe-tools{gap:8px}
body[data-location-game="true"] .globe-tools>div{margin-left:auto}
@media(min-width:801px){
 body[data-location-game="true"][data-phase="play"] .geo-layout{grid-template-columns:minmax(280px,.8fr) minmax(0,1.25fr);gap:0 32px;margin-top:22px}
 body[data-location-game="true"] .globe-canvas{height:clamp(400px,calc(100dvh - 235px),710px);aspect-ratio:auto}
 body[data-location-game="true"] .geo-photo img{max-height:min(53dvh,560px)}
}
@media(max-width:800px){
 body[data-location-game="true"]{--world-mix-height:0px}
 body[data-location-game="true"][data-mix]{--world-mix-height:36px}
 body[data-location-game="true"] #mix-step{height:36px;min-height:36px;padding:0;font-size:10px}
 body[data-location-game="true"][data-phase="play"] .geo-layout{margin-top:10px;gap:8px}
 body[data-location-game="true"][data-phase="play"] .globe-canvas{height:clamp(160px,min(calc(100svh - 365px - var(--world-mix-height)),calc(100vw - 32px)),520px);max-height:none}
 body[data-location-game="true"][data-phase="play"] .geo-cue h2{margin:4px 0 8px;font-size:24px}
 body[data-location-game="true"][data-phase="play"] .geo-cue>.geo-small{margin:0 0 6px}
 body[data-location-game="true"] .globe-tools{padding:0 0 5px}
 body[data-location-game="true"] .globe-tools>div{gap:2px}
 body[data-location-game="true"] .globe-tools>div>button{width:44px;height:44px}
 body[data-location-game="true"][data-phase="play"] .geo-panel{gap:6px}
 body[data-location-game="true"][data-phase="play"] .coordinate-controls summary{min-height:36px}
 body[data-location-game="true"][data-phase="play"] .photo-return{min-height:36px}
 body[data-location-game="true"][data-phase="reveal"] .globe-canvas{height:min(45svh,420px)}
 body[data-location-game="true"] .camera-views{padding:0 0 8px;gap:6px}
}
