.bonus-activity { border: 1px solid #ad884d; border-radius: 5px; color: #75532c; background: linear-gradient(135deg,#fff2cf,#e5d0a2); padding: 7px 11px; font-size: 11px; letter-spacing: .5px; cursor: pointer; box-shadow: 0 5px 12px #604d2f15; }
.bonus-activity:hover { background: #fff3d8; transform: translateY(-2px); }
.bonus-activity.activity-complete::before { content: '✓ '; color: #387757; }
.minor-activity-wrap { position: absolute; transform: translateX(-50%); z-index: 7; width: 190px; text-align: center; }
#activity-modal { z-index: 125; }
.activity-box { width: min(850px,94vw); max-width: 850px; max-height: 88vh; overflow-y: auto; border: 1px solid #b79c65; background: #faf3e2; padding: 30px 34px; }
.activity-kicker { color: #8f7041; font-size: 12px; letter-spacing: 3px; margin: 0 0 9px; }
#activity-title { font-family: var(--display); font-size: 34px; color: #354f42; margin: 0 0 12px; letter-spacing: 2px; }
#activity-intro { margin: 0; color: #666852; font-size: 14px; line-height: 1.8; max-width: 650px; }
.activity-levels { display: flex; gap: 8px; margin: 18px 0; padding-bottom: 16px; border-bottom: 1px solid #d4c9aa; }
.activity-levels button,.activity-secondary { border: 1px solid #b6ac8c; background: #eee6d2; color: #5d6552; padding: 8px 14px; border-radius: 5px; cursor: pointer; }
.activity-levels .selected { background: #375e4c; color: #fff4da; border-color: #375e4c; }
.activity-submit,#activity-done,#activity-again { padding: 10px 19px; border-radius: 5px; border: 1px solid #4a7058; background: #375e4c; color: #fff1d2; cursor: pointer; font-size: 14px; }
.activity-submit:disabled { opacity: .55; cursor: default; }
.activity-mission { background: #e8ddbd; color: #63502c; padding: 11px 15px; font-size: 14px; line-height: 1.8; border-left: 3px solid #b68f4c; }
.activity-slider { display: flex; align-items: center; gap: 13px; font-size: 14px; margin: 14px 0; }
.activity-slider input { flex: 1; accent-color: #497059; }
.activity-slider output { min-width: 62px; font-weight: bold; color: #80612b; }
.activity-equation { font-size: 12px; line-height: 1.8; color: #73725d; }
.lab-readings { padding: 10px 15px; background: #dfebdf; border-radius: 4px; color: #3e624d; font-size: 14px; }
.lab-stage { position: relative; height: 160px; background: linear-gradient(#e1e4d0,#eef0df); overflow: hidden; border-radius: 7px; }
.lab-water { position: absolute; top: 85px; inset-inline: 0; bottom: 0; background: linear-gradient(#92c1b3d9,#487d72); border-top: 2px solid #f7e8b9; }
.lab-water::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(175deg,transparent 0 13px,#eff1db3b 14px 15px,transparent 16px 28px); animation: lab-current 5s linear infinite; }
.lab-ship { position: absolute; left: 20%; top: -65px; width: 260px; height: 200px; object-fit: contain; transition: transform .4s; }
.lab-depth { position: absolute; right: 18px; top: 22px; font-size: 14px; color: #52735c; }
.depth-mark { position: absolute; right: 45px; bottom: 6px; top: 75px; border-left: 2px dashed #37624f; z-index: 2; }
.bridge-design { background: #e7ebd9; border-radius: 6px; overflow: hidden; }
.bridge-design svg { display: block; width: 100%; height: 170px; }
.design-options { display: flex; flex-wrap: wrap; gap: 18px; margin: 15px 0; }
.design-options label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.design-options input { width: 110px; accent-color: #497059; }
.design-options select { padding: 6px; background: #fff6e2; border: 1px solid #b6ac8c; color: #3d5c4b; }
.trial-pass svg { animation: bridge-illuminate .8s ease 2; }
.water-dashboard { display: flex; gap: 25px; align-items: center; background: #eceddd; padding: 18px; border-radius: 7px; }
.reservoir { position: relative; width: 95px; height: 145px; flex: none; border: 2px solid #8da087; border-top: 0; overflow: hidden; border-radius: 0 0 12px 12px; background: #e4d9be; }
.reservoir i { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(#94beaf,#4c7b6a); transition: height .35s; }
.reservoir b { position: absolute; inset: 15px 0 auto; text-align: center; font-size: 13px; color: #2c4e40; }
#water-controls { flex: 1; }
.activity-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; margin: 12px 0; }
.activity-choice { padding: 13px 15px; text-align: left; border: 1px solid #c7b996; border-radius: 6px; background: #f0e8d3; color: #475442; cursor: pointer; font-size: 14px; line-height: 1.6; transition: background .2s,border-color .2s,transform .2s; }
.activity-choice b,.activity-choice small { display: block; }
.activity-choice small { margin-top: 5px; color: #7c735c; font-size: 12px; }
.activity-choice:hover { border-color: #5f8066; background: #e4e9d6; transform: translateY(-1px); }
.activity-choice.chosen,.activity-choice.correct { background: #d9e9d4; border-color: #578563; box-shadow: inset 3px 0 #578563; }
.activity-choice.incorrect { border-color: #bd866b; animation: activity-nudge .3s; }
.activity-choice:disabled { cursor: default; opacity: .65; transform: none; }
.eco-meters { display: grid; gap: 9px; padding: 14px; background: #e3ebdc; border-radius: 7px; }
.eco-meters > div { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.eco-meters span { width: 62px; }
.eco-meters > div > div { flex: 1; height: 10px; background: #c6cdb7; border-radius: 8px; overflow: hidden; }
.eco-meters i { display: block; height: 100%; background: linear-gradient(90deg,#7da788,#436f56); transition: width .5s; }
.eco-meters b { width: 25px; }
.evidence-sheet { padding: 18px 23px; background: repeating-linear-gradient(#f0e4c9 0 30px,#d7c9a74d 31px 32px); border-left: 3px solid #b4894c; }
.evidence-sheet span { color: #8b7046; font-size: 11px; letter-spacing: 2px; }
.evidence-sheet h3 { margin: 10px 0; font-family: var(--display); font-size: 27px; }
.evidence-sheet p { font-size: 15px; line-height: 1.9; }
.evidence-sheet small { color: #7c725c; line-height: 1.8; }
.case-options { display: grid; gap: 9px; margin-top: 15px; }
.timeline-slots { display: flex; gap: 5px; margin: 15px 0; }
.timeline-slot { flex: 1; font-size: 11px; line-height: 1.6; padding: 10px 8px; border: 1px dashed #baa575; border-top: 3px solid #8a9b71; background: #ece7d0; }
#activity-feedback { min-height: 24px; font-size: 14px; line-height: 1.8; }
#activity-feedback.good { color: #326849; }
#activity-feedback.retry { color: #955a38; }
#activity-learn { margin-top: 15px; background: #e5ead8; padding: 17px 20px; border-left: 4px solid #6c8b60; animation: knowledge-reveal .45s ease; }
#activity-learn h3 { margin: 0 0 9px; font-size: 17px; color: #355b42; }
#activity-learn p { font-size: 14px; line-height: 1.9; color: #58604c; }
.activity-end { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.activity-end[hidden] { display: none; }
#activity-again { background: transparent; color: #4f6b50; }
.success-sparks { position: fixed; inset: 0; pointer-events: none; z-index: 160; }
.success-sparks i { position: absolute; top: 46%; left: 50%; width: 7px; height: 12px; border-radius: 2px; animation: spark-out 1.2s ease-out forwards; }
#canal-success-toast { position: fixed; left: 50%; top: 17%; transform: translateX(-50%); z-index: 165; display: flex; align-items: center; gap: 12px; padding: 15px 23px; background: #fff3d7f5; border: 1px solid #bc9850; color: #365943; box-shadow: 0 14px 40px #4c553b33; pointer-events: none; animation: knowledge-reveal .4s ease; }
#canal-success-toast span { font-size: 27px; color: #b78838; }
#canal-success-toast small { color: #7d6c47; }
.activity-board { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.activity-board button { padding: 14px; border: 1px solid #c1ae83; background: #f4ead2; text-align: left; color: #43604b; border-radius: 5px; cursor: pointer; }
.activity-board small { display: block; color: #84714c; margin-top: 7px; font-size: 11px; }
.activity-board button:hover { border-color: #55775d; background: #e8ecd9; }
#activity-hub { z-index: 120; }
.hub-note { color: #7b735a; font-size: 12px; line-height: 1.8; }
@keyframes spark-out { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 100% { opacity: 0; transform: translate(var(--sx),var(--sy)) rotate(var(--turn)); } }
@keyframes knowledge-reveal { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes activity-nudge { 25% { translate: -4px; } 75% { translate: 4px; } }
@keyframes lab-current { to { translate: 25px 0; } }
@keyframes bridge-illuminate { 50% { filter: brightness(1.15); } }
@media(prefers-reduced-motion:reduce) { .success-sparks i { display: none; } .lab-water::after,.trial-pass svg,#activity-learn,#canal-success-toast { animation: none; } }
