.storyNotebook{margin:0 0 32px;scroll-margin-top:20px;border:1px solid #3b5264;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,#152b3a,#101a29 70%)}
.storyMenu{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;border-bottom:1px solid #344758}
.storyMenu button{padding:16px;text-align:left;border:1px solid transparent;border-radius:10px;color:#bdcbd5;background:#0c1723;font:inherit;cursor:pointer}
.storyMenu button.active{border-color:#edc777;color:#f4dfad;background:#293137}
.storyMenu span,.storyMenu small{display:block}.storyMenu small{font-size:12px;margin-top:6px;color:#b7c5cf}
.storyDot{display:inline-block;width:9px;height:9px;margin-left:5px;border-radius:50%;background:#ef9d71;box-shadow:0 0 0 4px #ef9d7118}
.storyDossier{padding:26px}.storyDossier h2{margin:6px 0 12px}.storyDossier p{line-height:1.65}.storyDossier progress{width:100%;height:7px;accent-color:#6acac1}
.storyHeading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.storyHeading>div{min-width:0}.storyPrize{flex-shrink:0;font-size:24px;color:#edc777;font-weight:700;text-align:right}.storyPrize small{display:block;font-size:11px;font-weight:400;color:#bdcbd5;margin-top:6px}
.storySteps{display:flex;justify-content:space-between;margin:15px 0 22px}.storySteps>span{font-size:18px;color:#8ea3b5;text-align:center}.storySteps small{display:block;font-size:11px;margin-top:6px}.storySteps .done,.founderTimeline .done{color:#6acac1}.storySteps .current,.founderTimeline .current{color:#edc777}
.storyClue{padding:22px;border:1px solid #455565;border-radius:12px;background:#091320}.storyClue h3{font-size:22px;margin:10px 0}.storyClue p{font-size:16px;white-space:pre-line}.storyClue small{display:block;margin-top:10px;color:#a3b7c7;font-size:12px;line-height:1.5}.storyClue .gold{white-space:normal;line-height:1.5}
.storyAnswerRow{display:flex;gap:10px;align-items:center}.storyAnswerRow input{flex:1;min-width:0}.storyAnswerRow button{width:auto;flex-shrink:0}.storyDossier label{display:block;margin:14px 0 7px}.storyDossier input,.storyDossier select{box-sizing:border-box;width:100%;border:1px solid #42556b;background:#091321;color:#ebf1f6;border-radius:8px;padding:13px;font:inherit}
.storyHints{padding-top:16px}.storyHints ol{padding-left:22px}.storyHints li{padding:6px 0;line-height:1.55;color:#c8d5df}.storyMessage{color:#edc777;min-height:1em}.storyEvidence{border-top:1px solid #344758;padding-top:18px}.storyEvidence summary{cursor:pointer;color:#6acac1}.storyEvidence article{padding:15px 0;border-bottom:1px solid #263b4d}.storyEvidence a{color:#91d6d0;font-size:13px;overflow-wrap:anywhere}.storyEvidence strong{color:#dfe7ef}.storySuccess{background:#6acac10c;border:1px solid #6acac155;border-radius:12px;padding:18px;color:#bde9df}
.founderTimeline{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;list-style:none;padding:0;margin:22px 0 28px}.founderTimeline li{font-size:12px;color:#91a6b7}.founderTimeline li>span{display:block;font-size:20px;margin-bottom:10px}.founderTimeline small{display:block;font-size:11px;margin-top:6px}.storyLocalPlaces,.storyFocusChoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}.storyLocalPlaces button,.storyFocusChoices button,.storySearchResults button{text-align:left;white-space:normal;padding:14px;line-height:1.5}.storyLocalPlaces small,.storyFocusChoices small,.storySearchResults small{display:block;font-size:12px;color:#9eb4c4;margin-top:4px}.storySearchResults{display:grid;gap:5px;max-height:250px;overflow:auto}.storySearchResults:empty{display:none}
.storyMapBar{position:absolute;z-index:16;bottom:80px;left:18px;width:min(460px,calc(100% - 100px));max-height:38%;overflow:auto;box-sizing:border-box;padding:15px;border:1px solid #edc77788;border-radius:12px;background:#0b1728f5;box-shadow:0 10px 30px #0008}.storyMapBar>strong{color:#edc777;font-size:14px}.storyMapBar p{font-size:13px;line-height:1.5;margin:10px 0}.storyMapBar>div{display:flex;gap:8px;flex-wrap:wrap}.storyMapBar button{font-size:12px;white-space:normal;line-height:1.5;padding:10px;flex:1;min-width:120px}.storyMapBar small{display:block;margin-top:7px}
.storyCelebration{position:fixed;z-index:150;bottom:24px;left:50%;transform:translateX(-50%);width:min(440px,calc(100% - 28px));box-sizing:border-box;display:flex;gap:16px;padding:22px 32px 22px 22px;background:#173330;border:1px solid #79d4b9;border-radius:16px;box-shadow:0 16px 60px #0009;animation:storyArrive .35s ease-out;pointer-events:none}.storyCelebration>span{font-size:34px;color:#edc777}.storyCelebration strong{font-size:24px;color:#f3d591}.storyCelebration p{margin:6px 0;color:#edf5f2;font-size:14px}.storyCelebration small{font-size:12px;color:#bdd6cb}.storyCelebration button{position:absolute;right:7px;top:7px;background:transparent;border:0;color:white;font-size:24px;cursor:pointer;pointer-events:auto}
.loginGiftChoices{display:grid;gap:14px;margin:24px 0}.loginGiftChoices button{padding:18px;text-align:left;white-space:normal}.loginGiftChoices span,.loginGiftChoices small{display:block}.loginGiftChoices small{font-size:12px;margin-top:8px;font-weight:400}
.storyMapBar[hidden],.storyCelebration[hidden]{display:none}
@keyframes storyArrive{from{opacity:0;transform:translate(-50%,14px) scale(.96)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@media(max-width:600px){.storyMenu{padding:8px;gap:6px}.storyMenu button{padding:12px 9px;font-size:13px}.storyMenu small{font-size:10px;line-height:1.5}.storyDossier{padding:17px 13px}.storyHeading{flex-wrap:wrap;gap:3px}.storyHeading h2{font-size:24px}.storyPrize{text-align:left;font-size:20px;margin-bottom:16px}.storyPrize small{display:inline;margin-left:8px}.storyClue{padding:15px 12px}.storyClue h3{font-size:20px}.storyClue p{font-size:15px}.storyAnswerRow{flex-direction:column;align-items:stretch}.storyAnswerRow button{width:100%}.founderTimeline{grid-template-columns:1fr;gap:12px}.founderTimeline li{display:flex;align-items:center;gap:12px}.founderTimeline li>span{margin:0;width:25px;flex-shrink:0}.founderTimeline small{display:inline;margin-left:8px}.storyLocalPlaces,.storyFocusChoices{grid-template-columns:1fr}.storyMapBar{left:10px;width:calc(100% - 88px);padding:12px;max-height:34%}.storyMapBar p{max-height:85px;overflow:auto}.storyMapBar button{font-size:11px}.storyCelebration{bottom:12px}}
@media(prefers-reduced-motion:reduce){.storyCelebration{animation:none}}

@media(max-width:760px){#mapView[data-tools=open] .storyMapBar{visibility:hidden}}

#mapView.storySelecting .mapPlacePreview,#mapView.storySelecting .mapNote{display:none}
