/* Atlas i dziennik utrzymane w palecie zatwierdzonej osady. */
.story-world-sites>a{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;color:#e7c67b;font-weight:bold;text-underline-offset:3px}
.story-world-sites>a:focus-visible{outline:2px solid #e7c67b;outline-offset:3px}
.answer-preview{display:block;line-height:1.6;color:#d9dfcc;padding:6px 0;overflow-wrap:anywhere}
.comparison-source{margin:12px 0;padding:12px;background:#26382b;border:1px solid #80937360;border-radius:6px}.comparison-source h4{margin:0 0 8px;color:#ead7a3}.comparison-source p{font-size:13px;line-height:1.65;margin:0}.story-process{margin:16px 0;padding:14px;border:1px solid #8fa67b;border-radius:8px;background:#12231c}.story-process h4{margin:8px 0;font-size:17px}.story-process .dim{font-size:12px;line-height:1.6}.process-samples{padding-left:18px}.process-samples li{font-size:13px;line-height:1.6;margin:9px 0}.process-samples b{color:#e7d4aa}
.reconstruction-cards{padding-left:24px;counter-reset:events}.reconstruction-cards>li{margin:12px 0;padding:12px;border:1px solid #9c9d7880;background:#263329;border-radius:6px}.reconstruction-cards h4{color:#ead7a3;margin:0 0 8px;font-size:15px}.reconstruction-cards p{font-size:13px;line-height:1.65;margin:0}.reconstruction-moves{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.reconstruction-moves button{flex:1 1 110px;min-height:46px}.reconstruction-moves button[aria-disabled=true]{opacity:.45;cursor:default}.reconstruction-moves button:focus-visible{outline:2px solid #e7c67b;outline-offset:2px}.reconstruction-hint{padding:12px;border-left:3px solid #8ed0b0;line-height:1.65;font-size:13px}
.instrument-diagram{padding:10px;background:#0b1510;border:1px solid #738366;border-radius:6px}.instrument-diagram svg{display:block;width:100%;height:auto}.instrument-diagram .dim{font-size:12px;line-height:1.5}.story-instrument input[type=range]{width:100%;min-height:46px;accent-color:#e7c67b}.story-instrument input:focus-visible{outline:2px solid #e7c67b;outline-offset:3px}.instrument-readout{display:grid;gap:8px}.instrument-readout>div{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:8px;border-bottom:1px solid #71856860}.instrument-readout dt{font-size:13px}.instrument-readout dd{margin:0;text-align:right;min-width:96px}.instrument-readout small{display:block;color:#b4c6ad;font-size:11px}.instrument-ready b{color:#b4e4a4}.instrument-cassette{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.instrument-cassette span{display:grid;place-items:center;min-height:36px;background:var(--slot);color:#122018;border:1px solid #d4dbc480;border-radius:3px;font-weight:bold}.instrument-formula{font-size:13px;line-height:1.6}.story-audio audio{width:100%;max-width:420px}.story-audio p{font-size:12px;line-height:1.6}.earth-map-entry{margin:0 0 16px;padding:14px;border:1px solid #a6b58b;background:#15261d;border-radius:8px}.earth-map-entry a{display:inline-block;padding:10px 0;color:#e7c67b;font-weight:bold}.earth-map-entry p{font-size:12px;line-height:1.6;margin:4px 0}
.survey-probes{display:flex;flex-wrap:wrap;gap:7px}.survey-probes button{flex:1 1 80px;min-height:48px}.survey-probes button[aria-pressed=true]{border-color:#e7c67b;background:#526347}.survey-selection{font-size:13px;min-height:40px;line-height:1.5}.survey-plan{position:relative;height:300px;background:#17271e;border:1px solid #7b8968;border-radius:7px;margin:10px 0}.survey-plan svg{position:absolute;width:100%;height:100%}.survey-plan button{position:absolute;transform:translate(-50%,-50%);width:44%;min-height:62px;padding:6px;background:#263b2e;border:1px solid #9caf80;border-radius:5px}.survey-plan button small{display:block;font-size:11px;line-height:1.3;color:#e7c67b;margin-top:4px}.survey-plan button:disabled{opacity:1}.story-field-survey button:focus-visible{outline:2px solid #e7c67b;outline-offset:2px}.survey-samples{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:14px 0}.survey-samples article{padding:10px;border:1px solid #809273;background:#25362b;border-radius:5px}.survey-samples h4{margin:0 0 8px;font-size:14px;color:#e7c67b}.survey-samples p{font-size:13px;line-height:1.7;margin:0}.story-support-note{padding:10px;border-left:3px solid #9abe7e;font-size:13px;line-height:1.6;background:#20352b}
.story-optional{margin:18px 0;border:1px solid #bba16d75;border-radius:10px;background:#14221980}.story-optional>summary{cursor:pointer;min-height:48px;padding:12px 14px;line-height:1.5;color:#eddbb8;overflow-wrap:anywhere}.story-optional>.story-card{margin:0;border:0;border-radius:0 0 10px 10px}.story-optional>summary:focus-visible{outline:2px solid #d4b478;outline-offset:2px}
.story-circuit{min-width:0;margin:18px 0;padding:12px;border:1px solid #a6b58b;border-radius:8px;background:#111e18}.story-circuit legend{padding:0 6px;color:#e7c67b;font-weight:700}.circuit-diagram{max-width:460px;margin:auto;background:radial-gradient(#82927328 1px,transparent 1px) 0 0/12px 12px}.circuit-diagram svg{display:block;width:100%;height:auto}.circuit-diagram text{font-size:14px;fill:#e9eadb;font-family:monospace}.story-circuit label{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;margin:12px 0;font-size:13px}.story-circuit select{box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:8px;background:#26392e;color:#f0efdc;border:1px solid #839574;border-radius:6px;font-size:14px}.story-circuit select:focus-visible{outline:2px solid #e7c67b;outline-offset:2px}.circuit-controls{display:flex;flex-wrap:wrap;gap:8px}.circuit-controls button{flex:1 1 140px;min-height:48px}.circuit-feedback{border-left:3px solid #e7c67b;padding-left:10px;line-height:1.6}.story-contact{padding:10px;border:1px solid #829b75;border-radius:6px}
.story-scene{overflow-wrap:anywhere}.story-scene:focus{outline:2px solid #d4b478;outline-offset:3px}.story-line{line-height:1.65}.story-narration{color:#c5cdbd;font-style:italic}.story-question,.story-history,.story-plans{margin:12px 0}.story-scene summary,.story-plans summary,.story-evidence summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px}.story-scene summary:before,.story-plans summary:before,.story-evidence summary:before{content:'▸'}.story-scene details[open]>summary:before,.story-plans[open]>summary:before,.story-evidence[open]>summary:before{content:'▾'}.story-follow-up{border-top:1px solid #bba16d75;margin-top:18px;padding-top:8px}.story-scene .tag{white-space:normal}.story-scene .story-choice{min-height:48px;white-space:normal}.story-scene button:disabled{opacity:.55}
.world-atlas{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:18px 0}
.atlas-region{grid-column:span 2;min-height:135px;padding:12px 7px;text-align:left;border-color:color-mix(in srgb,var(--region),transparent 45%);background:radial-gradient(ellipse at 90% 5%,color-mix(in srgb,var(--region),transparent 76%),transparent 70%),#152019;overflow:hidden}
.atlas-region>span{display:block;color:var(--region);font-size:29px;line-height:1.1;margin-bottom:9px}
.atlas-region b{display:block;font-size:12px;min-height:34px}.atlas-region small{display:block;font-size:10px;color:#c4cabb;margin:7px 0}.atlas-region.locked{opacity:.65}.atlas-region:focus-visible{outline:2px solid #edc48c}
.survey-meter{height:5px;background:#070e0bb0;overflow:hidden;border-radius:5px;margin:9px 0}.survey-meter i{display:block;height:100%;background:var(--region,#bca074)}
.region-detail{border-left:3px solid var(--region)}
.region-banner{isolation:isolate;position:relative;padding:25px 20px 18px;margin:-17px -17px 20px;overflow:hidden;background:radial-gradient(ellipse at 95% 25%,color-mix(in srgb,var(--region),transparent 66%),transparent 70%),linear-gradient(160deg,#26382c,#101915)}
.region-banner:after{content:'';position:absolute;inset:0;z-index:-1;opacity:.16;background:repeating-linear-gradient(30deg,transparent 0 31px,#e0dbb750 32px,transparent 33px 65px)}
.region-banner h2{padding-right:30px!important;color:#eddbb8!important;font-size:25px!important;margin-top:12px!important}.region-banner p{max-width:80%;margin-bottom:0!important}.region-sigil{float:right;font-size:68px;line-height:1;color:var(--region);opacity:.5;margin:25px 0 0 8px}
.story-card{background:linear-gradient(130deg,#354030,#1b281f);border:1px solid #bba16d75;border-radius:12px;margin:20px 0;padding:18px}.story-card h3{font-size:21px;margin:9px 0}.story-card .primary{width:100%}.objectives{padding:0;list-style:none;margin:15px 0}.objectives li{display:flex;gap:12px;justify-content:space-between;padding:10px 0;border-bottom:1px solid #d4dcb015;font-size:12px}.objectives li b{white-space:nowrap}.objectives .complete{color:#a5c88c}.reward-line{font-size:11px!important;margin:10px 0 0!important}
.story-choice{display:block;width:100%;text-align:left;margin:8px 0;padding:12px}.story-choice small,.expedition-types small{display:block;color:#bdc8b5;line-height:1.5;margin-top:5px}.expedition-picker{display:flex;gap:6px;overflow-x:auto;padding:2px 0 10px;margin:0 0 10px;scrollbar-width:thin}.expedition-picker button{flex-shrink:0;font-size:11px;padding:8px 12px}.expedition-types{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin-bottom:18px}.expedition-types button{text-align:left;font-size:12px;padding:10px}.expedition-types .on,.expedition-picker .on{border-color:#dbb97e;background:#35422f}
#objectiveBar{position:absolute;left:18px;top:105px;z-index:2;max-width:min(340px,calc(100% - 84px));text-align:left;padding:10px 14px;background:#142219e6;border:1px solid #b8a37266;border-left:3px solid #c5a469;box-shadow:0 5px 25px #0004}#objectiveBar small{display:block;color:#bbc6ab;font-size:10px}#objectiveBar b{display:block;font-size:12px;margin:3px 0}#game:has(#panel:not([hidden])) #objectiveBar{display:none}#tabs button{padding-left:4px;padding-right:4px}
@media(max-width:899px){#panel.adventure{max-height:77%}.region-banner{margin:-17px -17px 18px}#tabs button{font-size:11px}.world-atlas{gap:5px}.atlas-region{min-height:125px}#objectiveBar{top:96px}}
@media(min-width:900px){#panel.adventure{width:520px}.region-banner{margin:-20px -20px 20px}#game:has(#panel.adventure:not([hidden])) #sceneTools{right:564px}}

.story-map-board{display:block;width:100%;height:auto;touch-action:none;border:1px solid #84977b;border-radius:6px}.map-overlay-tool p,.map-source{font-size:13px;line-height:1.6}.map-layer-tabs{display:flex;gap:8px;margin-bottom:10px}.map-layer-tabs button{flex:1;min-height:48px}.map-layer-tabs [aria-pressed=true]{background:#536146;border-color:#edc785}.map-key{display:flex;flex-wrap:wrap;gap:12px;margin:10px 0;font-size:12px}.map-source{margin:10px 0}.story-map-board:focus-visible{outline:2px solid #edc785;outline-offset:2px}
.story-route-grid{display:grid;grid-template-columns:repeat(var(--route-columns),minmax(0,1fr));gap:4px}.story-route-grid button{min-width:0;min-height:68px;padding:4px 1px;line-height:1.2}.story-route-grid b,.story-route-grid small,.story-route-grid span{display:block}.story-route-grid small{font-size:9px;overflow-wrap:anywhere}.story-route-grid span{min-height:15px;color:#edcd8e;font-size:11px}.story-route-grid [aria-pressed=true]{background:#455c3a;border-color:#edc785}.story-route-grid button:focus-visible{outline:2px solid #edc785;outline-offset:1px}.route-preview{overflow-wrap:anywhere}

/* Bieżące cele korzystają z tej samej odpowiedzi serwera co przyciski zadań. */
.story-task-board{margin:18px 0;padding:16px;border:1px solid #bba16d75;border-radius:10px;background:#142219}
.story-task-board h3{margin-top:0}
.story-task-filters{display:flex;flex-wrap:wrap;gap:8px}
.story-task-filters button,[data-story-task-empty] button{min-height:44px;padding:9px 12px;white-space:normal}
.story-task-filters [aria-pressed=true]{background:#455c3a;border-color:#edc785}
.story-task-filters button:focus-visible,[data-story-task-empty] button:focus-visible{outline:2px solid #e7c67b;outline-offset:3px}
.story-task-board [hidden]{display:none!important}
.story-task-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px;padding:0;list-style:none}
.story-task{min-width:0;border:1px solid #829b7566;border-radius:7px;background:#203128}
.story-task>a{display:flex;flex-direction:column;gap:7px;min-height:44px;padding:12px;color:#e7eadb;text-decoration:none;overflow-wrap:anywhere;line-height:1.5}
.story-task>a:hover{background:#314334}
.story-task>a:focus-visible,.story-chapter-link:focus-visible{outline:2px solid #e7c67b;outline-offset:3px}
.story-task small{color:#c5cdbd}
.story-task .eyebrow{font-size:11px;line-height:1.4}
.story-chapter-link{display:block;min-height:44px;padding:10px 0;box-sizing:border-box;color:#e7c67b;line-height:1.5}
.story-records{margin:20px 0;border-top:1px solid #829b7566}
.story-records>summary{min-height:44px;padding:12px 0;cursor:pointer;color:#eddbb8;line-height:1.5}
.story-scene,#campaign-current-objective{scroll-margin-top:80px}
.story-evidence-shelf{margin:24px 0;scroll-margin-top:80px;overflow-wrap:anywhere}
.story-evidence-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;border:1px solid #829b7566;border-radius:8px;background:#142219}
.story-evidence-controls label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px;color:#e3e7d7}
.story-evidence-controls input,.story-evidence-controls select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;font-size:16px;background:#203128;color:#e7eadb;border:1px solid #829b75;border-radius:5px;padding:8px}
.story-evidence-query{grid-column:1/-1}.story-evidence-controls button{min-height:44px;grid-column:1/-1}
.story-evidence-controls :is(input,select,button):focus-visible,.story-evidence-link:focus-visible,.story-evidence-shelf:focus{outline:2px solid #e7c67b;outline-offset:3px}
.story-evidence-link{display:block;box-sizing:border-box;min-height:44px;padding:12px 0;color:#e7c67b;line-height:1.5}
.story-evidence-shelf [hidden]{display:none!important}
[data-evidence-return][hidden]{display:none!important}
[data-evidence-id]{scroll-margin-top:80px}
[data-evidence-id]>summary:focus-visible{outline:2px solid #e7c67b;outline-offset:3px}
.story-case-wrap[hidden],.story-records[hidden],[data-story-case-return][hidden]{display:none!important}
.story-focus-controls{margin:16px 0;padding:12px 14px;border-left:3px solid #bba16d;background:#203128;overflow-wrap:anywhere}
.story-focus-controls [data-story-focus-status]{color:#e7eadb!important;font-weight:600}
.story-focus-controls button{min-height:44px;padding:10px 14px}
.story-focus-controls button:focus-visible{outline:2px solid #e7c67b;outline-offset:3px}
.story-settlement-work ul{list-style:none;margin:0;padding:0}.story-settlement-work li+li{margin-top:12px;padding-top:12px;border-top:1px solid #829b7566}
.story-settlement-work button{min-height:44px}.story-building-wait{padding:10px;border-left:3px solid #bba16d;background:#203128;overflow-wrap:anywhere}
@media(max-width:480px){.story-evidence-controls{grid-template-columns:minmax(0,1fr)}}
.story-r3-workbench { display:block; padding:14px; margin:16px 0; border:1px solid #788b73; border-radius:8px; background:#17211b; overflow-wrap:anywhere; }
.story-r3-workbench button { min-height:44px; white-space:normal; margin:6px 6px 6px 0; }
.story-r3-workbench [data-r3-message]:empty { display:none; }
story-r3-workbench { display:block; }
.story-world-sites input[readonly] { max-width:100%; width:100%; box-sizing:border-box; min-height:44px; }
[data-edda-check] { min-height:44px; white-space:normal; }

/* Czytnik kampanii: rozmiar tekstu nie zmienia skali szkiców ani stanu misji. */
.story-reading{font-size:calc(1rem * var(--story-text-scale,1));line-height:1.6;overflow-wrap:anywhere;container:story-reader/inline-size}
#panelBody .story-reading :is(p,li,label,button,input,select,textarea,dt,dd,summary,.tag,.eyebrow,.survey-selection,.map-key){font-size:1em;line-height:1.6}
.story-reading small{font-size:.9em;line-height:1.5}
#panel .story-reading h2{font-size:1.5em;line-height:1.25}
#panel .story-reading h3{font-size:1.3em;line-height:1.3}
.story-reading h4{font-size:1.1em;line-height:1.4}
.story-reading .reward-line{font-size:.9em!important}
.story-reading :is(button,input,select,textarea){min-width:0;max-width:100%;min-height:44px;white-space:normal}
#panelBody .story-reading :is(input,select,textarea){font-size:max(16px,1em)}
.story-reading :is(fieldset,legend,.objectives li>span){min-width:0;max-width:100%}
.story-reading legend{overflow-wrap:anywhere}
.story-reading .objectives li{flex-wrap:wrap}
.story-reading .instrument-readout>div{flex-wrap:wrap}
.story-reading .instrument-readout dd{min-width:0;max-width:100%}
.story-reading .story-route-grid small{font-size:.75em}
.story-reading .story-route-grid span{font-size:.9em}
.story-route-board{max-width:100%;overflow:auto;padding:3px;overscroll-behavior-x:contain}
.story-route-board:focus-visible{outline:2px solid #e7c67b;outline-offset:2px}
.story-reading .story-route-grid{min-width:calc(var(--route-columns) * 4em)}
.story-reading .story-route-grid b{white-space:nowrap}
.story-reading .survey-plan small{font-size:.9em}
.story-reading .story-evidence-controls{grid-template-columns:repeat(auto-fit,minmax(min(100%,12em),1fr))}
.story-reading-tools{margin:0 0 18px;padding-right:48px}
.story-reading-tools label{display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:#e3e7d7}
.story-reading-tools select{width:auto;margin:0;padding:8px;background:#203128;color:#e7eadb;border:1px solid #829b75;border-radius:5px}
.story-reading-tools select:focus-visible{outline:2px solid #e7c67b;outline-offset:3px}
#panel.adventure:has(.story-reading){top:calc(74px + var(--safe-t));bottom:calc(var(--hud-bottom,52px) + 7px + var(--safe-b));max-height:none}
#panel:has(.story-reading) #panelBody{padding-right:0}
#panel:has(.story-reading)>#panelClose{position:sticky;float:right;top:0;min-width:44px;min-height:44px;margin-bottom:-44px;background:#101b20}
/* Lista punktów zachowuje nazwy i przydziały, gdy tekst nie mieści się na planie. */
.story-reading:not([data-story-text-size="100"]) .survey-plan{height:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10em),1fr));gap:.6em;padding:.6em}
.story-reading:not([data-story-text-size="100"]) .survey-plan svg{display:none}
.story-reading:not([data-story-text-size="100"]) .survey-plan button{position:static;transform:none;width:100%;height:auto}
@container story-reader (max-width:400px){
 .survey-plan{height:auto;display:grid;grid-template-columns:minmax(0,1fr);gap:.6em;padding:.6em}
 .survey-plan svg{display:none}
 .survey-plan button{position:static;transform:none;width:100%;height:auto}
}
@media(max-width:899px){#panel.adventure:has(.story-reading){left:0;right:0;width:100%;padding:12px}}
@media(max-height:500px){#panel.adventure:has(.story-reading){top:calc(8px + var(--safe-t));bottom:calc(8px + var(--safe-b));z-index:20}}

.story-nearby{margin:20px 0;padding:12px;border:1px solid #666b61;background:linear-gradient(135deg,#1a2429,#171c20)}
.story-nearby>summary{cursor:pointer;font-weight:700;line-height:1.6}
.story-nearby-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:12px}
.story-nearby-card{min-width:0;padding:12px;border:1px solid #4c5557;background:#11191dbd;overflow-wrap:anywhere}
.story-nearby-card h3{margin-top:0}.story-nearby-card p{line-height:1.6}.story-nearby-card a{display:block;margin-top:10px}

.story-recap{overflow-wrap:anywhere}.story-recap>summary{cursor:pointer;font-weight:700;min-height:44px;display:list-item;line-height:1.5;padding:10px 0}.story-recap p{line-height:1.6}.story-recap a{white-space:normal;min-height:44px;display:flex;align-items:center}

/* Keep the partial-translation note clear of the panel close control. */
#panel [data-campaign-language-note]{margin-right:42px;font-size:13px;line-height:1.5}
