/* Compact companion to the welcome chapter, using the same illustrated task cards. */
#pioneer-mission,#chapter-reopen{display:none!important}
#claim-guide.journey-panel{position:fixed;left:50%!important;top:105px!important;transform:translateX(-50%);width:650px;max-width:calc(100vw - 30px);padding:25px 18px 32px;border:3px solid #ffb653;border-radius:25px;background:linear-gradient(135deg,#fff5dc,#ffe8c4 65%,#ffd39b);color:#573627;box-shadow:inset 0 0 0 2px #fff5cf,0 4px 0 #ab592b,0 9px 20px #49220d33;font-family:'Trebuchet MS',Arial,sans-serif;max-height:calc(100dvh - 210px);overflow:auto}
#claim-guide.journey-panel::after{content:'';position:absolute;bottom:0;left:0;right:0;height:35px;background:url('assets/chapters/progress-rocks.png') center bottom/100% 100% no-repeat;pointer-events:none;border-radius:0 0 22px 22px}
.journey-badge{display:inline-block;background:linear-gradient(#ff9235,#ef5619);border:2px solid #ffd681;border-radius:20px;color:#fff8e8;padding:5px 13px;font-size:12px;font-weight:bold;box-shadow:0 2px #be6c34;margin-top:-16px;margin-bottom:7px}
#claim-guide #journey-collapse{position:absolute;right:12px;top:10px;width:29px;min-height:29px;border-radius:50%;padding:0;background:#87502f;border:2px solid #ffe5b2;font-size:20px}
#claim-guide h2{font-size:21px;line-height:1.1;margin:2px 20px 5px 0;color:#593125}
#claim-guide p{font-size:13px;line-height:1.35;margin:5px 0 10px}
#journey-steps{display:flex;gap:7px;margin:0 0 8px;padding:0;list-style:none}
#journey-steps li{position:relative;display:flex;align-items:center;gap:5px;flex:1;min-width:0;border:1px solid #fffdf0;border-radius:13px;background:#fff2d9;padding:5px 6px 5px 23px;box-shadow:0 2px #d8ad7f55;font-size:12px;font-weight:bold}
#journey-steps b{position:absolute;left:5px;top:5px;display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#29949c;color:white;font-size:12px}
#journey-steps .done b{background:#528c55}
#journey-steps img{width:49px;height:49px;object-fit:contain;mix-blend-mode:multiply}
#journey-cost{font-size:12px;font-weight:bold;color:#5e7040;text-align:center;margin:6px 0}
#claim-guide #claim-guide-start{width:auto;min-width:220px;display:block;margin:4px auto 0;padding:8px 20px;border:2px solid #ffbd69;border-radius:16px;background:linear-gradient(#ff9234,#ee5018);box-shadow:0 3px #b95c2e;color:#fffaf0;font-size:15px}
#claim-guide.is-collapsed .journey-content>:not(#journey-messages){display:none!important}
#toast,#toast.show{position:static!important;inset:auto!important;transform:none!important;width:auto!important;max-width:none!important;min-width:0!important;box-shadow:none!important;background:#fff5e4!important;border:1px solid #dbb47b!important;border-radius:10px!important;color:#633d27!important;padding:8px 10px!important;margin:9px 0 0!important;font:13px/1.4 'Trebuchet MS',Arial,sans-serif!important;opacity:1!important;pointer-events:none}
#toast:not(.show){display:none!important}
#toast.show{display:block!important}
body[data-claiming=true] #build-dock>#toast.show{display:block!important;grid-column:1/-1}
@media(max-width:700px){#claim-guide.journey-panel{top:100px!important;padding:19px 12px 25px;width:440px}#claim-guide h2{font-size:17px}#claim-guide p{font-size:12px}#journey-steps{gap:4px}#journey-steps li{flex-direction:column;padding:5px 3px;text-align:center;font-size:10px}#journey-steps img{width:40px;height:38px}#journey-cost{font-size:11px}}
@media(max-height:650px){#claim-guide.journey-panel{top:70px!important;max-height:calc(100dvh - 155px)}}

/* Match the established chapter artwork and place it inside the bottom rim. */
#claim-guide.journey-panel{width:760px;padding:23px 20px 0;border:5px solid #ffb54f;border-radius:34px 30px 32px 29px;background:radial-gradient(ellipse at 20% 25%,#fff4d9 0%,#ffebc8 39%,#ffd09a 80%,#ffc278);box-shadow:inset 0 0 0 2px #fff2b8,0 4px 0 #b65e29,0 9px 20px #68372145}
#claim-guide.journey-panel::after{content:none}
.journey-badge{border:3px solid #ffca70;border-radius:24px;font-size:13px;padding:7px 16px;margin-top:-17px;box-shadow:inset 0 2px 0 #ffe2a575,0 3px 0 #c96c2d}
#claim-guide #journey-collapse{background:radial-gradient(circle,#713c23 44%,#9e633a 48%,#fff3d4 51%);border:3px solid #ffebbe;width:36px;height:36px;font-size:24px;top:8px;right:10px}
#claim-guide h2{font-size:24px;text-shadow:0 2px #fff6dd;margin:5px 24px 6px 0}
#claim-guide p{font-size:14px;line-height:1.35;margin-bottom:13px}
#journey-steps{gap:8px;margin-bottom:10px}
#journey-steps li{min-height:77px;padding:9px 6px 7px 25px;background:linear-gradient(130deg,#fff3da,#ffeacc);border:1px solid #fff9e8;border-radius:17px;box-shadow:0 3px 2px #b7764540;font-size:12px;line-height:1.25}
#journey-steps li.current{border:2px solid #e89832;background:#fff6df}
#journey-steps b{background:linear-gradient(#54bec7,#16818c);box-shadow:inset 0 2px 1px #d4ffffa0,0 2px 2px #8c956b50}
#journey-steps .done b{background:linear-gradient(#80b77b,#427648)}
#journey-steps img{width:55px;height:60px}
.journey-bottom{position:relative;isolation:isolate;display:flex;justify-content:center;align-items:flex-end;margin:0 -19px;min-height:61px;padding:4px 6px 0;overflow:hidden;border-radius:0 0 26px 24px}
.journey-bottom::before,.journey-bottom::after{content:'';position:absolute;bottom:0;width:34%;height:52px;background:url('assets/chapters/rocks-left.webp') bottom/100% 100% no-repeat;z-index:-1;pointer-events:none}
.journey-bottom::before{left:0}.journey-bottom::after{right:0;transform:scaleX(-1)}
#claim-guide #claim-guide-start{position:relative;min-width:260px;max-width:100%;margin:0;padding:10px 22px;border:3px solid #ffbd62;border-radius:21px;background:linear-gradient(#ff9236 0%,#ff6821 44%,#ee4514 95%);font-size:18px;font-weight:900;box-shadow:inset 0 2px 0 #ffe29d,0 3px 0 #b8551f;text-shadow:0 2px #b7431d}
#claim-guide.is-collapsed{padding-bottom:8px}
@media(max-width:700px){#claim-guide.journey-panel{width:440px;padding:19px 12px 0}#claim-guide h2{font-size:18px}#claim-guide p{font-size:12px}#journey-steps{display:grid;grid-template-columns:1fr 1fr;gap:6px}#journey-steps li{flex-direction:row;min-height:51px;padding:5px 5px 5px 23px;text-align:left;font-size:11px}#journey-steps img{width:40px;height:40px}.journey-bottom{margin:0 -11px;min-height:55px}#claim-guide #claim-guide-start{font-size:15px;min-width:210px}.journey-bottom::before,.journey-bottom::after{height:40px;width:30%}}
/* Quiet goal access and background-free milestone lettering. */
#journey-target{position:fixed;left:20px;top:165px;z-index:30;border:2px solid #ffd898;border-radius:22px;background:#ffedc9;color:#573627;padding:10px 17px;font-weight:800;box-shadow:0 3px 0 #a8663b}
#milestone{position:fixed;z-index:45;left:50%;top:26%;transform:translateX(-50%);width:min(850px,92vw);text-align:center;pointer-events:none;font-family:'Trebuchet MS',Arial,sans-serif}
#milestone strong{display:block;font-size:clamp(28px,4vw,52px);font-weight:1000;line-height:1.13;color:#fff1ae;-webkit-text-stroke:1px #7b3c20;paint-order:stroke fill;text-shadow:0 2px #ac5729,0 4px #74391e,0 7px 12px #29120899}
#milestone p{display:inline-block;font-size:clamp(17px,2vw,24px);font-weight:800;color:#fff9e6;text-shadow:1px 1px 2px #39251d,-1px -1px 2px #39251d,0 3px 6px #39251d;margin:17px 0 0;max-width:650px}
.milestone-icons img{width:76px;height:76px;object-fit:contain;filter:drop-shadow(0 3px 3px #51261388)}
#milestone.celebrate{animation:milestone-appear 6.2s both}
@keyframes milestone-appear{0%{opacity:0;transform:translateX(-50%) scale(.7)}7%{opacity:1;transform:translateX(-50%) scale(1.04)}13%,85%{opacity:1;transform:translateX(-50%) scale(1)}100%{opacity:0;transform:translateX(-50%) translateY(-15px)}}
#journey-notice{position:fixed;left:50%;bottom:120px;transform:translateX(-50%);max-width:min(650px,90vw);z-index:40;pointer-events:none}
#journey-notice #toast.show{position:static;transform:none;background:none;border:0;box-shadow:none;color:#fff9e6;font-weight:bold;text-align:center;text-shadow:0 2px 3px #321c12;padding:4px}
@media(max-width:600px){#journey-target{top:108px;left:14px;font-size:12px}#milestone{top:27%}.milestone-icons img{width:58px;height:58px}}
@media(prefers-reduced-motion:reduce){#milestone.celebrate{animation:none}}

/* Arcade success title: a screen overlay, never an effect at the avatar. */
#milestone{top:22%;width:min(880px,94vw)}
#milestone strong{font-family:'Arial Rounded MT Bold','Trebuchet MS',Arial,sans-serif;font-size:clamp(32px,5vw,62px);font-weight:1000;letter-spacing:.015em;color:#ffdb32;-webkit-text-stroke:2px #743515;paint-order:stroke fill;text-shadow:0 -2px #fff2a8,0 3px #d68515,0 6px #9e501b,0 8px #663417,0 11px 7px #381b124d;line-height:1.18}
#milestone .milestone-result{font-size:clamp(20px,2.6vw,30px);font-weight:900;color:#fff3bb;text-shadow:0 2px 1px #6a351a,1px 0 #6a351a,-1px 0 #6a351a;margin-top:15px}
#milestone p{font-size:clamp(16px,1.8vw,22px);margin-top:10px;max-width:620px}
#milestone.celebrate{animation:arcade-success 6.2s both}
@keyframes arcade-success{0%{opacity:0;transform:translateX(-50%) scale(.45) translateY(12px)}5%{opacity:1;transform:translateX(-50%) scale(1.12) translateY(-5px)}9%{transform:translateX(-50%) scale(.96)}13%,87%{opacity:1;transform:translateX(-50%) scale(1)}100%{opacity:0;transform:translateX(-50%) translateY(-12px)}}
.milestone-sparks{position:absolute;inset:-12px 0 35%;pointer-events:none;z-index:-1}.milestone-sparks i{position:absolute;font-style:normal;color:#ffe467;font-size:24px;text-shadow:0 0 5px #fff3ba;opacity:0}#milestone.celebrate .milestone-sparks i{animation:arcade-twinkle .7s var(--delay) ease-out 2 both}
@keyframes arcade-twinkle{0%,100%{opacity:0;transform:scale(.4) rotate(-15deg)}40%{opacity:1;transform:scale(1.1) rotate(0deg)}}
@media(max-width:600px){#milestone{top:23%}#milestone strong{font-size:32px;letter-spacing:0}.milestone-icons img{width:50px;height:50px}}
@media(prefers-reduced-motion:reduce){#milestone.celebrate{animation:none}#milestone .milestone-sparks{display:none}}

#milestone{top:18%;width:min(1000px,96vw)}#milestone strong{font-size:clamp(17px,2vw,24px);margin-bottom:4px;text-shadow:0 2px #74391e}#milestone .milestone-title-art{display:block;width:100%;height:auto;filter:drop-shadow(0 6px 2px #55280c99)}#milestone .milestone-result{display:none}#milestone p{font-size:clamp(19px,2.2vw,27px);max-width:780px;line-height:1.35;margin-top:4px}#milestone.celebrate{animation-duration:8s}@media(max-width:600px){#milestone{top:22%}#milestone strong{font-size:19px}#milestone p{padding:0 10px}}

/* Compact title with a directly usable next step. */
#milestone{width:min(740px,92vw)}
#milestone p{font-size:clamp(17px,1.8vw,22px);max-width:620px}
#milestone .milestone-action{display:block;pointer-events:auto;margin:15px auto 0;padding:10px 22px;border:2px solid #ffce78;border-radius:20px;background:linear-gradient(#ff9335,#ed5016);color:#fff8e8;font:800 17px 'Trebuchet MS',Arial,sans-serif;box-shadow:0 3px #9a491f;text-shadow:0 1px #8c3a18}
#milestone .milestone-action[hidden]{display:none}
#milestone[data-kind=tool].celebrate{animation:claim-success .7s both}
@keyframes claim-success{0%{opacity:0;transform:translateX(-50%) scale(.65)}60%{opacity:1;transform:translateX(-50%) scale(1.05)}100%{opacity:1;transform:translateX(-50%) scale(1)}}
@media(prefers-reduced-motion:reduce){#milestone[data-kind=tool].celebrate{animation:none}}

#journey-cost{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 10px}#journey-cost:empty{display:none}
@media(max-width:700px){#journey-cost{gap:6px;margin:8px 0}#journey-cost .resource-goal{padding:8px;gap:7px}#journey-cost .resource-goal>img{width:40px;height:45px}#journey-cost .resource-count{font-size:23px}#journey-cost .resource-goal em{font-size:11px}}

@media(max-width:700px){body.journey-open #journey-target,body.journey-open .colony-hud{visibility:hidden}}

/* Bottom resource HUD: warm compact cards matching the supplied game reference. */
footer{left:auto!important;right:24px!important;bottom:22px!important;transform:none!important;display:flex!important;align-items:center;gap:12px;width:auto!important;max-width:calc(100vw - 32px)!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
footer #resource-hud{order:0;display:flex;align-items:center;gap:7px;min-width:0}footer #resource-hud[hidden]{display:none}
#resource-hud .resource-goal{position:relative;display:grid;grid-template-columns:36px 1fr;align-items:center;gap:5px;width:106px;height:88px;box-sizing:border-box;padding:9px 7px 19px;border:2px solid #c28c5b;border-radius:17px;color:#fff0d6;background:linear-gradient(155deg,#775035f5,#483324f5);box-shadow:inset 0 1px 0 #fbd4a05c,0 3px 0 #45281870;text-shadow:0 1px 1px #24180e}
#resource-hud .resource-goal>img{width:39px;height:46px;object-fit:contain;filter:drop-shadow(0 2px 1px #21170b66)}
#resource-hud .resource-goal strong{font:700 11px 'Trebuchet MS',sans-serif;color:#fff0d8;white-space:nowrap}
#resource-hud .resource-count{font:800 19px 'Trebuchet MS',sans-serif;white-space:nowrap;margin-top:4px}#resource-hud .resource-count small{font-size:12px;font-weight:500;color:#f3ddbd}
#resource-hud .resource-goal em{display:none}#resource-hud .resource-goal meter{position:absolute;left:8px;bottom:9px;width:calc(100% - 16px);height:10px;margin:0}
#resource-hud .resource-goal meter::-webkit-meter-bar{border:1px solid #ad8a6b;background:#513e2f;border-radius:7px}#resource-hud .resource-goal meter::-webkit-meter-optimum-value{background:linear-gradient(#ffb237,#f28a16);border-radius:6px}
#resource-hud .resource-goal:not(.complete){border-color:#f5aa35;box-shadow:inset 0 0 0 1px #fbd18e45,0 2px 4px #63341e66}
#resource-hud .resource-goal.complete{border-color:#8ed64c;background:linear-gradient(150deg,#66783be8,#414c28f5);box-shadow:inset 0 0 0 1px #bbf78044,0 2px 4px #25381b66}
#resource-hud .resource-goal.complete:after{content:'✓';position:absolute;right:-4px;top:-6px;width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:#4ace35;border:1px solid #ddffaf;color:white;font:bold 16px sans-serif;box-shadow:0 1px 4px #3e6929}
#resource-hud .resource-goal.complete meter::-webkit-meter-optimum-value{background:linear-gradient(#7ce33b,#39bc29)}
footer .game-modes{order:2;display:flex!important;gap:6px!important;margin:0!important;padding:0!important;align-self:center}footer #build.backpack{order:1;width:64px!important;height:76px!important;min-width:64px!important;margin:0!important;border:3px solid #ffe3b2!important;border-radius:21px!important;background:linear-gradient(#aa6234,#5c351f)!important;box-shadow:inset 0 0 0 2px #c57e49,0 3px 0 #56301d!important;position:relative}
footer #build.backpack svg{width:43px;height:48px}footer #build.backpack kbd{bottom:3px;font-size:10px;color:#ffeacd}footer .game-modes button:is(#overview,#walk){background:linear-gradient(#78573c,#4c3829)!important;border:2px solid #bc936d!important;border-radius:15px!important}
@media(max-width:700px){footer{right:8px!important;bottom:12px!important;gap:6px;max-width:calc(100vw - 16px)!important;flex-wrap:wrap;justify-content:flex-end}footer #resource-hud{gap:5px;flex-wrap:wrap;justify-content:flex-end;max-width:100%}#resource-hud .resource-goal{width:87px;height:76px;grid-template-columns:28px 1fr;border-radius:14px;padding:7px 5px 17px;gap:3px}#resource-hud .resource-goal>img{width:29px;height:36px}#resource-hud .resource-count{font-size:16px}#resource-hud .resource-count small{font-size:10px}#resource-hud .resource-goal strong{font-size:10px}footer #build.backpack{width:48px!important;min-width:48px!important;height:62px!important;border-radius:16px!important}footer #build.backpack svg{width:32px;height:37px}footer .game-modes button:is(#overview,#walk){width:36px!important;min-width:36px!important;height:43px!important;min-height:43px!important}footer .game-modes{gap:4px!important}}

#resource-hud .resource-goal meter::-webkit-meter-bar{height:10px}#resource-hud .resource-goal meter::-webkit-meter-inner-element{height:100%}

/* Smaller resource fields; retain the restored brown design and progress colours. */
#resource-hud .resource-goal{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;width:62px;height:68px;padding:3px 4px 14px;gap:0;border-radius:12px}
#resource-hud .resource-goal>img{width:32px;height:32px}
#resource-hud .resource-goal>div{flex:0;width:100%;text-align:center}
#resource-hud .resource-goal strong{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#resource-hud .resource-count{font-size:13px;line-height:16px;margin-top:0}
#resource-hud .resource-count small{font-size:10px}
#resource-hud .resource-goal meter{left:5px;bottom:6px;width:calc(100% - 10px);height:6px}
#resource-hud .resource-goal meter::-webkit-meter-bar{height:6px}
#resource-hud .resource-goal.complete:after{width:16px;height:16px;right:-3px;top:-4px;font-size:12px}

#energy-hud{order:0;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;box-sizing:border-box;width:62px;height:68px;padding:3px 4px 14px;flex:none;border:2px solid #c28c5b;border-radius:12px;color:#fff0d6;background:linear-gradient(155deg,#775035f5,#483324f5);box-shadow:inset 0 1px 0 #fbd4a05c,0 3px 0 #45281870;text-shadow:0 1px 1px #24180e;--energy-colour:#74c74e}
#energy-hud[hidden]{display:none}#energy-hud[data-level=medium]{--energy-colour:#efa13c}#energy-hud[data-level=low]{--energy-colour:#e15b47}
#energy-hud .energy-heart{height:32px;line-height:32px;font-size:28px;color:#f3c28c}#energy-hud .energy-value{font:700 12px/16px 'Trebuchet MS',sans-serif;white-space:nowrap}
#energy-hud .energy-track{position:absolute;left:5px;bottom:6px;width:calc(100% - 10px);height:6px;box-sizing:border-box;border:1px solid #ad8a6b;border-radius:4px;background:#513e2f;overflow:hidden}
#energy-hud .energy-track>span{display:block;height:100%;background:var(--energy-colour);transition:width .3s linear,background-color .3s}
@media(prefers-reduced-motion:reduce){#energy-hud .energy-track>span{transition:none}}
