/* Scoped restoration: original map, character and player remain the visual foundation. */
.adventure-master .master-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0 12px}
.adventure-master .master-title h1{font-size:clamp(32px,3.5vw,48px)}
.adventure-master .master-title .actions{margin:0}
.adventure-master #share-status:empty{display:none}
.adventure-master .mission-top{margin-bottom:12px}
.adventure-master .lesson-layout{grid-template-columns:235px minmax(0,1fr)}
.adventure-master .guide-card{position:sticky;top:20px}
.adventure-master .guide-card img{height:218px}
.adventure-master .location-scene{position:relative;margin:-32px -32px 26px;overflow:hidden;border-radius:15px 15px 0 0}
.adventure-master .location-scene img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.adventure-master .location-scene figcaption{position:absolute;bottom:0;left:0;right:0;padding:36px 26px 18px;background:linear-gradient(transparent,#071b26ed);color:white;font:700 clamp(26px,3vw,42px) 'Barlow Condensed',sans-serif}
.adventure-master .mission-scene{height:230px}
.adventure-master .inspect-evidence{margin:22px 0}
.adventure-master .inspect-evidence>p{font-size:16px}
.adventure-master .evidence-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.adventure-master .evidence-reveal{background:#fffdf5;border:2px solid #bccabb;border-radius:10px;overflow:hidden}
.adventure-master .evidence-reveal[open]{border-color:#42776a}
.adventure-master .evidence-reveal summary{cursor:pointer;padding:16px;font-weight:800;color:#204b46}
.adventure-master .evidence-reveal summary img{display:block;width:100%;height:130px;object-fit:contain;background:white;margin-bottom:12px}
.adventure-master .evidence-reveal small{display:block;font-size:14px;font-weight:600;margin-top:4px}
.adventure-master .evidence-reveal p{padding:0 16px 16px;font-size:16px;margin:0}
.adventure-master .branch-choice{width:100%;background:#e2eade;border:1px solid #9bb39d;padding:22px;border-radius:12px}
.adventure-master .branch-choice p{font-size:17px}
.adventure-master .branch-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.adventure-master .branch-option{background:#fffdf5;color:#224e47;text-align:left;padding:20px;border:2px solid #98afa0;border-radius:10px}
.adventure-master .branch-option.selected{background:#ffe6a8;border-color:#937020}
.adventure-master .branch-option strong{display:block;font:700 27px 'Barlow Condensed',sans-serif}
.adventure-master .branch-option span{display:block;margin-top:8px;font-size:16px;line-height:1.45}
.adventure-master .branch-result{display:flex;align-items:center;gap:20px;margin-top:20px}
.adventure-master .branch-result img{width:120px;height:110px;object-fit:contain;background:white;border-radius:8px}
.adventure-master .workbench-rows{display:grid;gap:14px;margin:24px 0}
.adventure-master .workbench-row{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;align-items:center;background:white;border:1px solid #b8c9b6;border-radius:10px;padding:16px;font-weight:700}
.adventure-master .workbench-row img{width:100px;height:85px;object-fit:contain;grid-row:span 2}
.adventure-master .workbench-row select{grid-column:2;font:inherit;font-size:16px;min-height:48px;width:100%;min-width:0;color:#18383b;background:#f1f5e9;border:2px solid #829c89;padding:10px;border-radius:6px}
.adventure-master .step-number{grid-row:span 2;font:700 40px 'Barlow Condensed',sans-serif;text-align:center;color:#376d60}
.adventure-master .science-wrap{background:#e2eadc;border-radius:10px;padding:18px;margin:24px 0;text-align:left}
.adventure-master .science-wrap p{font-size:17px}
.adventure-master .map-stop small,.adventure-master .stop-state{font-size:14px}
.adventure-master .rescue-heading{max-width:none;background:linear-gradient(90deg,#061b27ef,#061b2788),url('assets/cave-map.jpg') center/cover;border:1px solid #9ca76d;padding:32px;border-radius:16px;min-height:275px}
.adventure-master .rescue-heading p{max-width:920px}
.adventure-master .friends-grid{padding:22px;background:linear-gradient(#071d2699,#071d26de),url('assets/cave-map.jpg') center/cover;border:1px solid #778977;border-radius:16px}
.adventure-master .friend{box-shadow:0 8px 24px #0006}
.adventure-master .lesson-panel button:focus-visible,.adventure-master select:focus-visible,.adventure-master summary:focus-visible{outline:3px solid #18564e;outline-offset:3px}
@media(max-width:900px){.adventure-master .lesson-layout{grid-template-columns:190px minmax(0,1fr)}.adventure-master .guide-card img{height:175px}.adventure-master .location-scene{margin:-24px -24px 24px}.adventure-master .master-title{align-items:flex-start}.adventure-master .master-title .actions{max-width:210px}}
@media(max-width:650px){.adventure-master .master-title{display:block}.adventure-master .master-title .actions{max-width:none;margin-top:14px}.adventure-master .master-title h1{font-size:36px}.adventure-master .guide-card{position:static}.adventure-master .guide-card img{width:95px;height:110px}.adventure-master .lesson-layout{display:flex}.adventure-master .location-scene{margin:-22px -22px 22px}.adventure-master .mission-scene{height:180px}.adventure-master .evidence-pair,.adventure-master .branch-options{grid-template-columns:1fr}.adventure-master .workbench-row{grid-template-columns:70px minmax(0,1fr);padding:12px}.adventure-master .workbench-row img{width:70px;height:70px}.adventure-master .branch-result{display:block}.adventure-master .branch-choice{padding:16px}.adventure-master .rescue-heading{padding:22px}.adventure-master .friends-grid{padding:10px}.adventure-master .mission-top .actions{margin-top:0}.adventure-master .sample-figure{flex-wrap:wrap}.adventure-master .sample-figure img{max-width:100%}.adventure-master .map-title{font-size:12px}.adventure-master .collection-heading{align-items:flex-start}.adventure-master .map-intro h1{font-size:36px}}

.adventure-master .legacy-history{margin-top:20px;padding:20px;background:#173537;border:1px solid #58786f;border-radius:10px}.adventure-master .legacy-history summary{cursor:pointer;font-weight:800}
@media(min-width:651px) and (max-width:1100px){.adventure-master .map{min-height:800px}.adventure-master .map-stop{width:180px}.adventure-master .map-stop[data-index="0"]{left:20%;top:82%}.adventure-master .map-stop[data-index="1"]{left:35%;top:22%}.adventure-master .map-stop[data-index="2"]{left:20%;top:49%}.adventure-master .map-stop[data-index="3"]{left:75%;top:25%}.adventure-master .map-stop[data-index="4"]{left:60%;top:54%}.adventure-master .map-stop[data-index="5"]{left:80%;top:84%}}

.ea-embedded header,.ea-embedded footer,.ea-embedded .lesson-resources,.ea-embedded .teacher-notes,.ea-embedded .related-lessons,.ea-embedded .master-title,.ea-embedded .map-return,.ea-embedded #share-status{display:none}.ea-embedded main{padding:16px;max-width:none;min-height:0}.ea-embedded .map-intro{margin-bottom:18px}.ea-embedded .lesson-directory{display:none}.ea-embedded .map{box-shadow:none}

.ea-embedded [data-action="catalog"]{display:none}
.ea-embedded body{display:flow-root}.ea-embedded main{margin:0}.ea-embedded .lesson-panel{animation:none}

.adventure-master .map.realm-map{background:linear-gradient(#0a25354a,#061a2677),var(--realm-art) center/cover}.adventure-master .rescue-heading,.adventure-master .friends-grid{background-image:linear-gradient(90deg,#061b27ef,#061b2788),var(--realm-art)}
.adventure-master .guide-card img{object-fit:contain}.adventure-master .model-figure{margin:22px 0;background:#f7f1df;border:1px solid #bdc9aa;border-radius:12px;padding:20px}.model-figure figcaption{font-weight:800;color:#244e47;margin-bottom:14px}.model-figure svg{width:100%;max-height:230px;display:block}.model-records{display:grid;gap:10px;padding:0;margin:16px 0 0;list-style:none}.model-records li{padding:13px 16px;border-left:5px solid #397765;background:white;line-height:1.5}.model-records.flow li+li:before{content:"↓";display:block;font-size:26px;color:#94641b}.model-records.compare{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.adventure-master .evidence-reveal .model-figure{margin:10px;padding:12px}.adventure-master .evidence-reveal .model-records{font-size:15px}.adventure-master .branch-result{display:block}.adventure-master .branch-result .model-figure{margin-bottom:16px}.adventure-master .model-layer{padding:20px;font-weight:800;border:1px solid #94794a;color:#222e29;background:#d7b87b}.adventure-master .model-layer:nth-child(2){background:#b88f5b}.adventure-master .model-layer:nth-child(3){background:#97704a;color:white}.ea-embedded .lesson-summary,.ea-embedded .standalone-start{display:none}

.adventure-master .selected-evidence{grid-column:1/-1;display:block;font-size:16px;line-height:1.5;color:#214f45;overflow-wrap:anywhere}.adventure-master .selected-evidence:empty{display:none}
