#storyAdventure{position:fixed;inset:0;z-index:1200;overflow:auto;background:#eff0d3;color:#213c2f;font-family:system-ui,sans-serif;isolation:isolate;padding-bottom:env(safe-area-inset-bottom)}
#storyAdventure[hidden],#storyAdventure [hidden]{display:none!important}.story-adventure-open{overflow:hidden}.story-hero-hint{display:block;color:#ead99f;font-size:11px;padding:5px 0 9px}.story-hero-hint[hidden]{display:none}.story-journal-source{display:inline-block;margin-top:9px;font-size:10px;color:#285e40;text-decoration:underline}
#storyAdventure::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 18% 0%,#faf1af 0,transparent 55%),radial-gradient(ellipse at 85% 85%,#7caf8838,transparent 60%)}
#storyAdventure button,#storyAdventure input,#storyAdventure select{font:inherit}#storyAdventure button{cursor:pointer}#storyAdventure button:disabled{cursor:default;opacity:.55}
.story-header{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:max(13px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) 13px max(20px,env(safe-area-inset-left));background:#163b32ec;color:#fff4cf;border-top:10px solid transparent;border-image:repeating-linear-gradient(135deg,#f6d04e 0 13px,#13271f 13px 25px,#bc332d 25px 38px,#f6f0d6 38px 48px) 10;backdrop-filter:blur(10px)}
.story-brand{display:flex;flex-direction:column;gap:4px}.story-brand b{letter-spacing:.13em;font-size:17px}.story-brand small{font-size:11px;color:#d6e3c6}.story-toolbar{display:flex;gap:6px}.story-icon{display:grid;place-items:center;width:43px;height:43px;background:#18362944;border:1px solid #e8f5d957;border-radius:12px;color:#fff5d4;font-size:21px;line-height:1}.story-icon:hover{background:#e7edd120}.story-icon:focus-visible,.story-button:focus-visible,.story-level:focus-visible,.story-secret-route:focus-visible{outline:3px solid #bb5636;outline-offset:3px}
.story-view{max-width:1100px;margin:auto;padding:34px 25px 50px}.story-intro{max-width:840px;margin:0 auto 28px}.story-eyebrow{font-size:11px;letter-spacing:.18em;font-weight:800;color:#697747}.story-intro h1{font-size:clamp(32px,5vw,54px);letter-spacing:-.035em;line-height:1.06;margin:10px 0 16px;font-weight:850}.story-intro p{max-width:710px;line-height:1.65;font-size:15px;margin:12px 0}.story-map-summary{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;font-size:12px;margin:19px 0}.story-map-summary b{background:#efcf735c;padding:9px 13px;border:1px solid #b89b46;border-radius:20px}.story-intro>.story-button{margin-top:8px}
.story-map{padding:0;margin:28px auto;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:840px}.story-map-node{position:relative;list-style:none}.story-map-node:not(:last-child)::after{content:"";position:absolute;left:36px;top:100%;height:25px;border-left:3px dashed #7a9865;pointer-events:none}.story-map-node:nth-last-child(2)::after{display:none}.story-level{width:100%;display:flex;text-align:left;align-items:center;gap:15px;padding:19px;background:#fff9de;border:2px solid #86975e;border-radius:19px 23px 17px 21px;box-shadow:0 5px 0 #254a3330;color:#213c2f;min-height:115px}.story-level:hover:not(:disabled){background:#fffdeb;border-color:#4c7650}.story-level-number{display:grid;place-items:center;flex-shrink:0;width:43px;height:43px;border-radius:50%;border:2px solid #ae703b;background:#ffdd86;color:#57331b;font-size:20px;font-weight:850}.story-level-detail{display:flex;flex-direction:column;gap:6px}.story-level-detail b{font-size:17px;line-height:1.2}.story-level-detail small{font-size:12px;color:#657354}.story-level-progress{font-size:11px;line-height:1.5;color:#805532;font-weight:650}.story-locked .story-level{background:#e1e5cf;border-color:#bcc4a8;box-shadow:none}.story-complete .story-level-number{background:#c9df99}.story-secret-route{display:block;width:calc(100% - 27px);margin:11px 0 0 27px;text-align:left;border:1px dashed #997544;border-radius:10px;background:#ffdd8640;padding:11px 12px;font-size:11px;color:#5b4827}.story-map-notes{max-width:840px;margin:auto;border-top:1px solid #afbc91;padding-top:17px}.story-map-notes h2{font-size:18px}.story-map-notes p{font-size:13px;line-height:1.7;margin:9px 0}
.story-stage{height:calc(100dvh - 84px);width:100%;position:relative;overflow:hidden;background:#163b32}.story-stage canvas{display:block;max-width:100%;touch-action:none}.story-panel{position:fixed;z-index:10;inset:0;background:#123c2d88;display:flex;align-items:center;justify-content:center;padding:22px;backdrop-filter:blur(3px)}.story-card{width:min(640px,100%);max-height:calc(100dvh - 44px);overflow-y:auto;background:#fff8dd;color:#243c2b;border:3px solid #789157;border-radius:23px 17px 22px 18px;padding:26px;box-shadow:0 14px 50px #102d3a59}.story-card h2{font-size:clamp(24px,4vw,34px);margin:0 0 17px;line-height:1.1}.story-card p{font-size:14px;line-height:1.65;margin:12px 0}.story-card .story-goal{border-left:4px solid #bc5636;padding:9px 12px;background:#efdbad61;font-weight:650}.story-card .story-help{font-size:12px;color:#526343}.story-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.story-button{background:#fff9e4;border:1px solid #8fa66d;border-radius:11px;padding:12px 16px;min-height:44px;color:#244132;font-size:13px!important;font-weight:750}.story-button:hover{background:#e5eccb}.story-primary{background:#285c43;color:#fff5d7;border-color:#285c43}.story-primary:hover{background:#326f4d}.story-earned{font-weight:800;color:#8b5f30}.story-notice{position:fixed;left:50%;transform:translateX(-50%);bottom:36px;z-index:15;background:#183a2deb;color:#fff7d9;padding:10px 15px;font-size:12px;max-width:min(90vw,540px);text-align:center;border-radius:14px;pointer-events:none}.story-notice:empty{display:none}.story-save-status{display:block;padding:8px 18px;font-size:10px;text-align:right;color:#536a48}.story-stage:not([hidden])~.story-save-status{position:fixed;bottom:1px;right:3px;z-index:5;color:#fffbd7;text-shadow:0 1px 2px #000;pointer-events:none}
.story-settings{display:flex;flex-direction:column;gap:15px}.story-setting{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:13px;line-height:1.5}.story-setting input[type=checkbox]{width:21px;height:21px;accent-color:#326f4d}.story-setting input[type=range]{min-width:80px;max-width:165px;accent-color:#326f4d}.story-setting select{max-width:230px;padding:9px;border:1px solid #829761;border-radius:8px;background:#fffef2;color:#243c2b}.story-journal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:15px 0}.story-journal-page{background:#e7edcf;border:1px solid #b3c18f;padding:14px;border-radius:12px}.story-journal-page h3{font-size:15px;margin:0 0 6px}.story-journal-page p{font-size:12px;margin:0;line-height:1.6}
#storyAdventure.story-high-contrast{background:#fff;color:#112d19}.story-high-contrast .story-level,.story-high-contrast .story-card,.story-high-contrast .story-button,.story-high-contrast .story-journal-page{border-color:#173a27;background:#fff;color:#152c1b}.story-high-contrast .story-primary{background:#163925;color:#fff}.story-high-contrast .story-level-detail small,.story-high-contrast .story-level-progress,.story-high-contrast .story-help,.story-high-contrast .story-save-status{color:#233d2a}.story-reduced-motion *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
@media(min-width:651px){.story-map-node:nth-child(1){grid-area:1/1}.story-map-node:nth-child(2){grid-area:1/2}.story-map-node:nth-child(3){grid-area:2/2}.story-map-node:nth-child(4){grid-area:2/1}.story-map-node:nth-child(5){grid-area:3/1}.story-map-node:nth-child(6){grid-area:3/2}.story-map-node:nth-child(7){grid-area:4/2}.story-map-node:nth-child(1)::after,.story-map-node:nth-child(5)::after{left:100%;top:50%;width:24px;height:0;border-left:0;border-top:3px dashed #7a9865}.story-map-node:nth-child(3)::after{left:-24px;top:50%;width:24px;height:0;border-left:0;border-top:3px dashed #7a9865}.story-map-node:nth-child(6)::after{display:block}}
@media(max-width:650px){.story-header{gap:8px;padding-left:10px;padding-right:10px;flex-wrap:wrap}.story-brand{flex:1;min-width:170px}.story-brand b{font-size:13px}.story-brand small{font-size:9px;max-width:220px}.story-toolbar{gap:4px}.story-icon{width:34px;height:34px;border-radius:9px;font-size:18px}.story-view{padding:24px 16px 38px}.story-map{grid-template-columns:1fr;gap:22px}.story-map-node:nth-last-child(2)::after{display:block}.story-level{padding:16px;min-height:104px}.story-level-detail b{font-size:16px}.story-panel{padding:12px}.story-card{padding:20px 17px;max-height:calc(100dvh - 24px)}.story-settings .story-setting{font-size:12px}.story-setting select{max-width:180px;font-size:12px}.story-journal{grid-template-columns:1fr}.story-actions>.story-button{flex:1 1 45%}.story-notice{bottom:27px}.story-stage{height:calc(100dvh - 106px)}}
@media(max-width:420px){.story-header{flex-direction:column;align-items:stretch}.story-toolbar{justify-content:space-between}.story-icon{width:38px;height:34px}.story-brand small{max-width:none}.story-stage{height:calc(100dvh - 110px)}}
@media(max-height:500px) and (orientation:landscape){.story-header{padding-top:7px;padding-bottom:7px;flex-wrap:nowrap;flex-direction:row}.story-brand small{display:none}.story-icon{height:32px;width:34px}.story-stage{height:calc(100dvh - 62px)}.story-view{padding-top:20px}.story-card{padding:16px}.story-card h2{font-size:23px}.story-card p{font-size:12px}}

#storyAdventure h1,#storyAdventure h2,#storyAdventure h3{font-family:system-ui,sans-serif;text-shadow:none;letter-spacing:-.025em}#storyAdventure .story-stage .adventure-pause{display:none}#storyAdventure .adventure-engine-stats{max-width:100%}

#storyAdventure .story-header{border-image:none;border-top:10px solid #122b23}#storyAdventure .story-header::before{content:"";position:absolute;top:-10px;left:0;right:0;height:10px;background:#000 url("assets/lightning-banner.png") repeat-x center 49%;background-size:auto 257%;pointer-events:none}

/* Adventure's illustrated home shares the arena's game-lobby composition. */
#storyAdventure{background:#102b24;color:#fff4d7}
#storyAdventure::before{background:linear-gradient(90deg,#071e20bd,#0c2e214a 45%,#071e20d6),linear-gradient(0deg,#09241ff5,transparent 70%),url("assets/adventure/village.png") center/cover no-repeat}
#storyAdventure .story-header{background:#0a2928d9;border-top-width:22px;box-shadow:0 5px 20px #05191544}
#storyAdventure .story-header::before{top:-22px;height:22px;background-size:auto 257%}
#storyAdventure .story-brand b{font-size:19px;letter-spacing:.12em;color:#ffdf89}
#storyAdventure .story-brand small{color:#ecddba;letter-spacing:.07em;font-size:9px}
#storyAdventure .story-icon{border-color:#edcf874b;background:#16382f4d;border-radius:10px}
#storyAdventure .story-view{max-width:1390px;padding:24px 30px 24px}
.story-dashboard{display:grid;grid-template-columns:minmax(320px,.82fr) minmax(570px,1.18fr);gap:36px;align-items:start}
#storyAdventure .story-intro{width:100%;margin:0;max-width:none;position:relative;text-shadow:0 2px 8px #071b18}
#storyAdventure .story-eyebrow{color:#f6d88c;letter-spacing:.14em;font-size:10px;font-weight:850}
#storyAdventure .story-intro h1{color:#fff3d5;font-size:clamp(36px,4.1vw,60px);white-space:pre-line;line-height:1.03;margin:13px 0 0;letter-spacing:-.04em;text-shadow:0 3px 10px #071b18}
.story-sanute{display:block;width:min(100%,440px);height:350px;object-fit:contain;object-position:center;margin:0 auto;filter:drop-shadow(0 16px 12px #062f2399)}
.story-identity{padding:0 7px}.story-identity h2{font-size:43px;margin:8px 0;color:#fff4d6}
#storyAdventure .story-identity p{font-size:13px;line-height:1.55;margin:8px 0;max-width:340px;color:#f7e7c7}
.story-console{background:linear-gradient(140deg,#103a2bea,#102824f2);border:1px solid #d7b5666b;border-radius:21px;padding:19px;box-shadow:0 18px 60px #001b205c;backdrop-filter:blur(12px);min-width:0}
#storyAdventure .story-map-summary{margin:0 0 15px;gap:8px 13px;color:#e4e6c9;font-size:11px}
#storyAdventure .story-map-summary b{background:#f6ca5920;border-color:#e7c76677;color:#ffdf89;font-size:12px;padding:7px 11px}
.story-difficulty{background:#d9d4a710;color:#eee7c4;border:1px solid #d9d4a755;border-radius:20px;padding:7px 10px;font-size:10px!important;text-transform:uppercase;margin-left:auto}
.story-featured{position:relative;overflow:hidden;border:1px solid #e3c68566;border-radius:15px;padding:19px;background:linear-gradient(90deg,#082a21f5,#0c3027a1),url("assets/adventure/village.png") center 60%/cover}
.story-featured.story-region-1,.story-featured.story-region-3{background-image:linear-gradient(90deg,#082a21f5,#0c3027a1),url("assets/adventure/wetland.png")}
.story-featured.story-region-2,.story-featured.story-region-4,.story-featured.story-region-5{background-image:linear-gradient(90deg,#082a21f5,#0c3027a1),url("assets/adventure/cypress.png")}
.story-featured h2{color:#fff2c9;font-size:28px;margin:9px 0 6px;line-height:1.05}
.story-featured p{color:#efdfbd;font-size:12px;line-height:1.5;max-width:330px;margin:8px 0 15px}
#storyAdventure .story-button{background:#173c2bb3;border-color:#e0c4816b;color:#fff1cf;border-radius:10px;min-height:42px;padding:10px 14px}
#storyAdventure .story-button:hover{background:#2b533b}
#storyAdventure .story-primary{background:linear-gradient(#ffe297,#f4b94c);border:1px solid #fff0b6;color:#253a24;font-weight:900;box-shadow:0 4px 0 #77572570}
#storyAdventure .story-primary:hover{background:linear-gradient(#fff0b9,#f8cc67)}
#storyAdventure .story-play{width:100%;letter-spacing:.09em;font-size:16px!important;min-height:49px}
.story-companion-rack{margin:13px 0 18px;border:1px solid #d6b86d40;background:#092c224f;border-radius:12px;padding:11px}
.story-talisman{display:flex;gap:9px;align-items:center;color:#f4db9e;font-size:10px;font-weight:850;letter-spacing:.04em}
.story-talisman-icon{font-size:35px;line-height:36px;width:34px;text-align:center;color:#ffd967;text-shadow:0 0 15px #ffc95644;flex-shrink:0}
.story-talisman small{display:block;color:#ccdcc6;letter-spacing:0;font-weight:500;line-height:1.5;font-size:10px;margin-top:4px}
#storyAdventure .story-find-talisman{margin-top:8px;min-height:36px;font-size:11px!important;padding:7px 11px;color:#ffdf89;width:100%}
.story-friend-list{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:11px}
.story-friend{display:flex;gap:8px;align-items:center;opacity:.75;min-width:0}
.story-friend-ready{opacity:1}.story-friend b{display:block;font-size:12px;color:#fff0c5}.story-friend small{display:block;font-size:9px;color:#c5d7bc;line-height:1.4;margin-top:3px}
.story-friend-needs-rescue{opacity:1}.story-friend-needs-rescue small{color:#ffd19c}
.story-friend-art{width:51px;height:44px;flex-shrink:0;border-radius:8px;background-image:url("assets/adventure/animals.png");background-size:400% 480%;background-position:0 44%;border:1px solid #d2be8055}
.story-friend-heron{background-size:400% 235%;background-position:0 100%}
.story-path-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px 12px;margin:15px 0 11px}.story-path-heading h2{font-size:20px;margin:0;color:#fff1c6}.story-path-heading small{font-size:8px;letter-spacing:.06em;color:#d9d6af}
#storyAdventure .story-map{max-width:none;margin:0;gap:10px;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start}
#storyAdventure .story-map-node{grid-area:auto!important;min-width:0}
#storyAdventure .story-map-node::after{display:none!important}
#storyAdventure .story-level{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;min-height:0;border-radius:10px;background:#153e2b;border:1px solid #e0c47b55;box-shadow:none;overflow:hidden;color:#fff2d3;transition:border-color .15s,transform .15s}
#storyAdventure .story-level:hover:not(:disabled){background:#1c4b35;border-color:#ffe1a0;transform:translateY(-2px)}
#storyAdventure .story-next .story-level{border-color:#f9d073;box-shadow:0 0 0 1px #f9d07344}
.story-level-art{display:block;position:relative;height:61px;background:linear-gradient(0deg,#0c2c2b90,transparent),url("assets/adventure/village.png") center 60%/cover}
.story-region-1 .story-level-art,.story-region-3 .story-level-art{background-image:linear-gradient(0deg,#0c2c2b90,transparent),url("assets/adventure/wetland.png")}
.story-region-2 .story-level-art,.story-region-4 .story-level-art,.story-region-5 .story-level-art{background-image:linear-gradient(0deg,#0c2c2b90,transparent),url("assets/adventure/cypress.png")}
.story-region-4 .story-level-art{filter:brightness(.75)}
#storyAdventure .story-level-number{position:absolute;top:6px;left:6px;width:24px;height:24px;border:1px solid #f2d79a95;background:#0c312cd6;font-size:12px;color:#ffe9b4;box-shadow:0 2px 5px #041c264d}
.story-level-state{position:absolute;right:7px;top:7px;color:#ffe69b;font-size:16px;line-height:20px;text-shadow:0 2px 5px #14241d}
#storyAdventure .story-level-detail{padding:9px 8px 10px;gap:5px;min-width:0}
#storyAdventure .story-level-detail b{font-size:12px;line-height:1.25;min-height:30px}
#storyAdventure .story-level-detail small{font-size:8px;letter-spacing:.1em;color:#dbc27f}
#storyAdventure .story-level-progress{font-size:8px;line-height:1.5;color:#e8d1a2;white-space:nowrap}
#storyAdventure .story-complete .story-level-number{background:#a7bf733b}
#storyAdventure .story-locked .story-level{background:#15342a;border-color:#99b29a40}
#storyAdventure .story-locked .story-level-art{filter:grayscale(.6) brightness(.65)}
#storyAdventure .story-level:disabled{opacity:.72}
#storyAdventure .story-secret-route{margin:5px 0 0;width:100%;font-size:9px;padding:7px 8px;background:#e8c66a0f;color:#e5ce8e;border-color:#d8ba6c80;min-height:30px}
#storyAdventure .story-map-notes{max-width:none;margin:20px 0 0;border-top:1px solid #dbbd7744;padding-top:14px;color:#e9dfba;font-size:12px}
.story-map-notes summary{cursor:pointer;min-height:26px;letter-spacing:.02em;font-weight:700;color:#f0d99e}
#storyAdventure .story-map-notes p{max-width:1000px;font-size:12px;line-height:1.65;color:#dcdfc6}
#storyAdventure .story-card{background:linear-gradient(135deg,#123d2f,#112d26);color:#fff0ce;border-color:#d1b37088;border-width:1px;border-radius:18px;box-shadow:0 18px 70px #0008}
#storyAdventure .story-card h2{color:#ffe19a}.story-card .story-goal{background:#d9b96315;border-left-color:#efc75f}.story-card .story-help{color:#cfdfc6!important}.story-card .story-earned{color:#ffe091}
#storyAdventure .story-setting select{background:#16392c;color:#fff0cb;border-color:#bda46c7a}
#storyAdventure .story-journal-page{background:#174432;border-color:#cdb27750;color:#fff1d0}
#storyAdventure .story-journal-source{color:#ffdfa0}
#storyAdventure .story-save-status{color:#d2d9bb;max-width:1390px;margin:auto;font-size:9px}
#storyAdventure .story-stage{height:calc(100dvh - 98px)}
#storyAdventure button:focus-visible,#storyAdventure summary:focus-visible{outline:3px solid #ffe09a;outline-offset:3px}
#storyAdventure.story-high-contrast{background:#071b13;color:white}
#storyAdventure.story-high-contrast::before{background:#071b13}
.story-high-contrast .story-console,.story-high-contrast .story-featured{background:#0a2319;border:2px solid #fff}
#storyAdventure.story-high-contrast .story-level,#storyAdventure.story-high-contrast .story-card,#storyAdventure.story-high-contrast .story-button,#storyAdventure.story-high-contrast .story-journal-page{background:#071b13;color:#fff;border-color:#fff}
#storyAdventure.story-high-contrast .story-level-detail small,#storyAdventure.story-high-contrast .story-level-progress,#storyAdventure.story-high-contrast .story-help,#storyAdventure.story-high-contrast .story-save-status{color:#fff}
#storyAdventure.story-high-contrast .story-primary{background:#ffe091;color:#091b13}
@media(max-width:1080px){.story-dashboard{grid-template-columns:minmax(245px,.7fr) minmax(490px,1.3fr);gap:24px}#storyAdventure .story-view{padding:20px}.story-sanute{height:300px}#storyAdventure .story-intro h1{font-size:43px}.story-identity h2{font-size:35px}.story-console{padding:15px}}
@media(max-width:820px){.story-dashboard{display:block}.story-intro{display:grid;grid-template-columns:150px 1fr;align-items:center}#storyAdventure .story-intro>.story-eyebrow,#storyAdventure .story-intro>h1{display:none}.story-sanute{grid-row:1;grid-column:1;height:145px;width:140px;margin:0}.story-identity{grid-row:1;grid-column:2;padding:10px}.story-identity h2{font-size:32px;margin:5px 0}#storyAdventure .story-identity p{font-size:12px;max-width:450px}.story-console{margin-top:8px}}
@media(max-width:650px){#storyAdventure .story-view{padding:10px 12px 22px}#storyAdventure .story-brand b{font-size:13px}#storyAdventure .story-header{padding:9px 10px;border-top-width:14px}#storyAdventure .story-header::before{top:-14px;height:14px}#storyAdventure .story-brand small{font-size:8px;letter-spacing:.025em}.story-sanute{width:115px;height:124px}.story-intro{grid-template-columns:115px 1fr}.story-identity{padding:5px 0 5px 7px}.story-identity h2{font-size:29px}.story-identity .story-eyebrow{font-size:7px!important;letter-spacing:.07em!important}#storyAdventure .story-identity p{font-size:10px;line-height:1.45;margin:5px 0}.story-console{padding:12px;border-radius:15px}#storyAdventure .story-map-summary{font-size:9px;gap:6px;margin-bottom:11px}#storyAdventure .story-map-summary b{font-size:11px;padding:7px 9px}.story-difficulty{font-size:8px!important;padding:7px 8px}.story-featured{padding:14px}.story-featured h2{font-size:24px}.story-featured p{font-size:10px;margin:8px 0 12px;max-width:270px}.story-companion-rack{padding:9px;margin:11px 0 14px}.story-friend-art{width:42px;height:38px}.story-friend b{font-size:10px}.story-friend small{font-size:8px}.story-friend-list{gap:8px}.story-talisman{font-size:9px}.story-talisman small{font-size:9px}.story-path-heading h2{font-size:19px}.story-path-heading small{font-size:7px}#storyAdventure .story-map{grid-template-columns:repeat(7,145px);gap:9px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:3px 3px 12px;scrollbar-width:thin;scrollbar-color:#d9bc74 transparent}#storyAdventure .story-map-node{scroll-snap-align:start}#storyAdventure .story-level-detail b{font-size:12px}#storyAdventure .story-level-progress{font-size:9px}#storyAdventure .story-level-detail small{font-size:8px}.story-level-art{height:73px}#storyAdventure .story-map-notes{margin:16px 0 0;padding-top:12px}#storyAdventure .story-card{padding:20px 17px}#storyAdventure .story-stage{height:calc(100dvh - 109px)}}
@media(max-width:420px){#storyAdventure .story-header{gap:7px}#storyAdventure .story-icon{width:38px;height:32px}#storyAdventure .story-stage{height:calc(100dvh - 114px)}}
@media(max-height:500px) and (orientation:landscape){#storyAdventure .story-header{padding-top:5px;padding-bottom:5px;border-top-width:10px}#storyAdventure .story-header::before{top:-10px;height:10px}#storyAdventure .story-stage{height:calc(100dvh - 58px)}}

/* Goal celebrations use the player's patchwork banner as the painted lettering. */
#storyAdventure .story-celebration-card{position:relative;isolation:isolate;width:min(760px,100%);overflow-x:hidden;border:2px solid #ffe293;background:linear-gradient(135deg,#0e322ceb,#0c2927f5),url("assets/adventure/village.png") center/cover;box-shadow:0 0 0 5px #122f29,0 22px 90px #001b26b3;animation:story-victory-enter .45s ease-out both}
.story-celebration-card::after{content:"";position:absolute;left:0;right:0;top:0;height:16px;z-index:2;background:#070b07 url("assets/lightning-banner.png") repeat-x center 49%;background-size:auto 257%;pointer-events:none}
.story-victory{display:flex;align-items:center;justify-content:center;gap:8px;position:relative;z-index:1;margin:2px 0 6px;min-height:185px}
.story-celebration-hero{width:180px;height:180px;object-fit:contain;filter:drop-shadow(0 10px 9px #0006);animation:story-victory-hop 1.3s ease-in-out infinite;transform-origin:50% 90%}
#storyAdventure .story-card h2.story-good-job{position:relative;max-width:410px;font-family:Impact,"Arial Black",system-ui,sans-serif;font-size:clamp(48px,7vw,84px);line-height:.94;letter-spacing:-.055em;font-weight:1000;font-style:italic;margin:0;transform:rotate(-7deg);text-align:center;background:#f8cd56 url("assets/lightning-banner.png") repeat center 49%;background-size:185px 185px;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-stroke:2px #fff8de;filter:drop-shadow(3px 5px 0 #7b2325) drop-shadow(0 7px 1px #041e23);animation:story-victory-cheer 1.8s ease-in-out infinite}
#storyAdventure .story-celebration-card>p,#storyAdventure .story-celebration-card>.story-actions{position:relative;z-index:1}
#storyAdventure .story-card .story-celebration-chapter{text-align:center;letter-spacing:.11em;color:#ffe6a1;font-size:12px;font-weight:900;margin:8px 0 14px}
.story-celebration-card .story-earned{padding:12px;border:1px solid #f9da7955;border-radius:11px;background:#09291cb8;text-align:center}
.story-celebration-confetti{position:absolute;inset:16px 0 0;overflow:hidden;z-index:0;pointer-events:none}
.story-confetti-piece{position:absolute;top:-35px;left:var(--x);width:18px;height:12px;background:#ffc832 url("assets/lightning-banner.png") center 49%/auto 290%;box-shadow:0 0 3px #ffeabe55;opacity:.75;animation:story-patchwork-fall 3.6s linear var(--delay) infinite}
.story-confetti-piece:nth-child(3n){width:12px;height:20px;filter:hue-rotate(9deg)}
.story-confetti-piece:nth-child(3n+1){background-position:30% 49%}
.story-confetti-piece:nth-child(3n+2){background-position:75% 49%}
@keyframes story-victory-enter{from{opacity:0;transform:translateY(22px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes story-victory-hop{0%,100%{transform:translateY(4px) rotate(-4deg)}45%{transform:translateY(-12px) rotate(5deg)}60%{transform:translateY(-10px) rotate(3deg)}}
@keyframes story-victory-cheer{0%,100%{transform:rotate(-7deg) scale(1)}50%{transform:rotate(-4deg) scale(1.035)}}
@keyframes story-patchwork-fall{0%{transform:translate3d(0,-20px,0) rotate(var(--turn));opacity:0}10%,75%{opacity:.8}100%{transform:translate3d(var(--drift),550px,0) rotate(calc(var(--turn) + 350deg));opacity:0}}
@media(max-width:650px){#storyAdventure .story-celebration-card{padding:22px 16px 16px}.story-victory{min-height:130px;gap:0}.story-celebration-hero{width:115px;height:135px;flex-shrink:0}#storyAdventure .story-card h2.story-good-job{font-size:clamp(43px,12vw,68px);-webkit-text-stroke:1.4px #fff8de;max-width:220px}.story-celebration-card .story-earned{font-size:12px!important;padding:10px}.story-celebration-card .story-actions{margin-top:15px}.story-celebration-card .story-actions>.story-button{flex:1 1 100%}}
@media(max-height:500px) and (orientation:landscape){.story-victory{min-height:95px}.story-celebration-hero{height:100px;width:110px}#storyAdventure .story-card h2.story-good-job{font-size:55px}.story-celebration-card .story-actions{margin-top:10px}}
#storyAdventure.story-reduced-motion .story-celebration-card,#storyAdventure.story-reduced-motion .story-celebration-hero,#storyAdventure.story-reduced-motion .story-good-job,#storyAdventure.story-reduced-motion .story-confetti-piece{animation:none!important}
#storyAdventure.story-reduced-motion .story-confetti-piece{top:calc(var(--x) * .5);transform:rotate(var(--turn));opacity:.4}
#storyAdventure.story-high-contrast .story-card h2.story-good-job{background:none;color:#ffe091;-webkit-text-stroke:0;filter:none}
@media(prefers-reduced-motion:reduce){.story-celebration-card,.story-celebration-hero,.story-good-job,.story-confetti-piece{animation:none!important}.story-confetti-piece{display:none}}
