/* Districts — pokaz mechanik. Nawigacja poza mapą; czas gry wyłącznie w nagrody.js. */
.nagrody { padding-block:48px; scroll-margin-top:80px; }
.nagrody .sekcja-glowa h2 { font-size:clamp(27px,3.2vw,44px); }
.nagrody-wstep { color:var(--cichy); font-size:16px; margin-top:12px; }
.mg-demo { --accent:var(--bieg); margin-top:26px; color:#dadada; }
.mg-demo *, .mg-demo *::before, .mg-demo *::after { box-sizing:border-box; }
.mg-demo [hidden] { display:none!important; }
.mg-demo button { font:600 13px/1.2 var(--wyswietlacz); cursor:pointer; border:0; border-radius:3px; color:inherit; background:none; }
.mg-demo button:focus-visible, .mg-demo input:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.mg-toolbar { display:flex; justify-content:space-between; align-items:center; min-height:68px; padding:10px 0; gap:14px; }
.mg-options, .mg-activities { display:flex; align-items:center; gap:4px; min-width:0; }
.mg-options { flex-wrap:wrap; }
.mg-toolbar button { min-height:44px; padding:8px 14px; color:#969a9a; border:1px solid transparent; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.mg-options button { background:#222; border-color:#353633; }
.mg-options button[aria-pressed=true] { background:var(--accent); color:#181818; border-color:var(--accent); }
.mg-options img { width:35px; height:26px; object-fit:contain; }
.mg-options .mg-option-label { font:600 12px var(--wyswietlacz); text-transform:uppercase; letter-spacing:.08em; color:#a0a29c; padding-left:2px; }
.mg-activities button { padding-inline:10px; }
.mg-activities button img { width:25px; height:25px; background:var(--activity-color); padding:3px; border-radius:3px; }
.mg-activities button[aria-pressed=true] { color:#f3ede8; border-color:#55584b; background:#252722; }
.mg-body { display:grid; grid-template-columns:minmax(0,1fr) 340px; height:430px; border:1px solid #3a3c35; border-radius:3px; overflow:hidden; background:#222; }
.mg-map { position:relative; min-width:0; overflow:hidden; background:#181818; }
.mg-stage-content { position:absolute; inset:0; opacity:1; }
.mg-world { position:absolute; width:100%; height:100%; inset:0; overflow:hidden; }
.mg-world>image { opacity:.88; }
.mg-map-caption { position:absolute; z-index:2; top:16px; left:20px; right:20px; display:flex; justify-content:space-between; gap:10px; pointer-events:none; font:600 11px/1.3 var(--wyswietlacz); text-transform:uppercase; letter-spacing:.06em; }
.mg-map-caption span { background:#181818e8; padding:6px 8px; border:1px solid #383a34; border-radius:2px; }
.mg-map-caption span:last-child { color:var(--accent); }
.mg-map-legend { position:absolute; z-index:2; bottom:16px; left:20px; display:flex; gap:16px; padding:6px 8px; background:#181818ec; border-radius:2px; pointer-events:none; }
.mg-map-legend span { display:flex; gap:6px; align-items:center; font-size:11px; line-height:1.3; white-space:nowrap; }
.mg-map-legend i { width:9px; height:9px; border-radius:50%; background:var(--owner); }
.mg-osm { position:absolute; right:10px; bottom:7px; font-size:9px; color:#9b9d99; text-decoration:none; z-index:3; }
.mg-world .mg-territory { stroke-width:3; stroke-linejoin:round; vector-effect:non-scaling-stroke; fill-opacity:.26; }
.mg-world .mg-trace { fill:none; stroke-width:4; stroke-linecap:round; stroke-linejoin:round; vector-effect:none; }
.mg-world .mg-trace-shadow { stroke:#161816; stroke-width:7; opacity:.9; }
.mg-world .mg-zone { stroke-width:2; stroke-dasharray:8 6; stroke-linejoin:round; fill-opacity:.12; vector-effect:non-scaling-stroke; }
.mg-world .mg-zone-gold { stroke-dasharray:none; stroke-width:3; fill-opacity:.13; }
.mg-world .mg-destination { fill:#191919; stroke:#dadada; stroke-width:1.5; vector-effect:non-scaling-stroke; }
.mg-actors { position:absolute; inset:0; pointer-events:none; }
.mg-player, .mg-pin, .mg-chest, .mg-map-label, .mg-endpoint { position:absolute; left:0; top:0; will-change:transform; }
.mg-player { width:0; height:0; --owner:#bce92c; z-index:3; }
.mg-player-art { position:absolute; width:38px; height:44px; object-fit:contain; left:-19px; bottom:2px; filter:drop-shadow(0 2px 2px #1119); }
.mg-player[data-player=lola] .mg-player-art { width:41px; height:48px; left:-20.5px; }
.mg-player-ring { position:absolute; width:42px; height:14px; left:-21px; top:-9px; border:2px solid var(--sport); border-radius:50%; background:color-mix(in srgb,var(--sport) 25%,transparent); }
.mg-player-sport { position:absolute; left:15px; top:-8px; width:17px; height:17px; padding:2px; border-radius:2px; border:1px solid #141414; background:var(--sport); }
.mg-pin { z-index:2; width:0; height:0; }
.mg-pin>img { position:absolute; left:-24px; bottom:0; width:48px; height:44px; object-fit:contain; }
.mg-pin b { position:absolute; top:8px; left:50%; transform:translateX(-50%); font:600 10px var(--wyswietlacz); padding:3px 6px; background:#181818; border:1px solid var(--accent); white-space:nowrap; }
.mg-map-label { transform:translate(-50%,-50%); padding:5px 9px; background:#181818e8; color:var(--accent); border:1px solid #505444; border-radius:2px; font:600 11px/1.2 var(--wyswietlacz); text-align:center; white-space:nowrap; }
.mg-map-label small { display:block; font:400 10px/1.5 var(--pismo); color:#bbbdb4; }
.mg-endpoint { margin:-10px 0 0 -10px; width:20px; height:20px; border:1px solid #b7b9b0; border-radius:50%; display:grid; place-items:center; background:#181818; font:600 10px var(--wyswietlacz); }
.mg-chest { width:74px; height:52px; margin:-26px 0 0 -37px; z-index:2; }
.mg-chest img.mg-chest-base, .mg-chest img.mg-chest-lid { position:absolute; width:100%; height:100%; object-fit:contain; inset:0; }
.mg-chest-base { clip-path:inset(45% 0 0 0); }
.mg-chest-lid { clip-path:inset(0 0 54% 0); transform-origin:50% 42%; }
.mg-chest-shadow { position:absolute; left:6px; right:6px; height:13px; bottom:0; border-radius:50%; background:#1119; }
.mg-chest .mg-coin { position:absolute; width:19px; height:19px; object-fit:contain; left:28px; top:17px; opacity:0; }
.mg-chest b { position:absolute; left:50%; top:calc(100% + 5px); transform:translateX(-50%); font:600 10px var(--wyswietlacz); padding:4px 7px; border:1px solid #5c5d54; background:#181818; white-space:nowrap; }
.mg-chest-reward { position:absolute; white-space:nowrap; left:50%; bottom:calc(100% + 20px); transform:translateX(-50%); padding:6px 10px; font:600 13px var(--wyswietlacz); background:var(--bieg); color:#181818; border-radius:2px; opacity:0; }
.mg-panel { padding:16px 24px; display:flex; flex-direction:column; gap:8px; border-left:1px solid #3a3c35; overflow:hidden; }
.mg-panel .mg-eyebrow { color:var(--accent); font:600 11px/1.4 var(--wyswietlacz); letter-spacing:.09em; text-transform:uppercase; margin:0; }
.mg-panel h3 { font:600 25px/1.08 var(--wyswietlacz); text-transform:uppercase; margin:0; letter-spacing:-.025em; }
.mg-panel .mg-description { font:400 13px/1.45 var(--pismo); color:#adafa9; margin:0; }
.mg-panel .mg-content { display:flex; flex-direction:column; gap:12px; }
.mg-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding-block:10px; border-block:1px solid #40423b; }
.mg-metrics small { display:block; color:#9da194; font:600 10px/1.4 var(--wyswietlacz); text-transform:uppercase; letter-spacing:.06em; }
.mg-metrics strong { display:block; font:600 27px/1.15 var(--wyswietlacz); margin-top:5px; color:#edece5; font-variant-numeric:tabular-nums; }
.mg-metrics strong span { font-size:12px; margin-left:4px; color:#a4a89c; }
.mg-outcome { margin-top:auto; padding-top:13px; border-top:1px solid #40423b; }
.mg-outcome b { display:block; font:600 19px/1.15 var(--wyswietlacz); color:var(--accent); margin-bottom:7px; }
.mg-outcome p { font:400 13px/1.5 var(--pismo); color:#b4b7ae; margin:0; min-height:39px; }
.mg-panel .mg-rule { margin:0; color:#a6a99f; font-size:12px; line-height:1.5; }
.mg-owner-card { display:flex; align-items:center; gap:9px; padding:9px 0; font-size:12px; }
.mg-owner-card img { width:31px; height:35px; object-fit:contain; }
.mg-owner-card b { display:block; font:600 14px var(--wyswietlacz); }
.mg-owner-card small { display:block; color:#aaa; font-size:11px; margin-top:3px; }
.mg-ranking { position:relative; height:102px; padding:0; margin:0; list-style:none; }
.mg-ranking li { position:absolute; inset:0 0 auto; height:32px; display:flex; align-items:center; gap:8px; border-bottom:1px solid #363930; font-size:12px; will-change:transform; }
.mg-ranking li[data-rank=lola] { color:var(--bieg); }
.mg-rank-number { width:12px; font:600 13px var(--wyswietlacz); }
.mg-ranking img { width:24px; height:29px; object-fit:contain; }
.mg-rank-name { flex:1; }
.mg-rank-score { font:600 13px var(--wyswietlacz); font-variant-numeric:tabular-nums; }
.mg-rank-score small { font-size:9px; color:#a1a69a; }
.mg-prizes { display:grid; gap:7px; }
.mg-prizes div { display:flex; justify-content:space-between; gap:8px; font:600 12px var(--wyswietlacz); }
.mg-prizes div:first-child { color:var(--accent); }
.mg-prizes small { color:#a8ad9e; font-size:10px; }
.mg-big-bonus { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.mg-big-bonus strong { font:600 50px/1 var(--wyswietlacz); color:var(--accent); }
.mg-big-bonus span { font:600 14px/1.6 var(--wyswietlacz); }
.mg-quest-name { font:600 18px/1.2 var(--wyswietlacz); margin:0; }
.mg-quest-track { height:5px; background:#454a3a; overflow:hidden; }
.mg-quest-track i { display:block; height:100%; width:100%; transform:scaleX(0); transform-origin:left; background:var(--accent); }
.mg-goal-form { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:12px; }
.mg-goal-form input, .mg-goal-form select { border:1px solid #51554a; border-radius:3px; color:#ddd; background:#181818; padding:8px; height:40px; font:inherit; }
.mg-goal-form input { width:70px; }
.mg-goal-form button { padding:12px; background:var(--bieg); color:#181818; }
.mg-playback { display:flex; gap:20px; align-items:center; padding:11px 4px 10px; border-bottom:1px solid #3a3c35; }
.mg-playback button { min-height:44px; min-width:66px; padding:8px 4px; color:#b3b8a9; font-size:12px; }
.mg-demo .mg-pause { text-align:left; color:#f3ede8; }
.mg-timeline { flex:1; min-width:0; }
.mg-phases { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; color:#858a7d; font:600 11px/1.3 var(--wyswietlacz); }
.mg-phases span { transition:color .15s; }
.mg-phases span[data-active=true] { color:var(--accent); }
.mg-timeline input { display:block; width:100%; height:20px; margin:3px 0 0; appearance:none; cursor:pointer; background:transparent; --progress:0%; }
.mg-timeline input::-webkit-slider-runnable-track { height:3px; border-radius:0; background:linear-gradient(to right,var(--accent) var(--progress),#45483d var(--progress)); }
.mg-timeline input::-webkit-slider-thumb { appearance:none; width:9px; height:9px; border:0; background:var(--accent); border-radius:50%; margin-top:-3px; }
.mg-note { margin:10px 0 0; color:#868d7b; font:400 11px/1.5 var(--pismo); }
@media (min-width:1600px) { .mg-body { grid-template-columns:minmax(0,1fr) 365px; height:460px; } .mg-panel { padding:20px 26px; gap:8px; } }
@media (max-width:1100px) { .mg-body { grid-template-columns:minmax(0,1fr) 310px; } .mg-panel { padding:16px 20px; } }
@media (max-width:900px) {
 .nagrody { padding-block:30px; }
 .nagrody-wstep { font-size:14px; }
 .mg-demo { margin-top:18px; }
 .mg-toolbar { min-height:100px; flex-direction:column; align-items:stretch; gap:7px; padding-block:9px; }
 .mg-toolbar button { min-height:38px; padding:6px 10px; font-size:12px; }
 .mg-options { min-height:38px; }
 .mg-activities { justify-content:stretch; }
 .mg-activities button { flex:1; }
 .mg-toolbar:not(:has(.mg-activities:not([hidden]))) { min-height:58px; }
 .mg-body { height:auto; grid-template-columns:1fr; }
 .mg-map { height:300px; }
 .mg-map-caption { top:10px; left:10px; right:10px; font-size:9px; }
 .mg-map-caption span { padding:5px; }
 .mg-map-legend { left:10px; bottom:15px; gap:10px; }
 .mg-map-legend span { font-size:9px; }
 .mg-panel { border-left:0; border-top:1px solid #3a3c35; padding:18px; display:grid; grid-template-columns:1fr 1fr; column-gap:18px; row-gap:10px; min-height:235px; }
 .mg-panel .mg-eyebrow { grid-column:1/-1; font-size:9px; }
 .mg-panel h3 { font-size:22px; grid-column:1; }
 .mg-panel .mg-description { font-size:12px; line-height:1.45; grid-column:1; }
 .mg-panel .mg-content { grid-column:2; grid-row:2/5; gap:10px; }
 .mg-panel .mg-outcome { grid-column:1/-1; margin-top:0; padding-top:10px; }
 .mg-outcome b { font-size:16px; margin-bottom:4px; }
 .mg-outcome p { min-height:0; font-size:12px; }
 .mg-metrics { gap:8px; padding-block:8px; }
 .mg-metrics strong { font-size:21px; }
 .mg-metrics small { font-size:8px; }
 .mg-metrics strong span { font-size:10px; }
 .mg-panel .mg-rule { font-size:10px; }
 .mg-owner-card { padding:0; gap:5px; }
 .mg-owner-card b { font-size:12px; }
 .mg-owner-card small { font-size:9px; }
 .mg-owner-card img { width:26px; height:29px; }
 .mg-ranking li { gap:4px; font-size:10px; }
 .mg-rank-number { width:9px; font-size:11px; }
 .mg-ranking img { width:19px; height:23px; }
 .mg-rank-score { font-size:10px; }
 .mg-rank-score small { font-size:8px; }
 .mg-prizes div { font-size:10px; gap:3px; }
 .mg-prizes small { display:none; }
 .mg-big-bonus { gap:8px; } .mg-big-bonus strong { font-size:42px; } .mg-big-bonus span { font-size:11px; }
 .mg-quest-name { font-size:15px; }
 .mg-phases { font-size:9px; gap:7px; }
 .mg-playback { gap:10px; padding:8px 0; }
 .mg-playback button { min-width:47px; font-size:10px; }
 .mg-chest { width:64px; height:46px; margin:-23px 0 0 -32px; }
 .mg-chest-reward { font-size:11px; padding:5px 7px; }
 .mg-player-art { width:32px; height:37px; left:-16px; }
 .mg-player[data-player=lola] .mg-player-art { width:35px; height:41px; left:-17.5px; }
 .mg-player-ring { width:36px; height:12px; left:-18px; }
 .mg-player-sport { width:15px; height:15px; left:12px; }
 .mg-pin>img { width:41px; height:38px; left:-20.5px; }
}
@media (prefers-reduced-motion:reduce) { .mg-demo *, .mg-demo *::after { transition:none!important; } }

/* Map markers have a zero-size GPS anchor, so global max-width:100% must not shrink their art. */
.mg-player img,.mg-pin img,.mg-chest img { max-width:none; }
.mg-panel .mg-metrics strong b { font:inherit; }
@media (max-width:900px) {
 .mg-map { height:280px; }
 .mg-panel { display:flex; padding:16px; min-height:0; gap:9px; }
 .mg-panel h3 { font-size:23px; }
 .mg-panel h3 br { display:none; }
 .mg-panel .mg-description { font-size:12px; max-width:none; }
 .mg-panel .mg-content { gap:9px; }
 .mg-panel .mg-content:has(.mg-ranking) { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:center; }
 .mg-panel .mg-rule { font-size:11px; }
 .mg-metrics { padding-block:8px; gap:20px; }
 .mg-metrics strong { margin-top:3px; font-size:24px; }
 .mg-metrics small { font-size:9px; }
 .mg-outcome { padding-top:9px; }
 .mg-outcome b { font-size:16px; }
 .mg-big-bonus { justify-content:flex-start; gap:24px; }
 .mg-panel .mg-content:has(.mg-big-bonus) { display:flex; gap:8px; }
 .mg-panel .mg-content:has(.mg-big-bonus) .mg-rule { grid-column:1/-1; }
 .mg-big-bonus strong { font-size:38px; }
 .mg-big-bonus span { font-size:10px; }
}

/* Navigation stays outside the action area. Compass appearance is in kompas.css. */
.nagrody { padding-block:32px; }
.mg-stage-layout { --compass-width:clamp(270px,24vw,350px); display:grid; grid-template-columns:var(--compass-width) minmax(0,1fr); gap:20px; align-items:start; }
.mg-run { min-width:0; scroll-margin-top:80px; }
.mg-body { grid-template-columns:minmax(0,1fr) 300px; }
.nagrody .mg-compass { --compass-width:clamp(270px,24vw,350px); margin-top:20px; }
.mg-toolbar { min-height:54px; padding:5px 0; }
.mg-options button { background:transparent; border:0; border-bottom:2px solid transparent; border-radius:0; padding:6px 10px; color:#b9bcb4; }
.mg-options button[aria-pressed=true] { background:transparent; color:var(--bieg); border-color:var(--bieg); }
.mg-activities button { border:0; background:transparent!important; border-radius:0; }
.mg-activities button[aria-pressed=true] { color:var(--activity-color); }
.mg-panel { padding:14px 20px; gap:7px; }
.mg-panel .mg-content { gap:10px; }
@media (min-width:1600px) { .mg-body { grid-template-columns:minmax(0,1fr) 320px; } }

@media (max-width:900px) {
 .mg-stage-layout { grid-template-columns:minmax(0,1fr); gap:12px; }
 .mg-run { grid-row:1; }
 .mg-body { grid-template-columns:1fr; }
 .nagrody .mg-compass { --compass-width:min(340px,calc(100vw - 40px)); grid-row:2; width:var(--compass-width); margin:0 auto; }
 .mg-toolbar { min-height:90px; gap:5px; padding-block:6px; }
 .mg-panel { padding:14px 16px; gap:7px; }
 .mg-panel .mg-description { display:none; }
 .mg-panel .mg-eyebrow { font-size:9px; }
 .mg-panel h3 { font-size:21px; }
 .mg-panel .mg-content { gap:7px; }
 .mg-panel .mg-rule { font-size:10px; }
 .mg-panel .mg-outcome { padding-top:7px; }
}

/* Active game artwork carries its own colours; no tint or padded grey glyphs. */
.mg-activities button img { width:44px; height:26px; padding:0; background:none; border-radius:2px; object-fit:contain; }
.mg-activities button { color:#dadada; }
.mg-player-sport { width:24px; height:15px; padding:0; border:0; border-radius:1px; background:none; object-fit:contain; }
.znak-akt img { filter:brightness(0); }
.mg-body { background:transparent; border:0; overflow:visible; align-items:start; gap:14px; }
.mg-map { height:100%; border:1px solid #3a3c35; border-radius:3px; }
.mg-panel { height:auto; align-self:start; border:0; background:#222; border-radius:3px; }
.mg-panel .mg-outcome { margin-top:8px; }
.mg-outcome p { min-height:0; }
.mg-big-bonus { justify-content:flex-start; gap:30px; padding-block:6px; }
.mg-hh-notice { position:absolute; z-index:4; right:18px; bottom:64px; width:170px; padding:13px 15px; background:var(--bieg); color:#181818; border-radius:7px; opacity:0; transform-origin:bottom right; pointer-events:none; box-shadow:0 6px 18px #0005; }
.mg-hh-notice small { display:block; font:600 10px/1.3 var(--wyswietlacz); }
.mg-hh-notice strong { display:flex; align-items:center; gap:10px; font:600 42px/1.1 var(--wyswietlacz); margin:6px 0; }
.mg-hh-notice strong span { font-size:15px; }
.mg-hh-notice>b { display:block; font:600 11px/1.3 var(--wyswietlacz); }
.mg-mayor-ring { position:absolute; width:56px; height:17px; left:-28px; top:-9px; border:2px solid #8a9177; border-radius:50%; background:#18181888; }
.mg-pin[data-active=true] .mg-mayor-ring { border-color:var(--bieg); background:#bce92c55; }
.mg-pin[data-active=true] b { background:var(--bieg); color:#181818; }
.mg-player-buff { position:absolute; left:-16px; top:12px; width:32px; text-align:center; padding:2px 0; border-radius:3px; background:var(--bieg); color:#181818; font:600 11px/1.2 var(--wyswietlacz); opacity:0; }
@media (max-width:900px) {
 .mg-body { height:auto; gap:0; }
 .mg-map { height:280px; }
 .mg-panel { width:100%; border-radius:0 0 3px 3px; }
 .mg-player-sport { width:21px; height:13px; }
 .mg-hh-notice { right:12px; bottom:48px; width:130px; padding:10px; }
 .mg-hh-notice small { font-size:8px; }
 .mg-hh-notice strong { font-size:32px; gap:7px; margin:4px 0; }
 .mg-hh-notice strong span { font-size:12px; }
 .mg-hh-notice>b { font-size:9px; }
 .mg-mayor-ring { width:48px; height:15px; left:-24px; }
}

.mg-pin b { top:-65px; }
@media (max-width:900px) { .mg-pin b { top:-57px; } }


.mg-hh-notice { border-radius:3px; }

/* A zoomed visual viewport can be narrower than innerWidth. Size the section itself,
   then switch its columns using available content width, not device assumptions. */
.nagrody { width:min(100%,var(--mg-visible-width,100%)); }
.nagrody>.srodek { container-type:inline-size; }
.mg-body,.mg-panel,.mg-toolbar,.mg-playback { min-width:0; max-width:100%; }
@container (max-width:1040px) {
 .mg-stage-layout { grid-template-columns:minmax(0,1fr); gap:12px; }
 .mg-run { grid-row:1; }
 .nagrody .mg-compass { --compass-width:min(340px,100cqw); grid-row:2; width:var(--compass-width); margin:0 auto; }
 .mg-body { grid-template-columns:minmax(0,1fr); height:auto; gap:0; }
 .mg-map { height:280px; }
 .mg-panel { width:100%; border-radius:0 0 3px 3px; }
}
@container (max-width:620px) {
 .mg-toolbar { flex-direction:column; align-items:stretch; gap:6px; }
 .mg-options,.mg-activities { flex-wrap:wrap; }
 .mg-activities { justify-content:space-between; }
 .mg-activities button { flex:1; padding-inline:5px; }
 .mg-goal-form { flex-wrap:wrap; }
 .mg-phases { gap:5px; }
}

/* Tereny mają jeden pokaz: zaakceptowane PvP. */
.mg-options:empty { display:none; }
.mg-demo[data-mechanika="teren"] .mg-toolbar { justify-content:flex-end; min-height:54px; }
