@import"https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap";:root{font-family:Plus Jakarta Sans,Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.4;font-weight:400;color:#f7f6ff;background-color:#050014;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html{background-color:#050014}*{box-sizing:border-box}body{margin:0;min-height:100vh;min-height:100dvh;background:radial-gradient(circle at top,rgba(120,66,189,.55),transparent 45%),radial-gradient(circle at 20% 20%,rgba(34,174,255,.25),transparent 30%),#050014;color:inherit;overscroll-behavior:none;background-attachment:fixed}#root{min-height:100vh;width:100%;padding:0}button{cursor:pointer;font-family:inherit}button:disabled{cursor:not-allowed}.app-shell{display:flex;flex-direction:column;gap:1.5rem;padding:3rem 1.5rem 5rem;max-width:960px;margin:0 auto}.hero{text-align:center;display:flex;flex-direction:column;gap:.6rem}.header-top{display:flex;justify-content:space-between;align-items:center;width:100%}.auth-controls{display:flex;gap:1rem}.pill-button{display:flex;align-items:center;gap:.5rem;background:#14141e99;border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:.4rem 1rem;box-shadow:0 4px 12px #0000001a;color:#c2bed3;cursor:pointer;font-size:.9rem;font-weight:500;transition:all .2s ease}.pill-button:hover{background:#ffffff1a;border-color:#ffffff4d;color:#fff;transform:translateY(-1px);box-shadow:0 6px 15px #0003}.text-button{background:transparent;border:1px solid rgba(255,255,255,.1);color:#c2bed3;cursor:pointer;font-size:.85rem;font-weight:500;transition:all .2s ease;padding:.4rem 1rem;border-radius:20px}.text-button:hover{color:#fff;background:#ffffff1a;border-color:#ffffff4d}.hero h1{font-size:clamp(2.5rem,5vw,3.5rem);font-family:Playfair Display,serif;letter-spacing:.04em;color:#fdf7ff;margin:0}.eyebrow{text-transform:uppercase;letter-spacing:.3em;font-size:.72rem;font-weight:600;color:#b18bff;margin:0}.count-badge{display:inline-flex;align-items:center;justify-content:center;background:#b16bff33;color:#d6bcff;border:1px solid rgba(177,107,255,.3);border-radius:12px;padding:.1rem .5rem;font-size:.75rem;font-weight:600;min-width:24px;height:20px;margin-left:.6rem;vertical-align:middle;letter-spacing:0}.subhead{margin:0;color:#c9c8d9;font-size:1.05rem;max-width:640px;align-self:center;line-height:1.6}.usage-stats-wrapper{display:flex;align-items:center;justify-content:center;margin-top:.8rem;width:100%}.usage-pill{display:flex;align-items:center;gap:.5rem;background:#14141e99;border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:.4rem 1rem;box-shadow:0 4px 12px #0000001a}.usage-pill-icon{color:#c2bed3}.usage-pill-text{font-size:.9rem;color:#e0e0e0}.usage-count{color:#fff;font-weight:700}.create-story-hero{padding:3rem 2rem;text-align:center;position:relative;margin:1rem 0 2rem;display:flex;flex-direction:column;align-items:center;gap:2.5rem;background:#0000004d;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.1);border-radius:32px;box-shadow:0 4px 30px #0003,inset 0 0 0 1px #ffffff0d;overflow:hidden}.create-story-hero:before{content:"";position:absolute;top:0;left:0;right:0;height:100%;background:linear-gradient(180deg,#ffffff0d,#fff0);pointer-events:none;z-index:0}.hero-content{position:relative;z-index:1;max-width:600px;display:flex;flex-direction:column;gap:.5rem}.hero-title{font-family:Playfair Display,serif;font-size:2.5rem;color:#fff;margin:0;line-height:1.2;background:linear-gradient(to bottom right,#fff,#e0d4ff);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.hero-subtitle{color:#c2bed3;font-size:1.1rem;line-height:1.6;margin:0}.hero-actions{position:relative;z-index:1;display:flex;gap:1.5rem;flex-wrap:wrap;justify-content:center}.hero-card-btn{display:flex;flex-direction:column;align-items:center;gap:.8rem;background:linear-gradient(180deg,#ffffff14,#ffffff05);border:1px solid rgba(255,255,255,.12);border-radius:24px;padding:1.8rem 1.5rem;width:180px;cursor:pointer;transition:all .3s cubic-bezier(.25,.8,.25,1);position:relative;overflow:hidden;box-shadow:0 4px 20px #0003}.hero-card-btn:before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(255,255,255,.1),transparent);opacity:0;transition:opacity .3s ease}.hero-card-btn:hover{transform:translateY(-5px) scale(1.02);background:linear-gradient(180deg,#ffffff26,#ffffff0d);border-color:#b16bff99;box-shadow:0 15px 30px #0006}.hero-card-btn:hover:before{opacity:1}.hero-card-btn.primary{background:linear-gradient(160deg,#b16bff26,#50288c4d);border:1px solid rgba(177,107,255,.4);box-shadow:0 8px 25px #b16bff26}.hero-card-btn.primary:hover{background:linear-gradient(160deg,#b16bff40,#50288c66);border-color:#d6bcff;box-shadow:0 20px 45px #b16bff4d}.btn-icon{font-size:3rem;margin-bottom:.2rem;display:flex;align-items:center;justify-content:center;color:#e0d4ff;filter:drop-shadow(0 0 10px rgba(177,107,255,.3));transition:transform .3s ease}.btn-icon svg{width:1em;height:1em}.hero-card-btn:hover .btn-icon{transform:scale(1.1);color:#fff;filter:drop-shadow(0 0 15px rgba(177,107,255,.6))}.btn-label{font-weight:700;color:#fff;font-size:1.1rem;letter-spacing:.02em}.btn-desc{font-size:.8rem;color:#c2bed3;line-height:1.4;opacity:.9}.story-form{background:#211334b8;border:1px solid rgba(202,180,255,.2);border-radius:24px;padding:1.5rem;-webkit-backdrop-filter:blur(40px);backdrop-filter:blur(40px);display:flex;flex-direction:column;gap:1rem;box-shadow:0 25px 60px #06021799}.story-form textarea{resize:vertical;min-height:120px;background:#0c081999;color:#f7f7ff;border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:1rem 1.25rem;font-size:1rem;font-family:inherit;letter-spacing:normal;word-spacing:normal;line-height:1.5;overflow-wrap:break-word;transition:border .2s ease,transform .2s ease}.story-form textarea:focus{outline:none;border-color:#c2a6ffe6;transform:translateY(-2px)}.format-selection-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.5rem}.format-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.8rem;padding:1.2rem 1rem;background:#ffffff08;border:1px solid rgba(255,255,255,.1);border-radius:16px;color:#c2bed3;cursor:pointer;transition:all .2s cubic-bezier(.25,.8,.25,1);text-align:center;position:relative}.format-card:hover{background:#ffffff0f;border-color:#fff3;transform:translateY(-2px);color:#fff}.format-card.active{background:linear-gradient(135deg,#b16bff26,#50288c33);border:1px solid rgba(177,107,255,.6);color:#fff;box-shadow:0 8px 20px #b16bff26}.format-card .icon-wrapper{color:inherit;opacity:.8;transition:transform .2s ease}.format-card.active .icon-wrapper{opacity:1;color:#d6bcff;transform:scale(1.1)}.format-card span{font-weight:600;font-size:.95rem}@media(max-width:480px){.format-selection-grid{gap:.8rem}.format-card{padding:1rem .5rem}.format-card span{font-size:.85rem}}.ghost-button{border:1px solid rgba(255,255,255,.2);background:transparent;color:#e8e4ff;padding:.75rem 1.4rem;border-radius:1.5rem;font-weight:600;transition:border .2s ease,color .2s ease,transform .2s ease}.ghost-button:hover:not(:disabled){border-color:#d1acffcc;color:#fff;transform:translateY(-2px)}.ghost-button:disabled{opacity:.4;cursor:not-allowed}.form-footer{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:space-between}.cta{background:linear-gradient(120deg,#b16bff,#ff8add);border:none;color:#060312;font-weight:700;padding:.9rem 1.6rem;border-radius:999px;min-width:230px;box-shadow:0 10px 25px #c578ff59;transition:transform .2s ease,box-shadow .2s ease}.cta:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}.cta:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 15px 35px #c578ff80}.cta.danger{background:linear-gradient(120deg,#ff4b4b,#ff8a8a);box-shadow:0 10px 25px #ff4b4b59}.cta.danger:not(:disabled):hover{box-shadow:0 15px 35px #ff4b4b80}.helper{margin:0;color:#b8b6c9;font-size:.95rem}.sample-chips{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center}.chip{border:1px solid rgba(255,255,255,.12);background:#ffffff0a;color:#e3dfff;padding:.55rem 1.1rem;border-radius:999px;font-size:.92rem;transition:border .2s ease,color .2s ease}.chip:hover:not(:disabled){border-color:#d1acffcc;color:#fff}.banner{border-radius:16px;padding:.85rem 1.1rem;font-weight:500;text-align:center}.banner.error{background:#ff4b6e1a;color:#ff9bad;border:1px solid rgba(255,75,110,.3)}.banner.whisper{background:#b16bff1f;color:#e2d3ff;border:1px solid rgba(177,107,255,.3)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}@media(max-width:720px){.app-shell{padding:2rem 1.25rem 4rem;gap:.5rem}.usage-stats-wrapper{margin-bottom:.5rem}.create-story-hero{padding:1.5rem 0;margin-top:0;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;border:none;box-shadow:none;border-radius:0;overflow:visible}.create-story-hero:before{display:none}.hero-content{padding:0 1rem}.hero-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;width:100%}.hero-card-btn{width:100%;padding:0;gap:0;align-items:stretch;text-align:left}.hero-card-btn .btn-icon{display:flex;align-items:center;justify-content:center;aspect-ratio:4 / 3;background:linear-gradient(160deg,#ffffff0d,#ffffff05);font-size:3.5rem;margin-bottom:0}.hero-card-btn.primary .btn-icon{background:linear-gradient(160deg,#b16bff1f,#50288c33)}.hero-card-btn .btn-label,.hero-card-btn .btn-desc{padding:0 .75rem}.hero-card-btn .btn-label{padding-top:.75rem;font-size:.9rem}.hero-card-btn .btn-desc{padding-bottom:.75rem;font-size:.75rem}}.library-mode{max-width:100%;width:100%;padding:3rem 1.5rem 5rem;box-sizing:border-box}.library-panel{background:#180d2acc;border-radius:32px;border:1px solid rgba(255,255,255,.08);padding:2rem;box-shadow:0 30px 90px #050018a6;display:flex;flex-direction:column;gap:1.5rem;width:100%}@media(max-width:720px){.app-shell{padding:2rem 1.25rem 4rem;gap:.5rem}.library-mode{padding:2rem 1.25rem 4rem}}.library-header{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;align-items:flex-start}.library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.25rem}.library-grid.inline{display:flex;gap:1rem;margin-top:1rem;overflow-x:auto;padding-bottom:.5rem;scrollbar-width:thin;-webkit-overflow-scrolling:touch}.library-grid.inline::-webkit-scrollbar{height:6px}.library-grid.inline::-webkit-scrollbar-track{background:#ffffff0d;border-radius:3px}.library-grid.inline::-webkit-scrollbar-thumb{background:#b16bff4d;border-radius:3px}.library-grid.inline .library-card{min-width:160px;width:160px;flex-shrink:0}@media(min-width:480px){.library-grid.inline .library-card{min-width:200px;width:200px}}@media(max-width:640px){.library-grid{grid-template-columns:repeat(2,1fr)!important;gap:.8rem}.library-card-body{padding:.8rem}.library-title{font-size:.9rem}.library-meta{font-size:.75rem}}.library-card{border:1px solid rgba(255,255,255,.08);background:#ffffff08;border-radius:24px;padding:0;text-align:left;cursor:pointer;display:flex;flex-direction:column;overflow:hidden;transition:transform .3s ease,border-color .3s ease}.library-card:hover{transform:translateY(-4px);border-color:#cba9ffcc}.library-cover{position:relative;aspect-ratio:4 / 3;overflow:hidden}.library-cover img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block}.library-cover-glow{position:absolute;inset:0;background:linear-gradient(160deg,#0705121a,#0705128c)}.library-card-body{padding:.6rem;display:flex;flex-direction:column;gap:.1rem}.library-grid.inline .library-card-body{padding:.6rem;gap:.1rem}.library-title{margin:0;font-size:.8rem;color:#fef9ff;font-weight:600}.library-grid.inline .library-title{font-size:.8rem}.library-meta{margin:0;color:#c2bed3;font-size:.7rem}.library-grid.inline .library-meta{font-size:.7rem}.library-open{margin-top:.35rem;font-size:.9rem;color:#d0b2ff;font-weight:600}.library-grid.inline .library-open{display:none}.empty-library{margin:0;color:#d8d4eb;text-align:center;padding:2rem 0}.reader-wrapper{position:fixed;inset:0;background:#000;z-index:999;display:flex;align-items:center;justify-content:center;overflow:hidden;height:100vh;height:100dvh}.reader-close{position:absolute;top:1.5rem;right:1.5rem;width:3rem;height:3rem;border-radius:50%;background:#0000004d;border:1px solid rgba(255,255,255,.2);color:#fff;font-size:1.2rem;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:100;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:background .2s ease}.reader-close:hover{background:#0009}.page-stage{width:100%;height:100%;position:relative;touch-action:pan-y;overflow:hidden}.page-spread{width:100%;height:100%;position:relative;overflow:hidden;background:#000}.page-spread{width:100%;height:100%;position:relative;overflow:hidden;background:#050014;display:flex;flex-direction:column;max-height:100%;max-height:100dvh}.visual-panel{position:relative;width:100%;overflow:hidden;transition:all .5s ease}.visual-panel.clouds-active:before{content:"";position:absolute;inset:-10%;pointer-events:none;background:radial-gradient(circle at 10% 20%,#000000e6 0,#0000 55%),radial-gradient(circle at 75% 10%,#000000d9 0,#0000 55%),radial-gradient(circle at 20% 80%,#000c 0,#0000 60%),radial-gradient(circle at 90% 65%,#000000d9 0,#0000 55%);filter:blur(18px);opacity:1;transform:scale(1.05);animation:dreamClouds 1s ease-out forwards}.text-panel{position:relative;width:100%;display:flex;flex-direction:column;padding:1.5rem 2rem 2.5rem;z-index:10;transition:all .5s ease}.page-content{max-width:800px;margin:0 auto;width:100%;animation:fadeIn .8s ease-out;text-shadow:0 2px 10px rgba(0,0,0,.7)}.layout-cover .visual-panel{position:absolute;inset:0;height:100%}.layout-cover .visual-panel img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block}.layout-cover .text-panel{position:absolute;inset:0;height:100%;background:radial-gradient(circle,#0003,#000000b3);justify-content:center;align-items:center;text-align:center;overflow:hidden;max-height:100%;padding-top:max(1.5rem,env(safe-area-inset-top));padding-bottom:max(2.5rem,env(safe-area-inset-bottom))}.layout-cover .page-content{height:100%}.cover-layout-container{height:100%;display:flex;flex-direction:column;justify-content:space-between}.cover-text{margin-top:15vh}.cover-footer{font-size:.9rem;color:#ffffffb3;text-transform:uppercase;letter-spacing:.2em;margin-bottom:1rem}.layout-split .visual-panel{flex:1 1 60%;min-height:40vh;min-height:40dvh}.layout-split .visual-panel img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.layout-split .text-panel{flex:0 1 auto;min-height:30%;max-height:50%;justify-content:flex-start}.layout-split.text-bottom{flex-direction:column}.layout-split.text-bottom .visual-panel{mask-image:linear-gradient(to bottom,black 65%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,black 65%,transparent 100%)}.layout-split.text-bottom .text-panel{margin-top:0}.layout-split.text-top{flex-direction:column-reverse}.layout-split.text-top .visual-panel{mask-image:linear-gradient(to top,black 65%,transparent 100%);-webkit-mask-image:linear-gradient(to top,black 65%,transparent 100%)}.layout-split.text-top .text-panel{margin-bottom:0;padding-top:6rem}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.page-image.atmospheric-image{opacity:0;filter:blur(18px);transform:scale(1.04);transform-origin:center center;will-change:opacity,transform,filter}.page-image.atmospheric-image.is-loaded{animation:cloudReveal .4s ease-out forwards}@keyframes cloudReveal{0%{opacity:0;filter:blur(18px);transform:scale(1.06) translateY(8px)}55%{opacity:.7;filter:blur(10px);transform:scale(1.03) translateY(0)}to{opacity:1;filter:blur(0);transform:scale(1)}}@keyframes dreamClouds{0%{opacity:1;transform:scale(1.08) translateY(8px);filter:blur(20px)}50%{opacity:.7;transform:scale(1.03) translateY(0);filter:blur(14px)}to{opacity:0;transform:scale(1);filter:blur(0)}}.cover-eyebrow{font-size:.9rem;text-transform:uppercase;letter-spacing:.4em;color:#ffffffe6;margin-bottom:1rem}.cover-title{font-family:Playfair Display,serif;font-size:clamp(2.5rem,6vw,4.5rem);color:#fff;margin:0;line-height:1.1}.page-body{font-size:clamp(1.2rem,2.5vw,1.5rem);line-height:1.6;color:#fff;font-weight:500;margin:0}.page-body.early-reader{font-size:clamp(1.5rem,3.5vw,2.2rem);line-height:1.6}.page-moral{margin-top:2rem;display:inline-block;background:#ffffff26;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:1rem 1.5rem;border-radius:16px;border:1px solid rgba(255,255,255,.2);font-size:1rem;color:#feb}.page-moral.early-reader{font-size:1.3rem}.moral-icon{margin-right:.5rem}.nav-arrow{position:absolute;top:50%;transform:translateY(-50%);background:transparent;border:none;color:#ffffff4d;font-size:4rem;padding:2rem;cursor:pointer;z-index:50;transition:color .2s ease,transform .2s ease;font-family:Playfair Display,serif;line-height:0}.nav-arrow:hover:not(.disabled){color:#ffffffe6;transform:translateY(-50%) scale(1.1)}.nav-arrow.prev{left:0}.nav-arrow.next{right:0}.nav-arrow.disabled{opacity:0;pointer-events:none}.page-spread.turn-forward,.page-spread.turn-back{animation:turnDreamy .8s ease-out}@keyframes turnDreamy{0%{opacity:0;filter:blur(8px)}to{opacity:1;filter:blur(0)}}@media(max-width:640px){.layout-split .visual-panel{position:absolute;inset:0;height:100%;min-height:unset;flex:unset}.layout-split .visual-panel img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.layout-split .text-panel{position:absolute;inset:0;height:100%;min-height:unset;max-height:unset;flex:unset;background:linear-gradient(to top,rgba(0,0,0,.85) 0%,rgba(0,0,0,.5) 40%,transparent 70%);justify-content:flex-end;align-items:center;padding:1rem 1.25rem calc(3.5rem + env(safe-area-inset-bottom));overflow:visible}.layout-split.text-top .text-panel{background:linear-gradient(to bottom,rgba(0,0,0,.85) 0%,rgba(0,0,0,.5) 40%,transparent 70%);justify-content:flex-start;padding:calc(5rem + env(safe-area-inset-top)) 1.25rem 1rem}.layout-split.text-bottom .visual-panel,.layout-split.text-top .visual-panel{mask-image:none;-webkit-mask-image:none}.layout-split.adventure .visual-panel{height:55%;inset:0 0 auto;mask-image:linear-gradient(to bottom,black 40%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,black 40%,transparent 100%)}.layout-split.adventure .text-panel{background:linear-gradient(to top,rgba(5,0,20,1) 0%,rgba(5,0,20,.98) 35%,rgba(5,0,20,.85) 55%,transparent 80%)}.layout-split.adventure.text-top .visual-panel{inset:auto 0 0;mask-image:linear-gradient(to top,black 40%,transparent 100%);-webkit-mask-image:linear-gradient(to top,black 40%,transparent 100%)}.layout-split.adventure.text-top .text-panel{background:linear-gradient(to bottom,rgba(5,0,20,1) 0%,rgba(5,0,20,.98) 35%,rgba(5,0,20,.85) 55%,transparent 80%)}.page-body{font-size:.95rem;line-height:1.45}.page-body.early-reader{font-size:1.25rem;line-height:1.5}.page-content{padding-bottom:0}.nav-arrow{display:block;font-size:2rem;padding:1rem;background:#0000004d;border-radius:50%;margin:0 .5rem}.reader-close{top:max(.75rem,env(safe-area-inset-top));right:max(.75rem,env(safe-area-inset-right));width:2.5rem;height:2.5rem;font-size:1rem}.adventure-choices{margin-top:.75rem;gap:.4rem}.choice-btn{padding:.6rem .9rem;font-size:.8rem;border-radius:12px;background:#0c0819d9}.custom-choice-wrapper{gap:.4rem}.custom-choice-input{padding:.6rem .9rem;font-size:.85rem;border-radius:12px}.custom-choice-submit{padding:0 1rem;border-radius:12px;font-size:.85rem}.page-moral{margin-top:.75rem;padding:.6rem 1rem;font-size:.85rem}.page-moral.early-reader{font-size:1.1rem}}@media(max-width:380px){.page-body{font-size:.85rem;line-height:1.4}.page-body.early-reader{font-size:1.1rem;line-height:1.45}.cover-title{font-size:clamp(1.8rem,8vw,2.5rem)}.choice-btn{padding:.5rem .75rem;font-size:.75rem}.custom-choice-input{padding:.5rem .75rem;font-size:.8rem}.page-moral{padding:.5rem .75rem;font-size:.8rem;margin-top:.5rem}.page-moral.early-reader{font-size:1rem}.adventure-choices{gap:.3rem}}@media(max-height:500px)and (orientation:landscape){.layout-split .text-panel{padding:.75rem 1.5rem calc(2rem + env(safe-area-inset-bottom))}.layout-split.text-top .text-panel{padding:calc(2rem + env(safe-area-inset-top)) 1.5rem .75rem}.page-body{font-size:.9rem}.choice-btn{padding:.5rem .8rem;font-size:.75rem}}.loading-screen{position:fixed;inset:0;background:#060312;z-index:2000;display:flex;flex-direction:column;align-items:center;justify-content:center}.loading-card{margin-top:8rem;background:#ffffff0d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:1rem 1.5rem;max-width:360px;animation:fadeIn 1s ease-in}.loading-disclaimer{margin:0;color:#c2bed3;font-size:.8rem;text-align:center;opacity:.8;line-height:1.5}.loading-dial-wrapper{position:relative;width:320px;height:320px;display:flex;align-items:center;justify-content:center}.loading-content{position:absolute;width:220px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;z-index:10}.loading-status{font-family:Playfair Display,serif;font-size:1.6rem;color:#fff;margin:0;text-shadow:0 0 20px rgba(177,107,255,.5);animation:pulseText 2s ease-in-out infinite}.loading-sub{font-size:.85rem;text-transform:uppercase;letter-spacing:.2em;color:#b18bff;opacity:.8}.dial-svg{width:100%;height:100%;transform:rotate(-90deg)}.dial-track{fill:none;stroke:#ffffff0d;stroke-width:4}.dial-indicator{fill:none;stroke:url(#dialGradient);stroke-width:4;stroke-linecap:round;stroke-dasharray:942;stroke-dashoffset:942;animation:fillProgress 8s ease-out forwards infinite}.dial-spinner{position:absolute;inset:-20px;border-radius:50%;border:2px solid transparent;border-top-color:#b16bff4d;border-right-color:#b16bff1a;animation:spinRing 3s linear infinite}@keyframes fillProgress{0%{stroke-dashoffset:942}to{stroke-dashoffset:0}}@keyframes spinRing{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.inline-loading-wheel{position:relative;width:80px;height:80px;border-radius:50%;display:flex;align-items:center;justify-content:center}.inline-loading-ring{position:absolute;inset:0;border-radius:50%;border:2px solid transparent;border-top-color:#b16bffb3;border-right-color:#b16bff40;animation:spinRing 2.2s linear infinite}.inline-loading-text{position:relative;font-family:Playfair Display,serif;font-size:.85rem;color:#fff;letter-spacing:.08em}@keyframes pulseText{0%,to{opacity:1;transform:scale(1)}50%{opacity:.8;transform:scale(.98)}}.adventure-choices{margin-top:1.5rem;display:flex;flex-direction:column;gap:.8rem;pointer-events:auto;width:100%;max-width:600px;margin-left:auto;margin-right:auto}.choice-btn{padding:1rem 1.5rem;background:#0c0819bf;border:1px solid rgba(177,107,255,.3);border-radius:16px;cursor:pointer;color:#e8e4ff;font-weight:500;font-size:1rem;text-align:left;transition:all .2s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 4px 20px #0003}.choice-btn:hover{background:#1e1432d9;border-color:#b16bffb3;transform:translateY(-2px);color:#fff;box-shadow:0 6px 25px #b16bff33}.custom-choice-wrapper{display:flex;gap:.5rem;margin-top:.5rem}.custom-choice-input{flex:1;padding:.9rem 1.25rem;border-radius:16px;border:1px solid rgba(255,255,255,.1);background:#0c081999;color:#f7f7ff;font-size:1rem;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:border .2s ease}.custom-choice-input:focus{outline:none;border-color:#c2a6ffe6}.custom-choice-input::-moz-placeholder{color:#fff6}.custom-choice-input::placeholder{color:#fff6}.custom-choice-submit{padding:0 1.4rem;background:linear-gradient(120deg,#b16bff,#ff8add);color:#060312;border:none;border-radius:16px;cursor:pointer;font-weight:700;transition:transform .2s ease}.custom-choice-submit:hover{transform:translateY(-2px)}.modal-overlay{position:fixed;inset:0;background:#000000b3;z-index:3000;display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);animation:fadeIn .2s ease;padding:1rem}.modal-content{background:#211334e6;border:1px solid rgba(202,180,255,.2);border-radius:24px;padding:2rem;width:100%;max-width:600px;box-shadow:0 25px 60px #000c;animation:slideUp .3s ease-out;text-align:center;max-height:90vh;max-height:90dvh;overflow-y:auto;display:flex;flex-direction:column}.modal-actions{display:flex;align-items:center;justify-content:center;gap:1rem;margin-top:1.5rem;width:100%}.modal-actions button{flex:1;justify-content:center}@media(max-width:600px){.modal-actions{gap:.75rem}}.welcome-modal{text-align:center}.welcome-header{margin-bottom:2rem;flex-shrink:0}.welcome-eyebrow{color:#b16bff;margin-bottom:.5rem}.welcome-title{font-size:2rem;margin-bottom:.5rem;line-height:1.2;color:#fff}.welcome-intro{color:#c2bed3;line-height:1.6;margin-top:.5rem}.welcome-grid{display:grid;gap:1.5rem;text-align:left;margin-bottom:2rem}.welcome-feature{display:flex;gap:1rem;align-items:center}.welcome-feature-icon{padding:.8rem;border-radius:12px;height:-moz-fit-content;height:fit-content;display:flex;align-items:center;justify-content:center;flex-shrink:0}.welcome-feature-text h3{font-size:1.1rem;margin-bottom:.3rem;color:#fff}.welcome-feature-text p{font-size:.9rem;color:#c2bed3;line-height:1.5;margin:0}.welcome-gift{background:linear-gradient(135deg,#b16bff33,#0c081999);border-radius:16px;padding:1.5rem;margin-bottom:2rem;border:1px solid rgba(177,107,255,.3);display:flex;align-items:center;gap:1rem;justify-content:center;flex-shrink:0}.welcome-gift-icon{background:gold;color:#000;border-radius:50%;width:48px;height:48px;display:flex;align-items:center;justify-content:center;box-shadow:0 0 20px #ffd70066;flex-shrink:0}.welcome-gift-text{text-align:left}.welcome-gift-title{font-weight:700;font-size:1.1rem;color:gold}.welcome-gift-subtitle{font-size:.9rem;color:#e0e0e0}.welcome-cta{width:100%;padding:1rem;font-size:1.1rem;display:flex;justify-content:center;gap:.5rem;align-items:center;margin-top:auto}@media(max-width:600px){.modal-content{padding:1.5rem 1rem;max-height:85vh}.welcome-header{margin-bottom:1.5rem}.welcome-title{font-size:1.6rem}.welcome-grid{gap:1.25rem;margin-bottom:1.5rem}.welcome-feature{gap:.8rem}.welcome-feature-icon{padding:.6rem}.welcome-feature-icon svg{width:20px;height:20px}.welcome-feature-text h3{font-size:1rem}.welcome-feature-text p{font-size:.85rem}.welcome-gift{padding:1rem;margin-bottom:1.5rem;flex-direction:row;text-align:left}.welcome-gift-icon{width:40px;height:40px}.welcome-gift-icon svg{width:20px;height:20px}.welcome-gift-title{font-size:1rem}.welcome-cta{padding:.8rem;font-size:1rem}}.login-screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;background-image:url(/welcome.png);background-size:cover;background-position:center;position:relative;padding:2rem}.login-overlay{position:absolute;inset:0;background:linear-gradient(to bottom,#06031266,#060312d9 60%,#060312);z-index:0}.login-content{position:relative;z-index:1;max-width:600px;width:100%;text-align:center;display:flex;flex-direction:column;gap:2rem;background:#180d2a99;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.1);border-radius:32px;padding:3rem 2rem;box-shadow:0 25px 50px -12px #00000080}.login-features{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;text-align:left;margin-top:1rem}.feature-item{display:flex;flex-direction:column;gap:.5rem}.feature-icon{font-size:1.5rem;margin-bottom:.2rem}.feature-title{font-weight:700;color:#fff;font-size:1rem}.feature-desc{font-size:.85rem;color:#c2bed3;line-height:1.4}@media(max-width:600px){.login-screen{padding:1rem;justify-content:flex-end}.login-content{padding:1.5rem;gap:1.5rem;border-radius:24px;background:#180d2acc}.login-content .hero-title{font-size:2.2rem!important}.login-features{grid-template-columns:1fr 1fr;gap:1rem;text-align:center}.feature-item{align-items:center;background:#ffffff0d;padding:.8rem;border-radius:16px}.feature-icon{font-size:1.2rem}.feature-title{font-size:.8rem}.feature-desc{display:none}.cta{width:100%}}.header-actions-desktop{display:flex}.header-actions-mobile{display:none}@media(max-width:640px){.header-actions-desktop{display:none!important}.header-actions-mobile{display:flex!important}}.sidebar-overlay{position:fixed;inset:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:2500;animation:fadeIn .3s ease-out}.sidebar-menu{position:fixed;top:0;right:0;bottom:0;width:85%;max-width:320px;background:#180d2af2;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-left:1px solid rgba(255,255,255,.1);z-index:2501;display:flex;flex-direction:column;animation:slideInRight .3s cubic-bezier(.16,1,.3,1);box-shadow:-10px 0 40px #00000080}.sidebar-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid rgba(255,255,255,.08)}.sidebar-title{margin:0;font-family:Playfair Display,serif;font-size:1.5rem;color:#fff}.sidebar-close{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);color:#c2bed3;cursor:pointer;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;transition:all .2s ease}.sidebar-close:hover{background:#ffffff26;color:#fff}.sidebar-content{flex:1;padding:1.5rem;display:flex;flex-direction:column;gap:2rem;overflow-y:auto}.sidebar-user-info{display:flex;align-items:center;gap:1rem;padding:1rem;background:#ffffff0d;border:1px solid rgba(255,255,255,.05);border-radius:16px}.sidebar-user-avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#b16bff,#ff8add);color:#000;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:1.2rem;box-shadow:0 4px 10px #b16bff4d}.sidebar-user-details{display:flex;flex-direction:column;overflow:hidden}.sidebar-user-name{color:#fff;font-weight:600;font-size:1rem}.sidebar-nav{display:flex;flex-direction:column;gap:.8rem}.sidebar-nav-item{display:flex;align-items:center;gap:1rem;padding:1rem 1.2rem;background:transparent;border:1px solid rgba(255,255,255,.1);border-radius:16px;color:#e8e4ff;font-size:1rem;font-weight:500;cursor:pointer;transition:all .2s ease;text-align:left}.sidebar-nav-item:hover{background:#ffffff0d;border-color:#b16bff80;color:#fff;transform:translate(4px)}.sidebar-nav-item.danger{color:#ff9bad;border-color:#ff4b4b33;margin-top:auto}.sidebar-nav-item.danger:hover{background:#ff4b4b1a;border-color:#ff4b4b80}.sidebar-footer{padding:1.5rem;border-top:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;gap:.8rem;color:#c2bed3;background:#0003}@keyframes slideInRight{0%{transform:translate(100%)}to{transform:translate(0)}}
