.story-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:64px;align-items:start}.story-stage{position:sticky;top:86px;border:1px solid var(--gray-200);border-radius:24px;background:var(--gray-50);overflow:hidden;z-index:2}.story-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px;background:white;border-bottom:1px solid var(--gray-200)}.story-top>span{font-size:13px;font-weight:600;color:var(--dark-2)}.story-nav{display:flex;gap:5px}.story-nav button{min-width:36px;min-height:36px;border:1px solid var(--gray-200);border-radius:9px;background:white;color:var(--gray-700);font-size:13px}.story-nav button[aria-pressed=true]{background:var(--dark-2);color:white;border-color:var(--dark-2)}.story-view{height:420px;position:relative;overflow:hidden;background:#e7d4ae}.story-world{position:absolute;width:560px;height:440px;left:50%;top:50%;margin:-220px 0 0 -280px;transform:scale(var(--story-scale,1));background:url('../sprites/market-v3/tiles/editor-sand.png') repeat;background-size:32px;transform-origin:center;transition:filter .4s}.story-booth{position:absolute;display:flex;flex-direction:column;align-items:center;width:168px}.story-booth img{display:block;width:168px;height:auto;image-rendering:pixelated}.story-booth>span{position:absolute;top:4px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:11px;color:#272320;background:#fffefaed;border-radius:5px;padding:3px 8px}.shop-a{left:36px;top:30px}.shop-b{left:328px;top:30px}.shop-c{left:36px;top:248px}.story-person{position:absolute;left:380px;top:214px;width:32px;height:64px}.story-sprite{display:block;width:32px;height:64px;background-image:url('../sprites/limezu/avatars/teal.png');background-repeat:no-repeat;background-position:0 -64px;image-rendering:pixelated}.story-person small{display:block;position:absolute;top:64px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:11px;background:white;padding:2px 5px;border-radius:4px}.story-stage[data-step='0'] .story-sprite{background-position:0 -128px}.story-open{position:absolute;left:352px;top:304px;background:#018479;color:white;padding:9px 14px;font-size:13px;border-radius:10px;opacity:0}.story-stage[data-step='1'] .story-open{opacity:1}.story-click{display:inline-block;width:9px;height:9px;border-radius:50%;background:white;box-shadow:0 0 0 5px #ffffff55;margin-left:9px}.story-caption{font-size:13px;color:var(--gray-700);margin:0;padding:13px 16px;background:white;min-height:52px;line-height:1.9}.story-shop-panel,.story-product-panel,.story-destination{position:absolute;background:white;border-radius:20px;inset:16px;opacity:0;visibility:hidden;transform:translateY(18px);transition:opacity .35s,transform .55s cubic-bezier(.16,1,.3,1),visibility .35s;overflow:hidden;padding:20px}.story-stage[data-step='1'] .story-shop-panel{opacity:1;visibility:visible;transform:none;transition-delay:.9s}.story-panel-label{font-size:12px;color:var(--muted)}.story-shop-panel h3{font-size:19px;margin:6px 0 20px}.story-product-options{display:grid;grid-template-columns:1fr 1fr;gap:14px}.story-product-options img{width:100%;aspect-ratio:1;object-fit:cover;display:block;border-radius:12px}.story-product-options strong{font-size:12px;display:block;margin-top:10px;line-height:1.6}.story-product-options div>span{display:block;font-size:12px;color:var(--muted);margin-top:4px}.story-choice{font-size:12px;color:var(--dark-2);display:block;margin-top:14px}.story-stage[data-step='2'] .story-product-panel{visibility:visible;opacity:1;transform:none}.story-stage[data-step='2'] .story-world,.story-stage[data-step='1'] .story-world{filter:brightness(.88)}.story-product-panel{display:flex;align-items:center;gap:20px}.story-product-panel>img{width:47%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:14px}.story-product-panel>div{flex:1;min-width:0}.story-product-panel>div>span:first-child{font-size:12px;color:var(--muted)}.story-product-panel h3{font-size:21px;line-height:1.5;margin:10px 0}.story-product-panel strong{font-size:18px}.story-product-panel p{font-size:13px;color:var(--muted);line-height:1.9;margin:14px 0}.story-selling{display:block;background:var(--dark-1);color:white;font-size:12px;border-radius:9px;padding:11px 10px;text-align:center;white-space:nowrap}.story-stage[data-step='3'] .story-destination{visibility:visible;opacity:1;transform:none}.story-destination{padding:0;background:#fff}.store-browser-bar{height:36px;background:var(--gray-100);display:flex;align-items:center;gap:5px;padding:0 12px}.store-browser-bar i{height:6px;width:6px;background:var(--gray-400);border-radius:50%}.store-browser-bar>span{font-size:11px;color:var(--muted);margin-left:10px}.store-preview{padding:18px;text-align:center}.store-preview>span:first-child{display:block;font-size:12px;color:var(--muted);margin-bottom:12px}.store-preview img{width:165px;max-width:50%;aspect-ratio:1;object-fit:cover;display:block;margin:0 auto 14px;border-radius:10px}.store-preview h3{font-size:17px;margin:0 0 6px}.store-preview strong{font-size:15px;display:block}.store-buy{display:inline-block;background:var(--gray-900);color:white;font-size:12px;border-radius:8px;padding:8px 16px;margin-top:14px}.story-copy article{min-height:480px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:36px 0;scroll-margin-top:110px}.story-step-number{font-size:14px;font-weight:600;color:var(--dark-2);margin-bottom:20px}.story-copy h3{font-size:28px;line-height:1.5;font-weight:650;letter-spacing:-.6px;margin-bottom:20px}.story-copy p{font-size:16px;line-height:1.95;color:var(--muted);margin:0;max-width:380px}.story-copy .btn{margin-top:24px}.story-copy article[data-active=true] .story-step-number{color:var(--dark-1)}.mobile .story-layout{display:block}.mobile .story-stage{top:10px}.mobile .story-view{height:285px}.mobile .story-copy article{min-height:330px;padding:32px 0;scroll-margin-top:410px}.mobile .story-copy h3{font-size:24px}.mobile .story-copy p{font-size:15px}.mobile .story-top{padding:10px 12px}.mobile .story-product-panel{gap:12px;padding:14px}.mobile .story-product-panel h3{font-size:16px}.mobile .story-product-panel p{font-size:12px}.mobile .story-shop-panel h3{font-size:17px;margin-bottom:12px}.mobile .store-preview img{width:106px}.mobile .store-preview{padding:12px}.mobile .store-preview h3{font-size:15px}.mobile .story-nav button{min-width:32px;min-height:36px}@media(max-width:900px){.story-layout{gap:32px}.story-copy h3{font-size:25px}.story-product-panel{gap:12px;padding:14px}.story-product-panel h3{font-size:17px}.story-product-panel p{font-size:12px}}@media(max-width:700px){.story-layout{display:block}.story-stage{top:10px}.story-view{height:clamp(235px,34svh,300px)}.story-copy article{min-height:330px;padding:32px 0;scroll-margin-top:410px}.story-copy h3{font-size:24px}.story-copy p{font-size:15px}.story-top{padding:10px 12px}.story-top>span{font-size:12px}.story-nav button{min-width:32px;min-height:36px}.story-product-panel{gap:12px;padding:14px}.story-product-panel h3{font-size:16px}.story-product-panel strong{font-size:15px}.story-product-panel p{font-size:12px;margin:8px 0}.story-selling{font-size:11px;padding:9px 7px}.story-click{margin-left:4px;width:6px;height:6px}.story-shop-panel{padding:14px}.story-shop-panel h3{font-size:17px;margin-bottom:12px}.story-product-options{gap:10px}.story-product-options strong{font-size:11px;margin-top:6px}.story-choice{margin-top:8px;font-size:11px}.store-preview{padding:10px}.store-preview img{width:94px;margin-bottom:8px}.store-preview h3{font-size:14px}.store-preview>span:first-child{margin-bottom:8px}.store-buy{margin-top:8px;padding:6px 12px}.story-caption{font-size:12px;min-height:48px;padding:10px 12px}}@media(prefers-reduced-motion:reduce){.story-world,.story-shop-panel,.story-product-panel,.story-destination{transition:none!important}}@media print{.story-layout{display:block}.story-stage{position:relative;top:auto}.story-copy article{min-height:0;padding:20px 0}.story-shop-panel,.story-product-panel,.story-destination{transition:none!important}}
/* Keep product information legible inside the fixed illustration viewport. */
.story-product-options img{height:146px;aspect-ratio:auto}.mobile .story-product-options img{height:94px}.mobile .store-preview{display:grid;grid-template-columns:94px 1fr;gap:6px 12px;align-items:center;text-align:left}.mobile .store-preview>span:first-child{grid-column:1/-1;margin:0 0 4px}.mobile .store-preview img{grid-column:1;grid-row:2/5;max-width:100%;width:94px;margin:0}.mobile .store-preview h3,.mobile .store-preview strong,.mobile .store-buy{grid-column:2;margin:0}.mobile .store-buy{text-align:center;font-size:11px;padding:7px 8px}@media(max-width:700px){.story-product-options img{height:94px}.store-preview{display:grid;grid-template-columns:94px 1fr;gap:6px 12px;align-items:center;text-align:left}.store-preview>span:first-child{grid-column:1/-1;margin:0 0 4px}.store-preview img{grid-column:1;grid-row:2/5;max-width:100%;width:94px;margin:0}.store-preview h3,.store-preview strong,.store-buy{grid-column:2;margin:0}.store-buy{text-align:center;font-size:11px;padding:7px 8px}}@media(max-height:600px){.story-stage{position:relative;top:auto}.story-layout{display:block}.story-copy article{min-height:240px}.story-view{height:340px}}

/* Product reading and outbound shopping are distinct scenes. */
.story-location{display:inline-block;font-size:11px!important;font-weight:650;color:var(--dark-2)!important;background:#edf7f4;padding:4px 8px;border-radius:5px;margin-bottom:10px}
.story-seller{display:block;font-size:11px;color:var(--gray-700)}
.story-product-panel h3{margin:5px 0 9px}
.story-product-panel p{display:block;line-height:1.7;margin:12px 0;font-size:13px;color:var(--gray-800)}
.story-detail-note{display:block;font-size:10px;color:var(--gray-600);border-top:1px solid var(--gray-200);padding-top:9px}
.story-stage[data-step='3'] .story-world{opacity:0}
.story-stage[data-step='3'] .story-view{background:var(--gray-100)}
.story-world{transition:filter .4s,opacity .35s}
.story-destination{inset:0;border-radius:0;background:var(--gray-100);padding:18px;display:flex;flex-direction:column;gap:12px}
.story-transfer{display:flex;align-items:center;justify-content:center;gap:10px;font-size:12px;color:var(--gray-700);flex-shrink:0}
.story-transfer strong{color:var(--gray-900);font-size:12px}
.store-window{border:1px solid var(--gray-300);border-radius:12px;overflow:hidden;background:white;flex:1;min-height:0}
.store-browser-bar{height:32px;background:var(--gray-200)}
.store-preview{display:grid;grid-template-columns:112px 1fr;gap:8px 16px;text-align:left;align-items:center;padding:16px}
.store-preview>span:first-child{grid-column:1/-1;margin:0 0 6px}
.store-preview img{grid-column:1;grid-row:2/5;width:112px;max-width:100%;margin:0}
.store-preview h3,.store-preview strong,.store-buy{grid-column:2;margin:0}
.store-preview h3{font-size:16px;line-height:1.5}
.store-buy{background:var(--gray-100);color:var(--gray-700);font-size:11px;padding:8px;text-align:center}
.story-external-note{font-size:11px!important;line-height:1.6!important;text-align:center;margin:0!important;color:var(--gray-700);flex-shrink:0}
.mobile .story-product-panel p{display:block;font-size:11px;line-height:1.65;margin:7px 0}
.mobile .story-location{font-size:10px!important;padding:3px 6px;margin-bottom:6px}
.mobile .story-product-panel h3{font-size:15px;margin:4px 0 6px}
.mobile .story-detail-note{font-size:9px;padding-top:6px}
.mobile .story-destination{padding:12px;gap:8px}
.mobile .story-transfer,.mobile .story-transfer strong{font-size:11px}
@media(max-width:700px){
.story-product-panel p{display:block;font-size:11px;line-height:1.65;margin:7px 0}
.story-product-panel{gap:12px;padding:12px}
.story-product-panel>img{width:42%;max-height:100%;object-fit:contain}
.story-location{font-size:10px!important;padding:3px 6px;margin-bottom:6px}
.story-product-panel h3{font-size:15px;margin:4px 0 6px}
.story-detail-note{font-size:9px;padding-top:6px}
.story-destination{padding:12px;gap:8px}
.story-transfer,.story-transfer strong{font-size:11px}
.store-preview{padding:10px;gap:5px 10px;grid-template-columns:80px 1fr}
.store-preview img{width:80px}
.store-preview h3{font-size:13px}
.story-external-note{font-size:10px!important}
}
@media(prefers-reduced-motion:reduce){.story-world{transition:none}}
