(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[944],{6070:()=>{},8123:()=>{},8557:(e,s,a)=>{Promise.resolve().then(a.bind(a,8737))},8737:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>m,dynamic:()=>h});var i=a(5155),t=a(2115),r=a(5695);a(2015),a(4393),a(8123),a(6070);var o=a(9848),n=a(7485),l=a(3395),c=a(4102);let d=e=>{let{isOpen:s,onClose:a}=e,[n,l]=(0,t.useState)([]),c=(0,r.useRouter)(),d=[{id:"character_design",name:"Character Design",basePrice:150,description:"Original character design and concept art",category:"project_type"},{id:"character_render",name:"Character Render",basePrice:100,description:"Detailed character illustration",category:"project_type"},{id:"environment_art",name:"Environment Art",basePrice:200,description:"Background and environment illustrations",category:"project_type"},{id:"concept_art",name:"Concept Art",basePrice:120,description:"Conceptual artwork and ideation",category:"project_type"},{id:"portrait_art",name:"Portrait Art",basePrice:80,description:"Character portraits and headshots",category:"project_type"},{id:"anime_style",name:"Anime Style",basePrice:0,description:"Anime/manga inspired artwork",category:"style"},{id:"cartoon_style",name:"Cartoon Style",basePrice:0,description:"Cartoon and stylized art",category:"style"},{id:"realistic_style",name:"Semi-Realistic Style",basePrice:25,description:"More realistic proportions and rendering",category:"style"},{id:"chibi_style",name:"Chibi Style",basePrice:-20,description:"Cute, simplified chibi characters",category:"style"},{id:"sketch_complexity",name:"Sketch/Line Art",basePrice:0,description:"Basic line art and sketches",category:"complexity"},{id:"flat_colors",name:"Flat Colors",basePrice:30,description:"Simple flat color application",category:"complexity"},{id:"cell_shading",name:"Cell Shading",basePrice:50,description:"Anime-style cell shading",category:"complexity"},{id:"full_render",name:"Full Rendering",basePrice:100,description:"Complete shading and lighting",category:"complexity"},{id:"background_simple",name:"Simple Background",basePrice:20,description:"Basic background elements",category:"addons"},{id:"background_detailed",name:"Detailed Background",basePrice:60,description:"Complex background scene",category:"addons"},{id:"additional_characters",name:"Additional Characters",basePrice:75,description:"Extra characters in the same piece",category:"addons"},{id:"commercial_rights",name:"Commercial Rights",basePrice:150,description:"Rights for commercial use",category:"addons"},{id:"source_files",name:"Source Files",basePrice:25,description:"Original project files and layers",category:"addons"},{id:"rush_delivery",name:"Rush Delivery",basePrice:50,description:"Expedited completion (1-2 weeks)",category:"addons"}],h=(e,s)=>{l(a=>{if("project_type"!==s&&"style"!==s&&"complexity"!==s)return a.includes(e)?a.filter(s=>s!==e):[...a,e];{let i=a.filter(e=>{var a;return!(null==(a=d.find(s=>s.id===e))?void 0:a.category.startsWith(s))});return a.includes(e)?i:[...i,e]}})},m=()=>n.reduce((e,s)=>{let a=d.find(e=>e.id===s);return e+((null==a?void 0:a.basePrice)||0)},0),p=()=>n.find(e=>{var s;return(null==(s=d.find(s=>s.id===e))?void 0:s.category)==="project_type"});return s?(0,i.jsx)("div",{className:"modal-overlay",onClick:a,children:(0,i.jsxs)("div",{className:"art-commission-modal",onClick:e=>e.stopPropagation(),children:[(0,i.jsx)("button",{className:"modal-close-button",onClick:a,"aria-label":"Close art commission quote",children:(0,i.jsx)(o.WQq,{})}),(0,i.jsxs)("div",{className:"art-commission-content",children:[(0,i.jsx)("h2",{className:"art-commission-title",children:"Art Commission Quote"}),(0,i.jsx)("p",{className:"art-commission-description",children:"Select your desired artwork specifications to get an estimated price for your custom art commission."}),(0,i.jsxs)("div",{className:"art-commission-options-container",children:[(0,i.jsxs)("div",{className:"option-category",children:[(0,i.jsx)("h3",{children:"Artwork Type"}),(0,i.jsx)("div",{className:"option-grid",children:d.filter(e=>"project_type"===e.category).map(e=>(0,i.jsxs)("div",{className:"option-card ".concat(n.includes(e.id)?"selected":""),onClick:()=>h(e.id,e.category),children:[(0,i.jsx)("div",{className:"option-name",children:e.name}),(0,i.jsxs)("div",{className:"option-price",children:["$",e.basePrice]}),(0,i.jsx)("div",{className:"option-description",children:e.description})]},e.id))})]}),(0,i.jsxs)("div",{className:"option-category",children:[(0,i.jsx)("h3",{children:"Art Style"}),(0,i.jsx)("div",{className:"option-grid",children:d.filter(e=>"style"===e.category).map(e=>(0,i.jsxs)("div",{className:"option-card ".concat(n.includes(e.id)?"selected":""),onClick:()=>h(e.id,e.category),children:[(0,i.jsx)("div",{className:"option-name",children:e.name}),(0,i.jsx)("div",{className:"option-price",children:0===e.basePrice?"Base Style":e.basePrice>0?"+$".concat(e.basePrice):"$".concat(e.basePrice)}),(0,i.jsx)("div",{className:"option-description",children:e.description})]},e.id))})]}),(0,i.jsxs)("div",{className:"option-category",children:[(0,i.jsx)("h3",{children:"Complexity Level"}),(0,i.jsx)("div",{className:"option-grid",children:d.filter(e=>"complexity"===e.category).map(e=>(0,i.jsxs)("div",{className:"option-card ".concat(n.includes(e.id)?"selected":""),onClick:()=>h(e.id,e.category),children:[(0,i.jsx)("div",{className:"option-name",children:e.name}),(0,i.jsx)("div",{className:"option-price",children:0===e.basePrice?"Base Price":"+$".concat(e.basePrice)}),(0,i.jsx)("div",{className:"option-description",children:e.description})]},e.id))})]}),(0,i.jsxs)("div",{className:"option-category",children:[(0,i.jsx)("h3",{children:"Add-ons & Extras"}),(0,i.jsx)("div",{className:"option-grid",children:d.filter(e=>"addons"===e.category).map(e=>(0,i.jsxs)("div",{className:"option-card ".concat(n.includes(e.id)?"selected":""),onClick:()=>h(e.id,e.category),children:[(0,i.jsx)("div",{className:"option-name",children:e.name}),(0,i.jsxs)("div",{className:"option-price",children:["+$",e.basePrice]}),(0,i.jsx)("div",{className:"option-description",children:e.description})]},e.id))})]})]}),(0,i.jsxs)("div",{className:"quote-summary",children:[(0,i.jsx)("div",{className:"selected-options",children:0===n.length?(0,i.jsx)("p",{className:"no-selection",children:"Select options above to see your quote"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h4",{children:"Selected Options:"}),(0,i.jsx)("ul",{children:n.map(e=>{let s=d.find(s=>s.id===e);return s?(0,i.jsxs)("li",{children:[s.name," - $",s.basePrice>=0?s.basePrice:"".concat(s.basePrice)]},e):null})})]})}),(0,i.jsxs)("div",{className:"quote-total",children:[(0,i.jsxs)("div",{className:"total-price",children:["Estimated Total: ",(0,i.jsxs)("span",{className:"price-amount",children:["$",Math.max(m(),0)]})]}),p()&&(0,i.jsx)("div",{className:"quote-disclaimer",children:"* This is a base estimate. Final pricing may vary based on complexity, revisions, and specific requirements. Rush orders may incur additional fees."})]})]}),n.length>0&&p()&&(0,i.jsx)("div",{className:"contact-commission-section",children:(0,i.jsx)("button",{className:"contact-commission-button",onClick:()=>{let e=new URLSearchParams({type:"art",options:JSON.stringify(n.map(e=>{let s=d.find(s=>s.id===e);return s?"".concat(s.name," - $").concat((s.basePrice,s.basePrice)):""}).filter(Boolean)),total:Math.max(m(),0).toString()});c.push("/contact?".concat(e.toString())),a()},children:"Contact for Commission"})})]})]})}):null},h="force-dynamic",m=function(){return(0,i.jsx)(t.Suspense,{fallback:(0,i.jsx)(g,{}),children:(0,i.jsx)(p,{})})};function p(){var e;let s=(0,r.useSearchParams)(),a=(0,r.useRouter)(),[h,m]=(0,t.useState)(null),p=(0,t.useRef)(!1),g=(0,t.useMemo)(()=>s.get("character"),[s]);(0,t.useEffect)(()=>{g&&!p.current&&(m(g),p.current=!0)},[g]);let[u,y]=(0,t.useState)(!1),[v,f]=(0,t.useState)(null),[b,x]=(0,t.useState)(0),[w,j]=(0,t.useState)(!1),[k,N]=(0,t.useState)(null),[C,P]=(0,t.useState)(!1),S=(0,t.useMemo)(()=>[{id:"yuu",name:"Yuu",imagePath:"/images/characters/yuu.webp",description:"Pure sunshine wrapped in pink, elastic skin with flowing water-hair. Bounces through life with enthusiasm, discovering the world anew every day.",storyTheme:"The Journey of Wonder",storyColor:"#4facfe"},{id:"sammi",name:"Sammi",imagePath:"/images/characters/sammi.webp",description:"Adventure calls, and Sammi answers with a toothy grin. This charismatic shark-man devours new experiences and turns social misfits into a functioning family.",storyTheme:"The Adventurer's Heart",storyColor:"#fa709a"},{id:"twilight",name:"Twilight",imagePath:"/images/characters/twilight.webp",description:"A walking fortress with thick bark plates and shield for an arm. This intimidating dragonborn exterior houses the gentlest soul in the party.",storyTheme:"The Guardian's Burden",storyColor:"#56ab2f"},{id:"espi-rii",name:"Espi & Rii",imagePath:"/images/characters/espi-rii.webp",description:"The severed halves of a dead child's existence, drifting as eternal companions bound by tragedy. Espi the ghostly soul, Rii the pale zombie husk.",storyTheme:"The Divided Soul",storyColor:"#667eea"},{id:"starpup",name:"Starpup",imagePath:"/images/characters/starpup.webp",description:"Fell from the sky during a meteor shower. This brown and cream dog has star-shaped pupils that twinkle with cosmic knowledge.",storyTheme:"The Cosmic Companion",storyColor:"#1e3c72"},{id:"ramthoth",name:"Ramthoth",imagePath:"/images/characters/ramthoth.webp",description:"A short-statured scraggly scientist who totters through his dingy laboratory with manic energy, convinced he has bound a cosmic horror to his will.",storyTheme:"The Mad Scientist",storyColor:"#8360c3"},{id:"cindred",name:"Cindred",imagePath:"/images/characters/cindred.webp",description:"She has volatile magma-streaked arms and a toothy maw which leave smoldering craters where homes once stood. Beneath the fire and fury, she desperately seeks the connection and acceptance she's never known.",storyTheme:"The Broken Flame",storyColor:"#ff4500"}],[]),T={yuu:{bio:["Yuu is pure sunshine wrapped in pink, elastic skin and flowing water-hair that shifts from bright blue to seafoam to adorable pink. At 115cm tall with dark spots scattered across their shoulders and joints, they bounce through life with the enthusiasm of someone discovering the world anew every day. Their jagged, bear-trap mouth breaks into the most genuine smiles, while their kind eyes sparkle with innocent wonder that melts even the grumpiest hearts.","This lovable axolotl-human hybrid speaks in endearing broken English learned from eavesdropping on dock conversations, but their actions speak louder than words—always the first to offer hugs, encouragement, and unwavering loyalty to their found family. Armed with a water-coated trident and the ability to freeze or thaw small amounts at will, Yuu's magical abilities stem from a chaotic force that infected them before birth. Their body stretches and shifts like a balloon based on emotions, and while they can become an unstable void when truly enraged, they're far more likely to be found cheering on their friends or making adorable social mistakes."],traits:["Compassionate","Timid","Gullible","Loyal","Volatile"],funFact:"Yuu's water-hair changes temperature based on their mood - turning ice-cold when frightened and pleasantly warm when happy, often giving away their feelings before they can express them."},sammi:{bio:["Adventure calls, and Sammi answers with a toothy grin and Popeye-sized fists already itching for action. This charismatic shark-man in his twenties doesn't just seek out new experiences—he devours them whole, from exotic foods to unexplored territories to the simple joy of watching his friends discover something wonderful. His athletic build and devastating punches make him a powerhouse in combat, but his real superpower is turning a group of social misfits into a functioning family.","Sammi's paternal instincts run deep, especially with Yuu, whom he protects and comforts with the fierce dedication of a true big brother. Every conversation becomes an opportunity to build someone up, every setback a chance to rally the troops with his infectious enthusiasm. He's the human-shaped bridge between personalities that might otherwise clash, proof that sometimes the best leaders are the ones who just really, really want everyone to have a good time."],traits:["Optimistic","Paternal","Adventurous","Charismatic","Athletic"],funFact:"Sammi keeps a collection of small trinkets from every new place the party visits, not for their value, but because he believes every adventure deserves a physical memory to hold onto."},twilight:{bio:["Look at Twilight and you'll see a walking fortress—thick bark plates, shield for an arm, perpetually scowling face that could intimidate a dragon. Listen to him order tea and suddenly you're wondering if you're looking at the wrong person. This bulky dragonborn's intimidating exterior houses the gentlest soul in the party, a former village guardian who'd rather discuss philosophy than throw punches.","Armed with a double-sided wooden staff and the ability to shroud himself in starry void energy, Twilight can transform into a fearsome dragon silhouette that sends enemies running. He much prefers this to actual combat, since his true calling involves protecting people, not hurting them. Originally blessed by celestial gods to guard his forest home, he joined the adventuring party only when a world-threatening evil made isolation impossible. Between adventures, he can be found reading quietly, brewing perfect cups of tea, or dispensing surprisingly un-wise wisdom to anyone who'll listen."],traits:["Peaceful","Dutiful","Protective","Contemplative","Intimidating"],funFact:"Twilight's bark naturally grows seasonal flowers during spring, which he's secretly quite proud of but pretends to find annoying when the others comment on them."},"espi-rii":{bio:["Espi & Rii, the severed halves of a dead child's existence, drift through their broken world as eternal companions bound by tragedy. Espi, the blue ghostly soul, carries the weight of fear and despair while possessing objects and wielding weak situational magic, while Rii, the pale zombie husk, provides hollow-eyed physicality and claw-fingered combat prowess. Together they form a silent, tragic duo seeking the peace of true death in a world where the moon's destruction has made rest impossible.","Their childlike appearance evokes both sympathy and unease from strangers, allowing them to find temporary shelter as they wander aimlessly through the ruins of their reality. Communication between them happens through subtle gestures and shared understanding, their only common goal being to find some way to reunite their fractured existence. Espi's possession abilities and Rii's unflinching determination make them surprisingly effective survivors in their harsh, reanimated landscape."],traits:["Tragic","Silent","Desperate","Symbiotic","Haunting"],funFact:"When Espi possesses objects, they sometimes unconsciously arrange them in patterns that spell out half-remembered words from their life before death, though neither half fully understands why."},starpup:{bio:["Starpup fell from the sky during a meteor shower, and Yuu's been convinced ever since that they caught a shooting star. This brown and cream dog trots around with oversized cute proportions and star-shaped pupils that literally twinkle with cosmic knowledge, somehow managing to be both mystically connected to the universe and completely obsessed with belly rubs.","Their cheerful tail-wagging creates actual sparkles in the air, and their howls echo mysteriously among the constellations, but ask them to do a trick and they'll happily sit for treats like any normal dog. The party quickly discovered that Starpup's cosmic abilities aren't just for show—they can sense approaching stellar events and guide everyone to safety during dangerous celestial phenomena. Still, their favorite activities remain the classics: napping in sunny spots, stealing food, and providing emotional support through strategic snuggling."],traits:["Loyal","Cosmic","Cheerful","Mysterious","Playful"],funFact:"Starpup's star-shaped pupils actually reflect real constellations, changing to match whichever star pattern is directly overhead, making them a living celestial compass for the party."},ramthoth:{bio:["Ramthoth, the short-statured scraggly scientist, totters through his dingy laboratory with a manic and peppy gait, his tentacle-laden backpack whirring and writhing as he darts between cauldrons and crackling apparatus. His unkempt fur bears the dirt and scorch marks of countless experiments, while his bushy eyebrows obscure eyes which gleam with misguided confidence and unearned arrogance.","During a particularly ambitious ritual, attempting to summon the cosmic entity Azathoth, he instead conjured a meek bat-winged salamander — which he mistook for his intended demon lord. Convinced he'd successfully bound a mindless cosmic horror to his will, he christened himself 'Ramthoth' and fancies himself lord of the occult. The creature, whom he believes he is master of, simply follows him around eating floor scraps and coughing feeble puffs of smog that Ramthoth mistakes for subdued fire-breath."],traits:["Manic","Arrogant","Experimental","Delusional","Energetic"],funFact:"At only 40cm tall, Ramthoth often needs to use step-ladders and climbing gear to reach his laboratory equipment, though he insists his height gives him a 'tactical advantage' in magical combat."},cindred:{bio:["She has volatile magma-streaked arms and a toothy maw which leave smoldering craters where homes once stood. Where fellow dragonborn Twilight's bark-plated bulk suggests gentle strength, her sleek, jagged coal-orange frame screams danger, every harsh edge designed to keep the world at arm's length, even if that means by force.","Beneath the fire and fury however, she and Yuu have more in common than she cares to admit. Both were thought beastly for their frightening appearances and destructive nature, and both share the same desperate need for connection. However, while Yuu's naive and hopeful optimism eventually changed their image and gained them a family and community, she lashed out and rejected the world that rejected her first. She matched each cruel word said by doubling down on her isolationist, retaliatory nature. In her fury, her devastating flame breath has razed settlements and hurt countless, not out of malice, but from the thought that if she hurts them first, when they inevitably abandon her it won't hurt as much. The irony cut deep, wracking her with guilt and trapping her in a cycle she was too lost and confused to break.","When Yuu's relentless, unapologetic kindness brought her walls down though, her fiery exterior settled, and her facade crumbled. What she had always wanted, needed, was to be accepted, and she could now finally learn how to be loved."],traits:["Abrasive","Brash","Lost","Retaliatory","Lonely"],funFact:"Her light dims significantly when she becomes emotionally vulnerable, causing her magma arms to cool and crack slightly — a source of embarrassment she desperately tries to hide."}},_=h?S.find(e=>e.id===h):null,A=h&&h in T?T[h]:null,E=e=>{m(e),a.push("/art?character=".concat(e),{scroll:!1}),y(!1)},R=()=>{m(null),y(!1),a.push("/art",{scroll:!1})},D=e=>{f(e),x(0)},q=()=>{f(null),x(0)},F=e=>e.gallery?e.gallery.map(e=>e.imagePath):[],B=e=>[".mp4",".webm",".ogg",".mov",".avi",".mkv",".flv",".wmv"].some(s=>e.toLowerCase().endsWith(s)),W=e=>{if(!v)return;let s=F(v);"prev"===e&&b>0?x(b-1):"next"===e&&b{N(e),j(!0)};return(0,i.jsxs)("div",{className:"story-layout-container navbar-spaced",children:[(0,i.jsxs)("div",{className:"story-header",style:{marginTop:0},children:[(0,i.jsxs)("div",{className:"story-background",children:[(0,i.jsx)("div",{className:"story-pages"}),(0,i.jsx)("div",{className:"story-binding"})]}),(0,i.jsxs)("div",{className:"story-title-section",children:[(0,i.jsx)("div",{className:"story-book-icon",children:(0,i.jsx)(n.yI5,{})}),(0,i.jsx)("h1",{className:"story-main-title",children:"✨Worlds of imagination✨"}),(0,i.jsx)("p",{className:"story-subtitle",children:"Every character has a story, every world holds secrets waiting to be discovered"})]})]}),(0,i.jsxs)("section",{className:"character-stories-section",children:[(0,i.jsxs)("div",{className:"story-section-header",children:[(0,i.jsx)("h2",{className:"story-section-title",children:"Character Chronicles"}),(0,i.jsx)("p",{className:"story-section-description",children:"Dive into the personal journeys and unique tales that define each character"})]}),(0,i.jsx)("div",{className:"character-stories-container",children:S.map((e,s)=>(0,i.jsx)("div",{className:"character-story-card ".concat(s%2==0?"story-left":"story-right"),"data-character":e.id,onClick:s=>{s.preventDefault(),s.stopPropagation(),E(e.id)},style:{"--story-color":e.storyColor,cursor:"pointer",pointerEvents:"auto",zIndex:10,position:"relative"},children:(0,i.jsxs)("div",{className:"story-content-wrapper",children:[(0,i.jsx)("div",{className:"story-character-visual",children:(0,i.jsx)("img",{src:e.imagePath,alt:e.name,className:"story-character-image"})}),(0,i.jsxs)("div",{className:"story-character-narrative",children:[(0,i.jsx)("div",{className:"story-theme-badge",children:(0,i.jsx)("span",{children:e.storyTheme})}),(0,i.jsx)("h3",{className:"story-character-name",children:e.name}),(0,i.jsx)("p",{className:"story-character-excerpt",children:e.description}),(0,i.jsxs)("div",{className:"story-read-more",children:[(0,i.jsx)("span",{children:"Read Their Story"}),(0,i.jsx)("div",{className:"story-arrow",children:"→"})]})]})]})},e.id))})]}),(0,i.jsxs)("section",{className:"world-building-section",children:[(0,i.jsxs)("div",{className:"story-section-header",children:[(0,i.jsx)("h2",{className:"story-section-title",children:"World Chronicles"}),(0,i.jsx)("p",{className:"story-section-description",children:"Explore the diverse realms and environments that form the backdrop of these tales"})]}),(0,i.jsx)("div",{className:"world-environments-grid",children:[{id:"docks",title:"The Docks",imagePath:"/images/environments/docks/docks-1.webp",description:"The docks on the edge of the fishing village",gallery:[{id:"docks-0",imagePath:"/images/environments/docks/docks-1.webp",caption:"The main harbor view of the bustling fishing village docks"},{id:"docks-1",imagePath:"/images/environments/docks/docks-2.webp",caption:"Morning view of the bustling harbor"},{id:"docks-2",imagePath:"/images/environments/docks/docks-3.webp",caption:"Sunset painting the docks in golden hues"},{id:"docks-3",imagePath:"/images/environments/docks/docks-4.webp",caption:"Fishing boats returning with the day's catch"},{id:"docks-4",imagePath:"/images/environments/docks/docks-6.webp",caption:"Night market comes alive with lanterns"},{id:"docks-5",imagePath:"/videos/closure-dockscene.mp4",caption:"Night market comes alive with lanterns"}]},{id:"card-paper-plains",title:"Card Paper Plains",imagePath:"/images/games/legend-of-yuu/dev-screenshots/LoY-Slime.gif",description:"The vast flat expanse of greenery and adventure",gallery:[{id:"card-paper-plains-0",imagePath:"/images/games/legend-of-yuu/dev-screenshots/LoY-Slime.gif",caption:"Main entrance to the mystical crystal caves"},{id:"card-paper-plains-1",imagePath:"/videos/crossyyuu-backgroundvideo.mp4",caption:"Towering crystal formations reaching toward the cavern ceiling"},{id:"card-paper-plains-2",imagePath:"/images/games/legend-of-yuu/dev-screenshots/devscreenshot-3.webp",caption:"Underground river flowing through luminescent passages"}]},{id:"fiery-fields",title:"Fiery Fields",imagePath:"/images/games/legend-of-yuu/dev-screenshots/devscreenshot-2.webp",description:"The scorching lands which Cindred calls home",gallery:[{id:"fiery-fields-0",imagePath:"/images/games/legend-of-yuu/dev-screenshots/devscreenshot-2.webp",caption:"The grand vista of the underwater metropolis"}]},{id:"coming-soon",title:"Coming Soon",imagePath:"/images/wip.webp",description:"Diverse localles are always in the works",gallery:[{id:"coming-soon-0",imagePath:"/images/wip.webp",caption:"Check back regularly for frequent updates !"}]}].map(e=>(0,i.jsx)("div",{className:"environment-world-card",onClick:s=>{s.preventDefault(),s.stopPropagation(),D(e)},style:{cursor:"pointer",pointerEvents:"auto",position:"relative",zIndex:5},children:(0,i.jsxs)("div",{className:"environment-world-image-container",children:[(0,i.jsx)("img",{src:e.imagePath,alt:e.title,className:"environment-world-image"}),(0,i.jsx)("div",{className:"environment-world-overlay",children:(0,i.jsxs)("div",{className:"environment-world-content",children:[(0,i.jsx)("h3",{className:"environment-world-title",children:e.title}),(0,i.jsx)("p",{className:"environment-world-description",children:e.description}),(0,i.jsx)("span",{className:"environment-explore-link",children:"Explore This World"})]})})]})},e.id))})]}),(0,i.jsx)("section",{className:"commission-story-section",children:(0,i.jsxs)("div",{className:"commission-story-container",children:[(0,i.jsxs)("div",{className:"commission-story-content",children:[(0,i.jsx)("h2",{className:"commission-story-title",children:"Begin Your Own Story"}),(0,i.jsx)("p",{className:"commission-story-description",children:"Every great tale starts with a single character, a unique world, or an inspiring moment. Let me help bring your creative vision to life through custom artwork that tells your story."}),(0,i.jsx)("button",{className:"commission-story-button",onClick:()=>P(!0),children:"Start Your Story"})]}),(0,i.jsx)("div",{className:"commission-story-visual",children:(0,i.jsxs)("div",{className:"commission-story-pages",children:[(0,i.jsx)("div",{className:"story-page"}),(0,i.jsx)("div",{className:"story-page"}),(0,i.jsx)("div",{className:"story-page"})]})})]})}),h&&(0,i.jsx)("div",{className:"modal-overlay story-modal-overlay",onClick:R,style:{"--story-color":(null==_?void 0:_.storyColor)||"#4facfe"},children:(0,i.jsxs)("div",{className:"character-story-modal",onClick:e=>e.stopPropagation(),children:[(0,i.jsx)("div",{className:"story-modal-background",children:(0,i.jsx)("div",{className:"story-modal-pattern"})}),(0,i.jsx)("button",{className:"story-modal-close",onClick:R,"aria-label":"Close character story",children:(0,i.jsx)(o.WQq,{})}),(0,i.jsxs)("div",{className:"story-modal-content",children:[(0,i.jsxs)("div",{className:"story-modal-header",children:[(0,i.jsx)("div",{className:"story-modal-character-frame",children:(0,i.jsx)("img",{src:(null==_?void 0:_.imagePath)||"",alt:(null==_?void 0:_.name)||"Character",className:"story-modal-character-image"})}),(0,i.jsxs)("div",{className:"story-modal-title-section",children:[(0,i.jsx)("div",{className:"story-modal-theme-badge",children:(null==_?void 0:_.storyTheme)||"Character Story"}),(0,i.jsx)("h2",{className:"story-modal-character-name",children:(null==_?void 0:_.name)||"Character"}),(0,i.jsx)("div",{className:"story-modal-traits",children:null==A||null==(e=A.traits)?void 0:e.map((e,s)=>(0,i.jsx)("span",{className:"story-trait-tag",children:e},s))})]})]}),(0,i.jsxs)("div",{className:"story-modal-body",children:[u?(0,i.jsxs)("div",{className:"story-modal-gallery",children:[(0,i.jsx)("h3",{children:"Visual Chronicles"}),l.D[h]&&l.D[h].length>0?(0,i.jsx)("div",{className:"story-gallery-grid",children:l.D[h].map((e,s)=>{var a;return(0,i.jsx)("div",{className:"story-gallery-item",onClick:()=>Y(e),children:(0,i.jsx)(c.Ay,{src:e,alt:(null==(a=l.m[e])?void 0:a.title)||"".concat(null==_?void 0:_.name," gallery image"),className:"story-gallery-image",size:"thumbnail"})},"".concat(h,"-").concat(s))})}):(0,i.jsxs)("div",{className:"story-gallery-empty",children:[(0,i.jsx)(n.Pqo,{}),(0,i.jsx)("p",{children:"No visual chronicles available yet"})]})]}):(0,i.jsxs)("div",{className:"story-modal-narrative",children:[(0,i.jsxs)("div",{className:"story-modal-bio",children:[(0,i.jsx)("h3",{children:"The Story"}),Array.isArray(null==A?void 0:A.bio)?A.bio.map((e,s)=>(0,i.jsx)("p",{children:e},s)):(0,i.jsx)("p",{children:null==A?void 0:A.bio})]}),(0,i.jsxs)("div",{className:"story-modal-fun-fact",children:[(0,i.jsx)("h3",{children:"A Secret Detail"}),(0,i.jsx)("p",{children:null==A?void 0:A.funFact})]})]}),l.D[h]&&l.D[h].length>0&&(0,i.jsxs)("button",{className:"story-gallery-toggle",onClick:()=>{y(!u)},style:{"--story-color":(null==_?void 0:_.storyColor)||"#4facfe"},children:[u?(0,i.jsx)(n.yI5,{}):(0,i.jsx)(n.Pqo,{}),(0,i.jsx)("span",{children:u?"Read Story":"View Chronicles"})]})]})]})]})}),v&&(0,i.jsx)("div",{className:"modal-overlay story-modal-overlay environment-modal-overlay",onClick:q,children:(0,i.jsxs)("div",{className:"environment-story-modal",onClick:e=>e.stopPropagation(),children:[(0,i.jsx)("button",{className:"story-modal-close",onClick:q,children:(0,i.jsx)(o.WQq,{})}),(0,i.jsxs)("div",{className:"environment-story-content",children:[(0,i.jsxs)("div",{className:"environment-story-image-section",children:[(()=>{let e=F(v)[b];return B(e)?(0,i.jsx)("video",{src:e,className:"environment-story-image",controls:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",style:{backgroundColor:"#000"},title:v.title,onError:()=>{console.warn("Video failed to load:",e)},children:"Your browser does not support the video tag."}):(0,i.jsx)("img",{src:e,alt:v.title,className:"environment-story-image"})})(),F(v).length>1&&(0,i.jsxs)("div",{className:"environment-image-navigation",children:[(0,i.jsx)("button",{className:"environment-nav-button",onClick:()=>W("prev"),disabled:0===b,"aria-label":"Previous image",children:(0,i.jsx)(n.byh,{})}),(0,i.jsx)("button",{className:"environment-nav-button",onClick:()=>W("next"),disabled:b===F(v).length-1,"aria-label":"Next image",children:(0,i.jsx)(n.ree,{})})]})]}),(0,i.jsxs)("div",{className:"environment-story-info",children:[(0,i.jsx)("h2",{className:"environment-story-title",children:v.title}),(0,i.jsx)("p",{className:"environment-story-description",children:v.description}),v.gallery&&v.gallery[b]&&(0,i.jsx)("div",{className:"environment-image-caption",children:(0,i.jsx)("em",{children:v.gallery[b].caption})})]})]})]})}),(0,i.jsx)(e=>{let{isOpen:s,onClose:a,image:t}=e;if(!s||!t)return null;let r=t&&l.m[t]?l.m[t]:{title:"Media Information",description:"No specific information is available for this item.",type:"Unknown",tools:"N/A",timestamp:"Unknown"};return(0,i.jsx)("div",{className:"modal-overlay story-modal-overlay",onClick:a,children:(0,i.jsxs)("div",{className:"character-story-modal image-modal-variant",onClick:e=>e.stopPropagation(),style:{"--story-color":(null==_?void 0:_.storyColor)||"#4facfe"},children:[(0,i.jsx)("div",{className:"story-modal-background",children:(0,i.jsx)("div",{className:"story-modal-pattern"})}),(0,i.jsx)("button",{className:"story-modal-close",onClick:a,"aria-label":"Close image",children:(0,i.jsx)(o.WQq,{})}),(0,i.jsxs)("div",{className:"story-modal-content image-modal-content-layout",children:[(0,i.jsx)("div",{className:"image-modal-left",children:(0,i.jsx)("img",{src:t,alt:r.title,className:"modal-image-large"})}),(0,i.jsxs)("div",{className:"image-modal-right",children:[(0,i.jsxs)("div",{className:"image-modal-header",children:[(0,i.jsx)("div",{className:"story-modal-theme-badge image-type-badge",children:r.type||"Artwork"}),(0,i.jsx)("h2",{className:"story-modal-character-name image-title",children:r.title})]}),(0,i.jsxs)("div",{className:"image-modal-details",children:[(0,i.jsxs)("div",{className:"image-detail-section",children:[(0,i.jsx)("h3",{children:"Description"}),(0,i.jsx)("p",{children:r.description})]}),r.tools&&(0,i.jsxs)("div",{className:"image-detail-section",children:[(0,i.jsx)("h3",{children:"Tools & Materials"}),(0,i.jsx)("p",{children:r.tools})]}),r.timestamp&&(0,i.jsxs)("div",{className:"image-detail-section",children:[(0,i.jsx)("h3",{children:"Created"}),(0,i.jsx)("p",{children:r.timestamp})]})]})]})]})]})})},{isOpen:w,onClose:()=>{j(!1),N(null)},image:k}),(0,i.jsx)(d,{isOpen:C,onClose:()=>P(!1)})]})}function g(){return(0,i.jsx)("div",{className:"story-layout-container",children:(0,i.jsxs)("div",{className:"story-header",children:[(0,i.jsxs)("div",{className:"story-background",children:[(0,i.jsx)("div",{className:"story-pages"}),(0,i.jsx)("div",{className:"story-binding"})]}),(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"50vh"},children:(0,i.jsx)("div",{className:"loading-spinner"})})]})})}}},e=>{var s=s=>e(e.s=s);e.O(0,[270,405,48,640,263,449,441,684,358],()=>s(8557)),_N_E=e.O()}]);