diff --git a/5a6612f0417bc581cb63.jpg b/5a6612f0417bc581cb63.jpg new file mode 100644 index 0000000..f456974 Binary files /dev/null and b/5a6612f0417bc581cb63.jpg differ diff --git a/bundle.js b/bundle.js index 47ad043..c4954dc 100644 --- a/bundle.js +++ b/bundle.js @@ -1 +1 @@ -(()=>{"use strict";var e={41:(e,t,n)=>{e.exports=n.p+"7606026687b2d883ca08.jpg"},558:(e,t,n)=>{e.exports=n.p+"fbbc0c4ce4cdda53552c.jpg"},279:(e,t,n)=>{e.exports=n.p+"fae234b4cbe2e01b3f9f.jpg"},202:(e,t,n)=>{e.exports=n.p+"4475b5f69c7fac25d140.jpg"},741:(e,t,n)=>{e.exports=n.p+"5001dac206eef9ee5dcc.jpg"},184:(e,t,n)=>{e.exports=n.p+"2310ab6711a7a6e9c2a0.jpg"},949:(e,t,n)=>{e.exports=n.p+"c5aa2413f83f569ce4ed.jpg"},519:(e,t,n)=>{e.exports=n.p+"a24a92afb9bcc317de93.jpg"},902:(e,t,n)=>{e.exports=n.p+"ee12aa4be089f5e1c414.jpg"},120:(e,t,n)=>{e.exports=n.p+"f7434f7b62fbf791c3d4.jpg"},208:(e,t,n)=>{e.exports=n.p+"f80856bc759a6182e46f.jpg"},502:(e,t,n)=>{e.exports=n.p+"2ddbaccfdfd59392d54d.jpg"},773:(e,t,n)=>{e.exports=n.p+"461e7ab5c99b2448e0a8.jpg"},736:(e,t,n)=>{e.exports=n.p+"60f00d5ab5a2cae070ba.jpg"},412:(e,t,n)=>{e.exports=n.p+"d428ffd8bbe30e7dcb12.jpg"},178:(e,t,n)=>{e.exports=n.p+"4640ea9cbd1c30b70d19.jpg"}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,n),s.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var a=o.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=o[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})();const o=function(e){l(n(279));const t=document.getElementById("content");t.innerHTML="";const o=document.createElement("div");if(o.classList.add("screen"),!e){const e=document.createElement("h2");e.classList.add("chapter-title"),e.textContent="Chapter 2: The Prophecy Unveiled",o.appendChild(e);const n=document.createElement("h3");n.classList.add("path-title"),n.textContent="The Chosen Ones",o.appendChild(n);const a=document.createElement("p");a.classList.add("info"),a.textContent="You, The Chosen One, have been chose to embark on a journey to the elemental realms. Through a combination of scholarly research, adventurous exploration, and mystical insight, you have gained the following knowledge so far:",o.appendChild(a);const s=document.createElement("p");s.classList.add("narrative"),s.textContent="As you make your way through the streets of Aethoria, the visions and symbols from before still burn in your mind. The voice—deep, ancient—whispers again:",o.appendChild(s);const i=document.createElement("em");i.classList.add("voice-echo"),i.textContent='"Seeker, the Elemental Realms cry out for restoration. The path you choose will shape the future."',o.appendChild(i);const r=document.createElement("p");r.classList.add("narrative"),r.textContent="As you ponder the meaning of these words, you notice that the crowds are all moving in one direction - towards the Grand Temple of Elements. The normally pristine white marble of the temple seems to shimmer with an array of colors, reflecting the hues of the three moons still visible in the sky. Your symbol pulses, and you feel it pulling you toward the temple steps.",o.appendChild(r);const d=document.createElement("p");d.classList.add("narrative"),d.textContent="Three figures stand at the entrance, each radiating an energy that corresponds to the elements of your vision. Their presence is undeniable, and you realize these figures hold the answers you seek—but which one will guide you?",o.appendChild(d);const l=document.createElement("p");l.classList.add("choice-section"),l.textContent="What do you do?",o.appendChild(l);const h=document.createElement("ol");h.className="choice-list";const m=[{text:"Approach the figure wreathed in flames.",value:"flameGuardian"},{text:"Seek out the individual surrounded by a misty aura"},{text:"Move towards the person with vines and leaves swirling around them"}];o.appendChild(h),c(m,o),t.appendChild(o)}};function a(){l(n(184));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Choice 1: Investigate the Moons",t.appendChild(o);const a=document.createElement("p");a.classList.add("narrative"),a.textContent='You push your way through the throng of onlookers, determined to get a better view. As you reach the front, you notice that the moons are slowly aligning, forming a perfect triangle in the sky. The sight is both beautiful and terrifying. An old woman next to you gasps, "The Triad of Fate! It is just as the ancient scrolls foretold!" Before you can ask her what she means, a blinding light erupts from the center of the triangle, bathing the entire city in an ethereal glow. As the light fades, you notice that small, glowing symbols have appeared on the back of your hand.',t.appendChild(a);const s=document.createElement("p");s.classList.add("choice-section"),s.textContent="What do you do?",t.appendChild(s);const i=document.createElement("ol");i.className="choice-list";const r=document.createElement("li");r.textContent="Examine the symbol on your hand more closely.",i.appendChild(r);const d=document.createElement("li");d.textContent="Ask the old woman about the Triad of Fate and the ancient scrolls.",i.appendChild(d);const h=document.createElement("li");h.textContent="Look around to see if others have similar markings.",i.appendChild(h),t.appendChild(i),c([{text:"Investigate symbols",value:"investigateSymbols"},{text:"Ask about Triad of Fate",value:"triadFate"},{text:"Look for others",value:"lookAround"}],t),e.appendChild(t)}function s(){l(n(502));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Choice 2: Seek an Elder",t.appendChild(o);const a=document.createElement("p");a.classList.add("narrative"),a.textContent='You decide that knowledge is your best ally in this strange situation. You make your way to the Grand Library of Aethoria, a massive structure said to house knowledge from across all realms. As you approach the entrance, you notice that the usually calm scholars are in a state of frenzy, rushing about with armfuls of scrolls and ancient tomes. You manage to catch the attention of Magister Elowen, a respected expert in celestial phenomena. "Ah, a seeker of knowledge in these tumultuous times," she says, her eyes gleaming with a mix of excitement and concern. "You have come at a most auspicious moment. The Convergence is upon us, and with it, the awakening of ancient powers."',t.appendChild(a);const s=document.createElement("p");s.classList.add("choice-section"),s.textContent="How do you respond?",t.appendChild(s);const i=document.createElement("ol");i.className="choice-list";const r=document.createElement("li");r.textContent="Ask about the Convergence and its signifigance.",i.appendChild(r);const d=document.createElement("li");d.textContent='Inquire about the "Awakening of ancient powers" she mentioned.',i.appendChild(d);const h=document.createElement("li");return h.textContent="Request to see any relevant texts or prophecies.",i.appendChild(h),t.appendChild(i),c([{text:"Convergence?",value:"aboutConvergence"},{text:"Awakening of ancient powers?",value:"awakeningPowers"},{text:"Texts or prophecies?",value:"textsProphecies"}],t),e.appendChild(t),t}function i(){l(n(736));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Choice 3: Visit the Temple",t.appendChild(o);const a=document.createElement("p");a.classList.add("narrative"),a.textContent='You make your way to the Temple of the Cosmic Wheel, the most revered spiritual site in Aethoria. As you climb the marble steps, you notice that the normally serene atmosphere is charged with tension. Priests and acolytes rush about, their robes billowing behind them. High Priestess Selena greets you at the entrance, her silver hair shimmering in the strange light cast by the three moons. "Welcome, child of Varathis," she intones, her voice resonating with power. "You have been drawn here by the call of destiny." She gestures for you to follow her into the inner sanctum, where a massive mosaic depicts the cosmic wheel surrounded by various mythological figures from across the realms.',t.appendChild(a);const s=document.createElement("p");s.classList.add("choice-section"),s.textContent="What do you wish to know?",t.appendChild(s);const i=document.createElement("ol");i.className="choice-list";const r=document.createElement("li");r.textContent="Ask about the meaning of the three moons in the sky.",i.appendChild(r);const d=document.createElement("li");d.textContent='Inquire about your role in this "destiny" she mentioned.',i.appendChild(d);const h=document.createElement("li");h.textContent="Request guidance on what actions you should take next,",i.appendChild(h),t.appendChild(i),c([{text:"Moons?",value:"moons"},{text:"Role in destiny?",value:"roleDestiny"},{text:"Next steps?",value:"nextSteps"}],t),e.appendChild(t)}function r(){!function(e){const t=document.getElementById("content");t.innerHTML="";const n=document.createElement("div");if(n.classList.add("screen"),e)switch(e){case"investigateMoons":a();break;case"seekElder":s();break;case"visitTemple":i()}else{const e=document.createElement("h1");e.classList.add("title"),e.textContent="Act I: The Convergence Begins",n.appendChild(e);const t=document.createElement("p");t.classList.add("info"),t.textContent="As the celestial convergence draws near, strange phenomena begin to unfold across Varathis—a newly formed nation in the year 2068. In a world reshaped by the aftermath of World War III, Earth is no longer as we know it, and the fabric of reality itself seems to fray at the edges.",n.appendChild(t);const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Chapter 1: The Omen",n.appendChild(o);const a=document.createElement("p");a.classList.add("narrative"),a.textContent="The air in Varathis crackled with an otherworldly energy as the celestial Convergence approached. You find yourself in the bustling market square of Aethoria, the City of a Thousand Spires. The normally vibrant atmosphere is tinged with an undercurrent of unease. As you weave through the crowd, you overhear whispered conversations about strange occurrences and inexplicable phenomena. Suddenly, a commotion erupts near the central fountain. A group of people has gathered, pointing at the sky. You look up and see an extraordinary sight: three moons, each a different color, have appeared in the daylight sky.",n.appendChild(a);const s=document.createElement("p");s.classList.add("choice-section"),s.textContent="What do you do?",n.appendChild(s);const i=document.createElement("ol");i.className="choice-list";const r=document.createElement("li");r.textContent="Push through the crowd to get a closer look at the moons.",i.appendChild(r);const d=document.createElement("li");d.textContent="Seek out a local Elder to understand the meaning of this event.",i.appendChild(d);const l=document.createElement("li");l.textContent="Head to the nearest temple to consult with the priests.",i.appendChild(l),n.appendChild(i),c([{text:"Investigate the Moons",value:"investigateMoons"},{text:"Seek Elder",value:"seekElder"},{text:"Visit temple",value:"visitTemple"}],n)}t.appendChild(n)}()}function c(e,t){const r=document.createElement("div");r.className="button-container",e.forEach((e=>{const t=document.createElement("button");t.className="choice-button",t.textContent=e.text,t.setAttribute("data-choice",e.value),t.addEventListener("click",(()=>function(e){switch(function(e){localStorage.setItem("storyProgress",JSON.stringify(e)),console.log("Progress Saved")}(e),e){case"investigateMoons":console.log("User pushes through crowd..."),a();break;case"investigateSymbols":console.log("User examines symbol on hand..."),function(){l(n(949));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const a=document.createElement("h2");a.classList.add("chapter-title"),a.textContent="Examine the symbol on your hand more closely.",t.appendChild(a);const s=document.createElement("p");s.classList.add("info"),s.textContent="After witnessing the extraordinary sight of the three moons in the sky and the blinding light that bathed the city, you notice a glowing symbol on your hand.",t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent="As you bring your hand closer to your face, the symbol begins to glow more intensely. It is an intricate design, reminiscent of a tree with three intertwining branches. Each branch ends in a different symbol: A flame, a droplet, and a leaf. Suddenly, you feel a surge of energy coursing through your body. Your vision blurs, and you find yourself experiencing a series of rapid visions:",t.appendChild(i);const r=document.createElement("ul");r.classList.add("choice-list");const c=document.createElement("li");c.textContent="A snow-capped mountain split by a chasm of fire.",r.appendChild(c);const d=document.createElement("li");d.textContent="A lush forest withering under an unnatural drought.",r.appendChild(d);const h=document.createElement("li");h.textContent="A great flood threatening to submerge an ancient city.",r.appendChild(h),t.appendChild(r);const m=document.createElement("p");m.classList.add("narrative"),m.textContent="As the visions fade, you notice that each branch of the symbol seems to pulse faintly in the direction of one of the moons. The symbols are interconnected, hinting that your path will influence the others. You hear a voice echoing in your mind:",t.appendChild(m);const u=document.createElement("em");u.textContent=' "Seeker, the balance is broken. The Elemental Realms cry out for restoration."',u.classList.add("voice-echo"),t.appendChild(u);const p=document.createElement("button");p.textContent="Continue to Chapter Two - Chosen One Path",p.classList.add("choice-button"),t.appendChild(p),p.addEventListener("click",(()=>{o()})),e.appendChild(t)}();break;case"triadFate":console.log("User asks about Triad of Fate..."),function(){l(n(902));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const a=document.createElement("h2");a.classList.add("chapter-title"),a.textContent="Ask the old woman about the Triad of Fate and ancient scrolls",t.appendChild(a);const s=document.createElement("p");s.classList.add("info"),s.textContent="After witnessing the extraordinary sight of the three moons in the sky and the blinding light that bathed the city, you notice a glowing symbol on your hand.",t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent='You turn to the old woman who gasped about the Triad of Fate. Her eyes, milky with age, seem to look through you rather than at you. "The Triad of Fate," she begins, her voice quavering with excitement, "is the convergence of the three cosmic forces: Time, Life, and Space.',t.appendChild(i);const r=document.createElement("p");r.classList.add("narrative"),r.textContent='The ancient scrolls speak of a time when these forces would manifest as three moons in the sky, heralding the awakening of the Lost Relics." She grabs your arm with suprising strength, the symbol glows again, revealing fleeting images of a temple and three glowing figures, each linked to one of the marks.',t.appendChild(r);const c=document.createElement("em");c.classList.add("voice-echo"),c.textContent='"The scrolls also speak of chosen ones, marked by elements, who must restore balance to the realms. The fate of all existence hangs in the balance!"',t.appendChild(c);const d=document.createElement("button");d.textContent="Continue to Chapter Two - Chosen One Path",d.classList.add("choice-button"),t.appendChild(d),d.addEventListener("click",(()=>{o()})),e.appendChild(t)}();break;case"lookAround":console.log("User scans the crowd..."),function(){l(n(202));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const a=document.createElement("h2");a.classList.add("chapter-title"),a.textContent="Look around to see if others have similar markings",t.appendChild(a);const s=document.createElement("p");s.classList.add("info"),s.textContent="After witnessing the extraordinary sight of the three moons in the sky and the blinding light that bathed the city, you notice a glowing symbol on your hand.",t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent="As you scan the crowd, looking for any signs of symbols or markings on others. At first, you see nothing out of the ordinary. You notice three individuals in the crowd who seem different. A young woman stares at her palm, where a flame-like symbol glows. A middle-aged man in scholarly robes traces a water droplet marking on the back of his hand. An elderly person in simple garb holds up their arm, revealing a leaf-shaped symbol.",t.appendChild(i);const r=document.createElement("p");r.classList.add("narrative"),r.textContent="As you lock eyes with them, the symbols seem to resonate with one another. You get a faint sense that your fates are intertwined, but also distinct—each of you connected to one of the realms.",t.appendChild(r);const c=document.createElement("button");c.textContent="Continue to Chapter Two - Chosen One Path",c.classList.add("choice-button"),t.appendChild(c),c.addEventListener("click",(()=>{o()})),e.appendChild(t)}();break;case"seekElder":console.log("User seeks an elder..."),s();break;case"aboutConvergence":console.log("User reads about the Convergence..."),function(){l(n(519));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Ask about the Convergence and its significance",t.appendChild(o);const a=document.createElement("p");a.classList.add("info"),a.textContent="You have decided that knowledge is your best ally in this strange situation. And have made your way to the dwelling of Magister Elowen, a respected elder known for her wisdom and knowledge of celestial phenomena.",t.appendChild(a);const s=document.createElement("p");s.classList.add("narrative"),s.textContent='Magister Elowens eyes light up at your question. She pulls a large, ornate book from a nearby shelf and opens it to reveal a complex diagram of celestial bodies. "The Convergence," she explains, "is a cosmic event that occurs once every thousand years. It is a time when the barriers between realms thin, allowing for the flow of energies and, sometimes, beings between worlds."',t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent='She points to various parts of the diagram as she continues, "This particular Convergence is special. The alignment of the three moons you see in the sky represents the culmination of a cycle that spans multiple convergences. It heralds a time of great change and potential." Elowen pauses, her expression growing serious.',t.appendChild(i);const r=document.createElement("em");r.classList.add("voice-echo"),r.textContent='"But with great potential comes great danger. The last time such an alignment occurred, it led to the Age of Chaos, a period of strife that nearly tore the fabric of reality apart."',t.appendChild(r),e.appendChild(t)}();break;case"awakeningPowers":console.log("User learns about awakening the powers..."),function(){l(n(773));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent='Inquire about the "awakening of ancient powers" she mentioned',t.appendChild(o);const a=document.createElement("p");a.classList.add("info"),a.textContent="You have decided that knowledge is your best ally in this strange situation. And have made your way to the dwelling of Magister Elowen, a respected elder known for her wisdom and knowledge of celestial phenomena.",t.appendChild(a);const s=document.createElement("p");s.classList.add("narrative"),s.textContent="Magister Elowens expression becomes grave. She walks to a locked cabinet and retrieves a small, ornate box. Opening it, she reveals three small objects: a miniature crown, a tiny chalice, and a minuscule book.",t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent='"These are replicas of the Lost Relics," she explains. "The Crown of Eternity, the Chalice of Souls, and the Codex of Realms. Each holds power over a fundamental aspect of existence: Time, Life, and Space." She closes the box carefully.',t.appendChild(i);const r=document.createElement("em");r.classList.add("voice-echo"),r.textContent='"The Convergence weakens the barriers that have kept these relics hidden for millennia. Their power will soon awaken, and they must be found and united by those chosen to bear them. If they fall into the wrong hands, or if they are not brought together in time, the consequences could be catastrophic."',t.appendChild(r),e.appendChild(t)}();break;case"textsProphecies":console.log("User reads texts from prophecies..."),function(){l(n(208));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Request to see any relevant texts or prophecies",t.appendChild(o);const a=document.createElement("p");a.classList.add("info"),a.textContent="You have decided that knowledge is your best ally in this strange situation. And have made your way to the dwelling of Magister Elowen, a respected elder known for her wisdom and knowledge of celestial phenomena.",t.appendChild(a);const s=document.createElement("p");s.classList.add("narrative"),s.textContent='Elowen nods solemnly and leads you into a hidden room concealed behind a sliding bookcase. As you step through the threshold, your eyes widen in awe at the sight that greets you. The walls are adorned with shelves displaying ancient scrolls and tomes, emanating an aura of wisdom and mystery. Elowen moves with grace, her hand reaching for a particular scroll among the many, her fingers tracing the intricate patterns etched into its surface. "This is the Prophecy of the Triad," she whispers, her voice weighted with reverence. "It speaks of the great Convergence and the pivotal role of the chosen ones."',t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent="With deliberate care, Elowen lays the scroll on a large, weathered table, its edges curling slightly with age. The parchment unfurls, revealing a breathtaking illustration depicting three figures, each surrounded by a swirling array of elemental symbols. Beneath them, a prophecy is inscribed in a script long forgotten by time.",t.appendChild(i);const r=document.createElement("em");r.classList.add("voice-echo"),r.textContent='When three moons align and realms entwine, Three shall rise, by elements marked. Times crown, Lifes chalice, Spaces tome, Must unite lest all worlds fall to dark. Fires seeker, Waters caller, Earths weaver, Balance restore, or chaos shall reign. At Convergence peak, a choice they will make, To mend the cosmos or break its chain."',t.appendChild(r);const c=document.createElement("p");c.classList.add("narrative"),c.textContent="The words resonate in the chamber, carrying with them a weight of destiny and consequence. Elowen gazes at you, her eyes alight with purpose, as the realization of the task ahead settles upon your shoulders.",t.appendChild(c),e.appendChild(t)}();break;case"visitTemple":console.log("User visits a temple..."),i();break;case"moons":console.log("User looks to the moons with the High Priestess..."),function(){l(n(178));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Ask about the meaning of the three moons in the sky",t.appendChild(o);const a=document.createElement("p");a.classList.add("info"),a.textContent="You make your way to the Temple of the Cosmic Wheel, the most revered spiritual site in the city. As you climb the polished marble steps, you sense a palpable shift in the atmosphere, a current of anticipation and unease that electrifies the air around you.",t.appendChild(a);const s=document.createElement("p");s.classList.add("narrative"),s.textContent="High Priestess Selena, a figure of ethereal grace, emanates an otherworldly aura as she gazes at the heavens, her silver hair shimmering under the enigmatic light cast by the three moons. Meeting your eyes with a mixture of awe and concern, she begins to unravel the mysteries veiled behind this celestial phenomenon.",t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent='"The three moons," she imparts with a voice resonant with power, "represent the Triad of Cosmic Forces: Chronos, the keeper of Time; Anima, the essence of Life; and Cosmos, the weaver of Space. Their appearance in the sky signals the inception of the Great Convergence, a portentous time when the veils separating realms begin to wane." Raising a hand to point at the heavens, she continues:',t.appendChild(i);const r=document.createElement("em");r.classList.add("voice-echo"),r.textContent='"Each moon holds correspondence to one of the Lost Relics. The golden moon to the Crown of Eternity, the silver to the Chalice of Souls, and the emerald to the Codex of Realms. Their alignment not only signifies the potential rediscovery of the relics, but also the imperative need for their retrieval, for the preservation of all existence."',t.appendChild(r),e.appendChild(t)}();break;case"roleDestiny":console.log("User has their role explained..."),function(){l(n(120));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent='Inquire about your role in this "destiny" she mentioned',t.appendChild(o);const a=document.createElement("p");a.classList.add("info"),a.textContent="As you approach the Temple of the Cosmic Wheel, the air around you becomes thick with anticipation and excitement. A sense of purpose and purposefulness courses through your veins, filling you with a sense of determination to fulfill the destiny she spoke of.",t.appendChild(a);const s=document.createElement("p");s.classList.add("narrative"),s.textContent="High Priestess Selena holds you in her penetrating gaze as she beckons you to a secluded, circular chamber adjacent to the main sanctum. At its center, a pedestal cradles a crystal orb, within which ethereal mists intermingle and shift, beckoning you closer.",t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent='"The strands of fate, woven in enigmatic patterns, have led you to this pivotal juncture," she intones, her voice bearing a weight of solemn significance. "The Convergence not only rouses cosmic forces but also unveils the latent potential within select individuals. You, my child, are one such individual."',t.appendChild(i);const r=document.createElement("p");r.classList.add("narrative"),r.textContent="Inviting you closer to the orb, she exhorts,",t.appendChild(r);const c=document.createElement("em");c.classList.add("voice-echo"),c.textContent='"This is the Orb of Destiny, an artifact that will reveal fleeting glimpses of the path that beckons you. However, know this: the future remains a composition of choices, unbound by the strictures of destiny. Your decisions will not only sculpt your own fate but reverberate through the tapestries of all realms."',t.appendChild(c),e.appendChild(t)}();break;case"nextSteps":console.log("User finds out their next steps..."),function(){l(n(412));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Request guidance on what actions you should take next",t.appendChild(o);const a=document.createElement("p");a.classList.add("info"),a.textContent="As you approach the Temple of the Cosmic Wheel, the air around you becomes thick with anticipation and excitement. A sense of purpose and purposefulness courses through your veins, filling you with a sense of determination to fulfill the destiny she spoke of.",t.appendChild(a);const s=document.createElement("p");s.classList.add("narrative"),s.textContent='With a nod of solemn assurance, Selena accompanies you to a vast mosaic stretching across the temple floor, an intricate web of interconnected realms rendered in rich, vibrant hues. "The path that stretches before you is anything but straightforward," she begins, her eyes reflecting a weighty determination. "The Convergence has set in motion formidable forces, and you find yourself poised at the heart of this tempest. Here is the course you must navigate:"',t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent='"Set forth to seek the elemental guardians. They will unlock the dormant power residing within you and steer you toward the pursuit of the Lost Relics."',t.appendChild(i);const r=document.createElement("p");r.classList.add("narrative"),r.textContent='"Take caution of the shadowy entities and the forces of chaos. They covet the Convergence, aiming to exploit its power to unravel the fabric of existence."',t.appendChild(r);const c=document.createElement("p");c.classList.add("narrative"),c.textContent='"Unite with the other chosen ones. Solely in alliance can you hope to confront the trials that lie ahead and confront the momentous choice that holds the sway over the destinies of all realms."',t.appendChild(c);const d=document.createElement("p");d.classList.add("narrative"),d.textContent="Resting her hand upon your shoulder, she imparts,",t.appendChild(d);const h=document.createElement("em");h.classList.add("voice-echo"),h.textContent='"The path will be fraught with peril, burdened with weighty responsibility. Nevertheless, remember, you were endowed with the mantle of chosenness for a reason. Place trust in your inherent strength and in the harmonious equilibrium of the cosmos."',t.appendChild(h),e.appendChild(t)}();break;case"chapterTwoMoons":console.log("User as progress to Chapter 2 from investigating the moons..."),o();break;case"flameGuardian":console.log("User chooses Flame Guardian..."),function(){l(n(741));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Chapter 2: The Prophecy Unvieled",t.appendChild(o);const a=document.createElement("h3");a.classList.add("path-title"),a.textContent="The Chosen Ones - Flame Guardian",t.appendChild(a);const s=document.createElement("p");s.classList.add("narrative"),s.textContent="As you approach the figure wreathed in flames, the air around you grows warmer. The figures eyes open, revealing irises that dance with fire.",t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent='"I am Ignis, Guardian of the Eternal Flame," the figures voice crackling like a hearth. "You bear the mark of the Flame Seeker. The Crown of Eternity calls to you."',t.appendChild(i);const r=document.createElement("p");r.classList.add("narrative"),r.textContent='Ignis extends a hand, revealing a small, flame-shaped crystal. "This Shard of Fire will guide you to the Crown, hidden within the heart of a dying star. But beware, for shadows seek to extinguish all light."',t.appendChild(r),e.appendChild(t)}();break;default:console.log("Unknown choice")}}(e.value))),r.appendChild(t)})),t.appendChild(r)}const d=r;function l(e){const t=document.body;t.style.backgroundImage=`url(${e})`,t.style.backgroundSize="cover",t.style.backgroundPosition="center",t.style.backgroundRepeat="no-repeat",t.style.width="100vw",t.style.height="auto"}document.addEventListener("DOMContentLoaded",(()=>{document.getElementById("restart-button").addEventListener("click",(()=>{localStorage.removeItem("storyProgress"),console.log("Progress cleared"),r(),l(n(41))}))}));const h=function(){const e=document.createElement("div");e.classList.add("screen");const t=document.createElement("h1");t.classList.add("title"),t.textContent="Echoes of Eternity",e.appendChild(t);const n=document.createElement("p");n.classList.add("info"),n.textContent="Welcome to the mystical realm of Echoes of Eternity! This Choice-driven adventure story will guide you through many mythologies and uncover the secrets of the past. Are you ready to embark on this extraordinary journey?",e.appendChild(n);const o=document.createElement("div");o.classList.add("button-section");const a=document.createElement("button");return a.classList.add("start-button"),a.id="startButton",a.textContent="Start your adventure!",o.appendChild(a),e.appendChild(o),e};function m(){console.log("Starting narrative"),l(n(41)),document.getElementById("content").innerHTML="",d()}document.addEventListener("DOMContentLoaded",(function(){console.log("Initializing app"),function(){if(l(n(558)),!document.getElementById("content")){const e=document.createElement("div");e.id="content",document.body.appendChild(e)}}();const e=document.getElementById("content");if(0===e.children.length){function t(t){console.log("loadContent called with:",t.name);const n=t();console.log("Created element:",n),e.appendChild(n),console.log("Content after append:",e.innerHTML)}console.log("Loading content"),t(h),document.getElementById("startButton").addEventListener("click",m)}else console.log("Content already loaded, skipping")}))})(); \ No newline at end of file +(()=>{"use strict";var e={41:(e,t,n)=>{e.exports=n.p+"7606026687b2d883ca08.jpg"},136:(e,t,n)=>{e.exports=n.p+"5a6612f0417bc581cb63.jpg"},558:(e,t,n)=>{e.exports=n.p+"fbbc0c4ce4cdda53552c.jpg"},279:(e,t,n)=>{e.exports=n.p+"fae234b4cbe2e01b3f9f.jpg"},202:(e,t,n)=>{e.exports=n.p+"4475b5f69c7fac25d140.jpg"},741:(e,t,n)=>{e.exports=n.p+"5001dac206eef9ee5dcc.jpg"},184:(e,t,n)=>{e.exports=n.p+"2310ab6711a7a6e9c2a0.jpg"},949:(e,t,n)=>{e.exports=n.p+"c5aa2413f83f569ce4ed.jpg"},519:(e,t,n)=>{e.exports=n.p+"a24a92afb9bcc317de93.jpg"},404:(e,t,n)=>{e.exports=n.p+"df7e2168f61bb07c19f6.jpg"},902:(e,t,n)=>{e.exports=n.p+"ee12aa4be089f5e1c414.jpg"},120:(e,t,n)=>{e.exports=n.p+"f7434f7b62fbf791c3d4.jpg"},208:(e,t,n)=>{e.exports=n.p+"f80856bc759a6182e46f.jpg"},502:(e,t,n)=>{e.exports=n.p+"2ddbaccfdfd59392d54d.jpg"},773:(e,t,n)=>{e.exports=n.p+"461e7ab5c99b2448e0a8.jpg"},736:(e,t,n)=>{e.exports=n.p+"60f00d5ab5a2cae070ba.jpg"},412:(e,t,n)=>{e.exports=n.p+"d428ffd8bbe30e7dcb12.jpg"},178:(e,t,n)=>{e.exports=n.p+"4640ea9cbd1c30b70d19.jpg"}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,n),s.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var a=o.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=o[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})();const o=function(e){l(n(279));const t=document.getElementById("content");t.innerHTML="";const o=document.createElement("div");if(o.classList.add("screen"),!e){const e=document.createElement("h2");e.classList.add("chapter-title"),e.textContent="Chapter 2: The Prophecy Unveiled",o.appendChild(e);const n=document.createElement("h3");n.classList.add("path-title"),n.textContent="The Chosen Ones",o.appendChild(n);const a=document.createElement("p");a.classList.add("info"),a.textContent="You, The Chosen One, have been chose to embark on a journey to the elemental realms. Through a combination of scholarly research, adventurous exploration, and mystical insight, you have gained the following knowledge so far:",o.appendChild(a);const s=document.createElement("p");s.classList.add("narrative"),s.textContent="As you make your way through the streets of Aethoria, the visions and symbols from before still burn in your mind. The voice—deep, ancient—whispers again:",o.appendChild(s);const i=document.createElement("em");i.classList.add("voice-echo"),i.textContent='"Seeker, the Elemental Realms cry out for restoration. The path you choose will shape the future."',o.appendChild(i);const r=document.createElement("p");r.classList.add("narrative"),r.textContent="As you ponder the meaning of these words, you notice that the crowds are all moving in one direction - towards the Grand Temple of Elements. The normally pristine white marble of the temple seems to shimmer with an array of colors, reflecting the hues of the three moons still visible in the sky. Your symbol pulses, and you feel it pulling you toward the temple steps.",o.appendChild(r);const d=document.createElement("p");d.classList.add("narrative"),d.textContent="Three figures stand at the entrance, each radiating an energy that corresponds to the elements of your vision. Their presence is undeniable, and you realize these figures hold the answers you seek—but which one will guide you?",o.appendChild(d);const l=document.createElement("p");l.classList.add("choice-section"),l.textContent="What do you do?",o.appendChild(l);const h=document.createElement("ol");h.className="choice-list";const u=[{text:"Approach the figure wreathed in flames.",value:"flameGuardian"},{text:"Seek out the individual surrounded by a misty aura",value:"mistWeaver"},{text:"Move towards the person with vines and leaves swirling around them",value:"earthShaper"}];o.appendChild(h),c(u,o),t.appendChild(o)}};function a(){l(n(184));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Choice 1: Investigate the Moons",t.appendChild(o);const a=document.createElement("p");a.classList.add("narrative"),a.textContent='You push your way through the throng of onlookers, determined to get a better view. As you reach the front, you notice that the moons are slowly aligning, forming a perfect triangle in the sky. The sight is both beautiful and terrifying. An old woman next to you gasps, "The Triad of Fate! It is just as the ancient scrolls foretold!" Before you can ask her what she means, a blinding light erupts from the center of the triangle, bathing the entire city in an ethereal glow. As the light fades, you notice that small, glowing symbols have appeared on the back of your hand.',t.appendChild(a);const s=document.createElement("p");s.classList.add("choice-section"),s.textContent="What do you do?",t.appendChild(s);const i=document.createElement("ol");i.className="choice-list";const r=document.createElement("li");r.textContent="Examine the symbol on your hand more closely.",i.appendChild(r);const d=document.createElement("li");d.textContent="Ask the old woman about the Triad of Fate and the ancient scrolls.",i.appendChild(d);const h=document.createElement("li");h.textContent="Look around to see if others have similar markings.",i.appendChild(h),t.appendChild(i),c([{text:"Investigate symbols",value:"investigateSymbols"},{text:"Ask about Triad of Fate",value:"triadFate"},{text:"Look for others",value:"lookAround"}],t),e.appendChild(t)}function s(){l(n(502));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Choice 2: Seek an Elder",t.appendChild(o);const a=document.createElement("p");a.classList.add("narrative"),a.textContent='You decide that knowledge is your best ally in this strange situation. You make your way to the Grand Library of Aethoria, a massive structure said to house knowledge from across all realms. As you approach the entrance, you notice that the usually calm scholars are in a state of frenzy, rushing about with armfuls of scrolls and ancient tomes. You manage to catch the attention of Magister Elowen, a respected expert in celestial phenomena. "Ah, a seeker of knowledge in these tumultuous times," she says, her eyes gleaming with a mix of excitement and concern. "You have come at a most auspicious moment. The Convergence is upon us, and with it, the awakening of ancient powers."',t.appendChild(a);const s=document.createElement("p");s.classList.add("choice-section"),s.textContent="How do you respond?",t.appendChild(s);const i=document.createElement("ol");i.className="choice-list";const r=document.createElement("li");r.textContent="Ask about the Convergence and its signifigance.",i.appendChild(r);const d=document.createElement("li");d.textContent='Inquire about the "Awakening of ancient powers" she mentioned.',i.appendChild(d);const h=document.createElement("li");return h.textContent="Request to see any relevant texts or prophecies.",i.appendChild(h),t.appendChild(i),c([{text:"Convergence?",value:"aboutConvergence"},{text:"Awakening of ancient powers?",value:"awakeningPowers"},{text:"Texts or prophecies?",value:"textsProphecies"}],t),e.appendChild(t),t}function i(){l(n(736));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Choice 3: Visit the Temple",t.appendChild(o);const a=document.createElement("p");a.classList.add("narrative"),a.textContent='You make your way to the Temple of the Cosmic Wheel, the most revered spiritual site in Aethoria. As you climb the marble steps, you notice that the normally serene atmosphere is charged with tension. Priests and acolytes rush about, their robes billowing behind them. High Priestess Selena greets you at the entrance, her silver hair shimmering in the strange light cast by the three moons. "Welcome, child of Varathis," she intones, her voice resonating with power. "You have been drawn here by the call of destiny." She gestures for you to follow her into the inner sanctum, where a massive mosaic depicts the cosmic wheel surrounded by various mythological figures from across the realms.',t.appendChild(a);const s=document.createElement("p");s.classList.add("choice-section"),s.textContent="What do you wish to know?",t.appendChild(s);const i=document.createElement("ol");i.className="choice-list";const r=document.createElement("li");r.textContent="Ask about the meaning of the three moons in the sky.",i.appendChild(r);const d=document.createElement("li");d.textContent='Inquire about your role in this "destiny" she mentioned.',i.appendChild(d);const h=document.createElement("li");h.textContent="Request guidance on what actions you should take next,",i.appendChild(h),t.appendChild(i),c([{text:"Moons?",value:"moons"},{text:"Role in destiny?",value:"roleDestiny"},{text:"Next steps?",value:"nextSteps"}],t),e.appendChild(t)}function r(){!function(e){const t=document.getElementById("content");t.innerHTML="";const n=document.createElement("div");if(n.classList.add("screen"),e)switch(e){case"investigateMoons":a();break;case"seekElder":s();break;case"visitTemple":i()}else{const e=document.createElement("h1");e.classList.add("title"),e.textContent="Act I: The Convergence Begins",n.appendChild(e);const t=document.createElement("p");t.classList.add("info"),t.textContent="As the celestial convergence draws near, strange phenomena begin to unfold across Varathis—a newly formed nation in the year 2068. In a world reshaped by the aftermath of World War III, Earth is no longer as we know it, and the fabric of reality itself seems to fray at the edges.",n.appendChild(t);const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Chapter 1: The Omen",n.appendChild(o);const a=document.createElement("p");a.classList.add("narrative"),a.textContent="The air in Varathis crackled with an otherworldly energy as the celestial Convergence approached. You find yourself in the bustling market square of Aethoria, the City of a Thousand Spires. The normally vibrant atmosphere is tinged with an undercurrent of unease. As you weave through the crowd, you overhear whispered conversations about strange occurrences and inexplicable phenomena. Suddenly, a commotion erupts near the central fountain. A group of people has gathered, pointing at the sky. You look up and see an extraordinary sight: three moons, each a different color, have appeared in the daylight sky.",n.appendChild(a);const s=document.createElement("p");s.classList.add("choice-section"),s.textContent="What do you do?",n.appendChild(s);const i=document.createElement("ol");i.className="choice-list";const r=document.createElement("li");r.textContent="Push through the crowd to get a closer look at the moons.",i.appendChild(r);const d=document.createElement("li");d.textContent="Seek out a local Elder to understand the meaning of this event.",i.appendChild(d);const l=document.createElement("li");l.textContent="Head to the nearest temple to consult with the priests.",i.appendChild(l),n.appendChild(i),c([{text:"Investigate the Moons",value:"investigateMoons"},{text:"Seek Elder",value:"seekElder"},{text:"Visit temple",value:"visitTemple"}],n)}t.appendChild(n)}()}function c(e,t){const r=document.createElement("div");r.className="button-container",e.forEach((e=>{const t=document.createElement("button");t.className="choice-button",t.textContent=e.text,t.setAttribute("data-choice",e.value),t.addEventListener("click",(()=>function(e){switch(function(e){localStorage.setItem("storyProgress",JSON.stringify(e)),console.log("Progress Saved")}(e),e){case"investigateMoons":console.log("User pushes through crowd..."),a();break;case"investigateSymbols":console.log("User examines symbol on hand..."),function(){l(n(949));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const a=document.createElement("h2");a.classList.add("chapter-title"),a.textContent="Examine the symbol on your hand more closely.",t.appendChild(a);const s=document.createElement("p");s.classList.add("info"),s.textContent="After witnessing the extraordinary sight of the three moons in the sky and the blinding light that bathed the city, you notice a glowing symbol on your hand.",t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent="As you bring your hand closer to your face, the symbol begins to glow more intensely. It is an intricate design, reminiscent of a tree with three intertwining branches. Each branch ends in a different symbol: A flame, a droplet, and a leaf. Suddenly, you feel a surge of energy coursing through your body. Your vision blurs, and you find yourself experiencing a series of rapid visions:",t.appendChild(i);const r=document.createElement("ul");r.classList.add("choice-list");const c=document.createElement("li");c.textContent="A snow-capped mountain split by a chasm of fire.",r.appendChild(c);const d=document.createElement("li");d.textContent="A lush forest withering under an unnatural drought.",r.appendChild(d);const h=document.createElement("li");h.textContent="A great flood threatening to submerge an ancient city.",r.appendChild(h),t.appendChild(r);const u=document.createElement("p");u.classList.add("narrative"),u.textContent="As the visions fade, you notice that each branch of the symbol seems to pulse faintly in the direction of one of the moons. The symbols are interconnected, hinting that your path will influence the others. You hear a voice echoing in your mind:",t.appendChild(u);const m=document.createElement("em");m.textContent=' "Seeker, the balance is broken. The Elemental Realms cry out for restoration."',m.classList.add("voice-echo"),t.appendChild(m);const p=document.createElement("button");p.textContent="Continue to Chapter Two - Chosen One Path",p.classList.add("choice-button"),t.appendChild(p),p.addEventListener("click",(()=>{o()})),e.appendChild(t)}();break;case"triadFate":console.log("User asks about Triad of Fate..."),function(){l(n(902));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const a=document.createElement("h2");a.classList.add("chapter-title"),a.textContent="Ask the old woman about the Triad of Fate and ancient scrolls",t.appendChild(a);const s=document.createElement("p");s.classList.add("info"),s.textContent="After witnessing the extraordinary sight of the three moons in the sky and the blinding light that bathed the city, you notice a glowing symbol on your hand.",t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent='You turn to the old woman who gasped about the Triad of Fate. Her eyes, milky with age, seem to look through you rather than at you. "The Triad of Fate," she begins, her voice quavering with excitement, "is the convergence of the three cosmic forces: Time, Life, and Space.',t.appendChild(i);const r=document.createElement("p");r.classList.add("narrative"),r.textContent='The ancient scrolls speak of a time when these forces would manifest as three moons in the sky, heralding the awakening of the Lost Relics." She grabs your arm with suprising strength, the symbol glows again, revealing fleeting images of a temple and three glowing figures, each linked to one of the marks.',t.appendChild(r);const c=document.createElement("em");c.classList.add("voice-echo"),c.textContent='"The scrolls also speak of chosen ones, marked by elements, who must restore balance to the realms. The fate of all existence hangs in the balance!"',t.appendChild(c);const d=document.createElement("button");d.textContent="Continue to Chapter Two - Chosen One Path",d.classList.add("choice-button"),t.appendChild(d),d.addEventListener("click",(()=>{o()})),e.appendChild(t)}();break;case"lookAround":console.log("User scans the crowd..."),function(){l(n(202));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const a=document.createElement("h2");a.classList.add("chapter-title"),a.textContent="Look around to see if others have similar markings",t.appendChild(a);const s=document.createElement("p");s.classList.add("info"),s.textContent="After witnessing the extraordinary sight of the three moons in the sky and the blinding light that bathed the city, you notice a glowing symbol on your hand.",t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent="As you scan the crowd, looking for any signs of symbols or markings on others. At first, you see nothing out of the ordinary. You notice three individuals in the crowd who seem different. A young woman stares at her palm, where a flame-like symbol glows. A middle-aged man in scholarly robes traces a water droplet marking on the back of his hand. An elderly person in simple garb holds up their arm, revealing a leaf-shaped symbol.",t.appendChild(i);const r=document.createElement("p");r.classList.add("narrative"),r.textContent="As you lock eyes with them, the symbols seem to resonate with one another. You get a faint sense that your fates are intertwined, but also distinct—each of you connected to one of the realms.",t.appendChild(r);const c=document.createElement("button");c.textContent="Continue to Chapter Two - Chosen One Path",c.classList.add("choice-button"),t.appendChild(c),c.addEventListener("click",(()=>{o()})),e.appendChild(t)}();break;case"seekElder":console.log("User seeks an elder..."),s();break;case"aboutConvergence":console.log("User reads about the Convergence..."),function(){l(n(519));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Ask about the Convergence and its significance",t.appendChild(o);const a=document.createElement("p");a.classList.add("info"),a.textContent="You have decided that knowledge is your best ally in this strange situation. And have made your way to the dwelling of Magister Elowen, a respected elder known for her wisdom and knowledge of celestial phenomena.",t.appendChild(a);const s=document.createElement("p");s.classList.add("narrative"),s.textContent='Magister Elowens eyes light up at your question. She pulls a large, ornate book from a nearby shelf and opens it to reveal a complex diagram of celestial bodies. "The Convergence," she explains, "is a cosmic event that occurs once every thousand years. It is a time when the barriers between realms thin, allowing for the flow of energies and, sometimes, beings between worlds."',t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent='She points to various parts of the diagram as she continues, "This particular Convergence is special. The alignment of the three moons you see in the sky represents the culmination of a cycle that spans multiple convergences. It heralds a time of great change and potential." Elowen pauses, her expression growing serious.',t.appendChild(i);const r=document.createElement("em");r.classList.add("voice-echo"),r.textContent='"But with great potential comes great danger. The last time such an alignment occurred, it led to the Age of Chaos, a period of strife that nearly tore the fabric of reality apart."',t.appendChild(r),e.appendChild(t)}();break;case"awakeningPowers":console.log("User learns about awakening the powers..."),function(){l(n(773));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent='Inquire about the "awakening of ancient powers" she mentioned',t.appendChild(o);const a=document.createElement("p");a.classList.add("info"),a.textContent="You have decided that knowledge is your best ally in this strange situation. And have made your way to the dwelling of Magister Elowen, a respected elder known for her wisdom and knowledge of celestial phenomena.",t.appendChild(a);const s=document.createElement("p");s.classList.add("narrative"),s.textContent="Magister Elowens expression becomes grave. She walks to a locked cabinet and retrieves a small, ornate box. Opening it, she reveals three small objects: a miniature crown, a tiny chalice, and a minuscule book.",t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent='"These are replicas of the Lost Relics," she explains. "The Crown of Eternity, the Chalice of Souls, and the Codex of Realms. Each holds power over a fundamental aspect of existence: Time, Life, and Space." She closes the box carefully.',t.appendChild(i);const r=document.createElement("em");r.classList.add("voice-echo"),r.textContent='"The Convergence weakens the barriers that have kept these relics hidden for millennia. Their power will soon awaken, and they must be found and united by those chosen to bear them. If they fall into the wrong hands, or if they are not brought together in time, the consequences could be catastrophic."',t.appendChild(r),e.appendChild(t)}();break;case"textsProphecies":console.log("User reads texts from prophecies..."),function(){l(n(208));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Request to see any relevant texts or prophecies",t.appendChild(o);const a=document.createElement("p");a.classList.add("info"),a.textContent="You have decided that knowledge is your best ally in this strange situation. And have made your way to the dwelling of Magister Elowen, a respected elder known for her wisdom and knowledge of celestial phenomena.",t.appendChild(a);const s=document.createElement("p");s.classList.add("narrative"),s.textContent='Elowen nods solemnly and leads you into a hidden room concealed behind a sliding bookcase. As you step through the threshold, your eyes widen in awe at the sight that greets you. The walls are adorned with shelves displaying ancient scrolls and tomes, emanating an aura of wisdom and mystery. Elowen moves with grace, her hand reaching for a particular scroll among the many, her fingers tracing the intricate patterns etched into its surface. "This is the Prophecy of the Triad," she whispers, her voice weighted with reverence. "It speaks of the great Convergence and the pivotal role of the chosen ones."',t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent="With deliberate care, Elowen lays the scroll on a large, weathered table, its edges curling slightly with age. The parchment unfurls, revealing a breathtaking illustration depicting three figures, each surrounded by a swirling array of elemental symbols. Beneath them, a prophecy is inscribed in a script long forgotten by time.",t.appendChild(i);const r=document.createElement("em");r.classList.add("voice-echo"),r.textContent='When three moons align and realms entwine, Three shall rise, by elements marked. Times crown, Lifes chalice, Spaces tome, Must unite lest all worlds fall to dark. Fires seeker, Waters caller, Earths weaver, Balance restore, or chaos shall reign. At Convergence peak, a choice they will make, To mend the cosmos or break its chain."',t.appendChild(r);const c=document.createElement("p");c.classList.add("narrative"),c.textContent="The words resonate in the chamber, carrying with them a weight of destiny and consequence. Elowen gazes at you, her eyes alight with purpose, as the realization of the task ahead settles upon your shoulders.",t.appendChild(c),e.appendChild(t)}();break;case"visitTemple":console.log("User visits a temple..."),i();break;case"moons":console.log("User looks to the moons with the High Priestess..."),function(){l(n(178));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Ask about the meaning of the three moons in the sky",t.appendChild(o);const a=document.createElement("p");a.classList.add("info"),a.textContent="You make your way to the Temple of the Cosmic Wheel, the most revered spiritual site in the city. As you climb the polished marble steps, you sense a palpable shift in the atmosphere, a current of anticipation and unease that electrifies the air around you.",t.appendChild(a);const s=document.createElement("p");s.classList.add("narrative"),s.textContent="High Priestess Selena, a figure of ethereal grace, emanates an otherworldly aura as she gazes at the heavens, her silver hair shimmering under the enigmatic light cast by the three moons. Meeting your eyes with a mixture of awe and concern, she begins to unravel the mysteries veiled behind this celestial phenomenon.",t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent='"The three moons," she imparts with a voice resonant with power, "represent the Triad of Cosmic Forces: Chronos, the keeper of Time; Anima, the essence of Life; and Cosmos, the weaver of Space. Their appearance in the sky signals the inception of the Great Convergence, a portentous time when the veils separating realms begin to wane." Raising a hand to point at the heavens, she continues:',t.appendChild(i);const r=document.createElement("em");r.classList.add("voice-echo"),r.textContent='"Each moon holds correspondence to one of the Lost Relics. The golden moon to the Crown of Eternity, the silver to the Chalice of Souls, and the emerald to the Codex of Realms. Their alignment not only signifies the potential rediscovery of the relics, but also the imperative need for their retrieval, for the preservation of all existence."',t.appendChild(r),e.appendChild(t)}();break;case"roleDestiny":console.log("User has their role explained..."),function(){l(n(120));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent='Inquire about your role in this "destiny" she mentioned',t.appendChild(o);const a=document.createElement("p");a.classList.add("info"),a.textContent="As you approach the Temple of the Cosmic Wheel, the air around you becomes thick with anticipation and excitement. A sense of purpose and purposefulness courses through your veins, filling you with a sense of determination to fulfill the destiny she spoke of.",t.appendChild(a);const s=document.createElement("p");s.classList.add("narrative"),s.textContent="High Priestess Selena holds you in her penetrating gaze as she beckons you to a secluded, circular chamber adjacent to the main sanctum. At its center, a pedestal cradles a crystal orb, within which ethereal mists intermingle and shift, beckoning you closer.",t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent='"The strands of fate, woven in enigmatic patterns, have led you to this pivotal juncture," she intones, her voice bearing a weight of solemn significance. "The Convergence not only rouses cosmic forces but also unveils the latent potential within select individuals. You, my child, are one such individual."',t.appendChild(i);const r=document.createElement("p");r.classList.add("narrative"),r.textContent="Inviting you closer to the orb, she exhorts,",t.appendChild(r);const c=document.createElement("em");c.classList.add("voice-echo"),c.textContent='"This is the Orb of Destiny, an artifact that will reveal fleeting glimpses of the path that beckons you. However, know this: the future remains a composition of choices, unbound by the strictures of destiny. Your decisions will not only sculpt your own fate but reverberate through the tapestries of all realms."',t.appendChild(c),e.appendChild(t)}();break;case"nextSteps":console.log("User finds out their next steps..."),function(){l(n(412));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Request guidance on what actions you should take next",t.appendChild(o);const a=document.createElement("p");a.classList.add("info"),a.textContent="As you approach the Temple of the Cosmic Wheel, the air around you becomes thick with anticipation and excitement. A sense of purpose and purposefulness courses through your veins, filling you with a sense of determination to fulfill the destiny she spoke of.",t.appendChild(a);const s=document.createElement("p");s.classList.add("narrative"),s.textContent='With a nod of solemn assurance, Selena accompanies you to a vast mosaic stretching across the temple floor, an intricate web of interconnected realms rendered in rich, vibrant hues. "The path that stretches before you is anything but straightforward," she begins, her eyes reflecting a weighty determination. "The Convergence has set in motion formidable forces, and you find yourself poised at the heart of this tempest. Here is the course you must navigate:"',t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent='"Set forth to seek the elemental guardians. They will unlock the dormant power residing within you and steer you toward the pursuit of the Lost Relics."',t.appendChild(i);const r=document.createElement("p");r.classList.add("narrative"),r.textContent='"Take caution of the shadowy entities and the forces of chaos. They covet the Convergence, aiming to exploit its power to unravel the fabric of existence."',t.appendChild(r);const c=document.createElement("p");c.classList.add("narrative"),c.textContent='"Unite with the other chosen ones. Solely in alliance can you hope to confront the trials that lie ahead and confront the momentous choice that holds the sway over the destinies of all realms."',t.appendChild(c);const d=document.createElement("p");d.classList.add("narrative"),d.textContent="Resting her hand upon your shoulder, she imparts,",t.appendChild(d);const h=document.createElement("em");h.classList.add("voice-echo"),h.textContent='"The path will be fraught with peril, burdened with weighty responsibility. Nevertheless, remember, you were endowed with the mantle of chosenness for a reason. Place trust in your inherent strength and in the harmonious equilibrium of the cosmos."',t.appendChild(h),e.appendChild(t)}();break;case"chapterTwoMoons":console.log("User as progress to Chapter 2 from investigating the moons..."),o();break;case"flameGuardian":console.log("User chooses Flame Guardian..."),function(){l(n(741));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Chapter 2: The Prophecy Unvieled",t.appendChild(o);const a=document.createElement("h3");a.classList.add("path-title"),a.textContent="The Chosen Ones - Flame Guardian",t.appendChild(a);const s=document.createElement("p");s.classList.add("narrative"),s.textContent="As you approach the figure wreathed in flames, the air around you grows warmer. The figures eyes open, revealing irises that dance with fire.",t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent='"I am Ignis, Guardian of the Eternal Flame," the figures voice crackling like a hearth. "You bear the mark of the Flame Seeker. The Crown of Eternity calls to you."',t.appendChild(i);const r=document.createElement("p");r.classList.add("narrative"),r.textContent='Ignis extends a hand, revealing a small, flame-shaped crystal. "This Shard of Fire will guide you to the Crown, hidden within the heart of a dying star. But beware, for shadows seek to extinguish all light."',t.appendChild(r),e.appendChild(t)}();break;case"mistWeaver":console.log("User chooses Mist Weaver..."),function(){l(n(404));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Chapter 2: The Prophecy Unveiled",t.appendChild(o);const a=document.createElement("h3");a.classList.add("path-title"),a.textContent="The Chosen Ones - Mist Weaver",t.appendChild(a);const s=document.createElement("p");s.classList.add("narrative"),s.textContent="You make your way to the figure surrounded by a misty aura. As you draw near, you feel a cool, refreshing sensation wash over you. The figures eyes open, revealing swirling pools of blue and grey.",t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent='"Welcome, Tide Caller. I am Aquarius, Keeper of the Endless Depths," the figure says, their voice like water flowing over stones. "The Chalice of Souls resonates with your spirit."',t.appendChild(i);const r=document.createElement("p");r.classList.add("narrative"),r.textContent='Aquarius holds out a hand, a small, droplet-shaped pearl resting in their palm. "This Pearl of the Abyss will lead you to the Chalice, hidden in the deepest trench of the Primordial Ocean. But be warned, dark currents seek to drag the realms into chaos.',t.appendChild(r),e.appendChild(t)}();break;case"earthShaper":console.log("User chooses Earth Shaper..."),function(){l(n(136));const e=document.getElementById("content");e.innerHTML="";const t=document.createElement("div");t.classList.add("screen");const o=document.createElement("h2");o.classList.add("chapter-title"),o.textContent="Chapter 2: The Prophecy Unveiled",t.appendChild(o);const a=document.createElement("h3");a.classList.add("path-title"),a.textContent="The Chosen Ones - Earth Shaper",t.appendChild(a);const s=document.createElement("p");s.classList.add("narrative"),s.textContent="You approach the person with vines and leaves swirling around them. The ground beneath your feet seems to hum with energy. The figures eyes open, revealing irises of deep, rich brown flecked with green, red and yellow.",t.appendChild(s);const i=document.createElement("p");i.classList.add("narrative"),i.textContent='"Greetings, Root Weaver. I am Terra, Voice of the Ancient Groves," the figure speaks, their words resonating like a deep drumbeat. "The Codex of Realms calls for your touch."',t.appendChild(i);const r=document.createElement("p");r.classList.add("narrative"),r.textContent='Terra presents you with a seed that glows with an inner light. "This Seed of Yggdrasil will guide you to the Codex, nestled in the heart of the World Tree. But tread carefully, for parasitic forces seek to corrupt the tree and unravel the fabric of reality."',t.appendChild(r),e.appendChild(t)}();break;default:console.log("Unknown choice; dev check import, switch case, and export")}}(e.value))),r.appendChild(t)})),t.appendChild(r)}const d=r;function l(e){const t=document.body;t.style.backgroundImage=`url(${e})`,t.style.backgroundSize="cover",t.style.backgroundPosition="center",t.style.backgroundRepeat="no-repeat",t.style.width="100vw",t.style.height="auto"}document.addEventListener("DOMContentLoaded",(()=>{document.getElementById("restart-button").addEventListener("click",(()=>{localStorage.removeItem("storyProgress"),console.log("Progress cleared"),r(),l(n(41))}))}));const h=function(){const e=document.createElement("div");e.classList.add("screen");const t=document.createElement("h1");t.classList.add("title"),t.textContent="Echoes of Eternity",e.appendChild(t);const n=document.createElement("p");n.classList.add("info"),n.textContent="Welcome to the mystical realm of Echoes of Eternity! This Choice-driven adventure story will guide you through many mythologies and uncover the secrets of the past. Are you ready to embark on this extraordinary journey?",e.appendChild(n);const o=document.createElement("div");o.classList.add("button-section");const a=document.createElement("button");return a.classList.add("start-button"),a.id="startButton",a.textContent="Start your adventure!",o.appendChild(a),e.appendChild(o),e};function u(){console.log("Starting narrative"),l(n(41)),document.getElementById("content").innerHTML="",d()}document.addEventListener("DOMContentLoaded",(function(){console.log("Initializing app"),function(){if(l(n(558)),!document.getElementById("content")){const e=document.createElement("div");e.id="content",document.body.appendChild(e)}}();const e=document.getElementById("content");if(0===e.children.length){function t(t){console.log("loadContent called with:",t.name);const n=t();console.log("Created element:",n),e.appendChild(n),console.log("Content after append:",e.innerHTML)}console.log("Loading content"),t(h),document.getElementById("startButton").addEventListener("click",u)}else console.log("Content already loaded, skipping")}))})(); \ No newline at end of file diff --git a/df7e2168f61bb07c19f6.jpg b/df7e2168f61bb07c19f6.jpg new file mode 100644 index 0000000..2d6be4f Binary files /dev/null and b/df7e2168f61bb07c19f6.jpg differ