@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700&display=swap";:root{--bg-paper: #fef9f3;--bg-subtle: #f5ead8;--bg-gradient: linear-gradient(180deg, #fef9f3 0%, #fff4e0 100%);--primary: #7ba05b;--primary-dark: #5a7a45;--secondary: #e89b6c;--secondary-dark: #d67d4d;--accent: #f4d58d;--accent-blue: #85b8d4;--text-main: #4a5d3b;--text-muted: #8b9480;--card-bg: #fffef9;--card-border: #f4d58d;--card-shadow: 0 4px 6px rgba(74, 93, 59, .08);--card-shadow-hover: 0 10px 20px rgba(74, 93, 59, .12);--font-heading: "Outfit", sans-serif;--font-body: "Inter", sans-serif;--radius: 16px}*,*:before,*:after{box-sizing:border-box}body{margin:0;font-family:var(--font-body);background-color:var(--bg-paper);color:var(--text-main);min-height:100vh;-webkit-font-smoothing:antialiased;line-height:1.6}#root{max-width:1200px;margin:0 auto;padding:2rem;text-align:center}h1,h2,h3,h4,h5,h6{font-family:var(--font-heading);color:var(--text-main);margin-top:0;font-weight:700}h1{font-size:3rem;color:var(--primary-dark);margin-bottom:1.5rem;letter-spacing:-.02em}.card{background:var(--card-bg);border:1px solid var(--card-border);border-radius:var(--radius);padding:2rem;box-shadow:var(--card-shadow);transition:box-shadow .2s ease,border-color .2s ease;position:relative;overflow:hidden}.card:hover{box-shadow:var(--card-shadow-hover);border-color:var(--primary)}button{font-family:var(--font-heading);font-weight:600;border:none;border-radius:8px;padding:.75em 1.5em;font-size:1rem;cursor:pointer;transition:all .2s ease;background-color:var(--primary);color:#fff;box-shadow:0 2px 4px #0000001a}button:hover{background-color:var(--primary-dark);box-shadow:0 4px 6px #00000026}button.secondary{background-color:transparent;border:2px solid var(--card-border);color:var(--text-muted);box-shadow:none}button.secondary:hover{border-color:var(--secondary);color:var(--secondary);background-color:#fff5f2}a{color:var(--primary-dark);text-decoration:none;font-weight:500;transition:color .2s}a:hover{color:var(--secondary);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:2px}input,textarea,select{background:var(--card-bg);border:2px solid var(--card-border);border-radius:8px;padding:.8rem 1rem;color:var(--text-main);font-family:var(--font-body);font-size:1rem;width:100%;transition:border-color .2s}input:focus,textarea:focus,select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #84a98c33}.main-navigation{background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);position:sticky;top:0;z-index:1000;box-shadow:0 2px 10px #0000000d;padding:.8rem 1.5rem}.nav-container{max-width:1200px;margin:0 auto;display:flex;justify-content:flex-start;align-items:center;gap:3rem}.nav-logo{font-family:var(--font-heading);font-size:1.5rem;font-weight:700;color:var(--primary-dark);text-decoration:none;display:flex;align-items:center;gap:.5rem;transition:none}.nav-logo:hover{color:var(--primary-dark);text-decoration:none}.nav-links{display:flex;gap:2rem;align-items:center}.nav-link{text-decoration:none;color:var(--text-main);font-weight:600;font-size:1rem;transition:color .2s;position:relative}.nav-link.active{color:var(--primary)}.nav-link:hover{color:var(--text-main);text-decoration:none}.nav-link.active:after{content:"";position:absolute;bottom:-4px;left:0;width:100%;height:2px;background:var(--primary);border-radius:2px}.desktop-auth{margin-left:auto;display:flex;align-items:center}.mobile-auth-menu-item{display:none}.auth-btn{padding:.5rem 1.2rem;border-radius:20px;font-weight:600;cursor:pointer;transition:all .2s;border:none;font-family:inherit}.auth-btn.login{background:var(--primary);color:#fff}.auth-btn.login:hover{background:var(--primary-dark);transform:translateY(-1px)}.auth-btn.logout{background:#fee2e2;color:#dc2626}.auth-btn.logout:hover{background:#fecaca}.user-profile{display:flex;align-items:center;gap:1rem}.user-avatar{width:36px;height:36px;border-radius:50%;border:2px solid var(--primary)}.hamburger-btn{display:none;background:none;border:none;cursor:pointer;flex-direction:column;gap:5px;padding:5px;-webkit-tap-highlight-color:transparent;outline:none}.hamburger-btn:hover,.hamburger-btn:active,.hamburger-btn:focus{background:none;outline:none;box-shadow:none}.hamburger-btn span{display:block;width:25px;height:3px;background-color:var(--text-main);border-radius:3px;transition:all .3s}.hamburger-btn.open span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}.hamburger-btn.open span:nth-child(2){opacity:0}.hamburger-btn.open span:nth-child(3){transform:rotate(-45deg) translate(7px,-6px)}.mobile-auth{display:none}.story-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:2rem;padding:1rem 0}.badge{position:absolute;top:15px;right:15px;background:var(--accent-blue);color:#1d3557;padding:.25rem .75rem;border-radius:20px;font-size:.75rem;font-weight:700;box-shadow:0 2px 4px #0000000d;z-index:2;letter-spacing:.05em;text-transform:uppercase}.card-actions{margin-top:auto;display:flex;gap:.5rem;justify-content:flex-end;padding-top:1rem}.card-action-btn{background:transparent;border:none;font-size:1.2rem;padding:.5rem;cursor:pointer;border-radius:8px;transition:all .2s ease;box-shadow:none;width:auto;min-width:40px;height:40px;display:flex;align-items:center;justify-content:center}.card-action-btn:hover{background:var(--bg-subtle);transform:scale(1.1)}.card-action-delete:hover{background:#ffe5e5}.share-menu{position:absolute;bottom:100%;right:0;margin-bottom:.5rem;background:var(--card-bg);border:1px solid var(--card-border);border-radius:8px;box-shadow:0 4px 12px #0000001a;padding:.5rem;min-width:180px;z-index:10;display:flex;flex-direction:column;gap:.25rem}.share-menu button{width:100%;text-align:left;background:transparent;box-shadow:none;font-size:.9rem;border-radius:6px;color:var(--text-main);padding:.5rem .75rem}.share-menu button:hover{background:var(--bg-subtle);transform:none}.emoji-icon{font-size:3.5rem;margin-bottom:1rem;display:inline-block}.text-muted{color:var(--text-muted);line-height:1.6}.error-banner{grid-column:1/-1;padding:1rem;background:#fff5f5;border:1px solid #feb2b2;color:#c53030;border-radius:8px;margin-bottom:1rem}.empty-state{grid-column:1/-1;text-align:center;color:var(--text-muted);padding:4rem 0;background:var(--bg-subtle);border-radius:var(--radius);border:2px dashed var(--card-border)}.loading-state{text-align:center;margin-top:4rem;color:var(--text-muted);font-family:var(--font-heading);font-size:1.2rem}.hero-banner{width:100%;margin-bottom:3rem;border-radius:var(--radius);overflow:hidden;box-shadow:0 8px 16px #2646531a}.banner-image{width:100%;height:auto;display:block;border-radius:var(--radius)}@media(max-width:768px){.hero-banner{margin-bottom:2rem;border-radius:12px}.banner-image{border-radius:12px}}@media(max-width:480px){.hero-banner{margin-bottom:1.5rem;border-radius:8px}.banner-image{border-radius:8px}}@media(max-width:768px){#root,.card{padding:1rem}.public-story-container{padding:0;max-width:none!important}.character-gallery-container{padding:0}.story-content-wrapper{padding:1rem;background:#fff;border-radius:12px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.app-container{padding:1rem}.story-grid{gap:1rem}}.public-story-container{padding:2rem 1rem}.app-container{padding:20px}.memory-game{max-width:100%;margin:0 auto}.game-controls{margin-bottom:15px;display:flex;flex-direction:column;gap:10px;align-items:center;background:#fff;padding:.75rem;border-radius:12px;box-shadow:0 2px 4px #0000000d}.difficulty-selector{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;width:100%}.difficulty-btn{background:#fff;border:1px solid #e5e7eb;color:#4b5563;padding:4px 10px;border-radius:15px;cursor:pointer;font-size:.85rem;font-weight:600;transition:all .2s ease;flex:1;min-width:70px;max-width:100px}.difficulty-btn:hover{border-color:var(--primary);color:var(--primary);background:#f0f9ff}.difficulty-btn.active{background:var(--primary);color:#fff;border-color:var(--primary);box-shadow:0 1px 2px #2563eb33;font-weight:700}.turn-counter{font-size:.9rem;color:#4b5563;background:#f3f4f6;padding:4px 12px;border-radius:12px}.card-grid{display:grid;gap:10px;margin-top:20px;margin-left:auto;margin-right:auto}.card-grid.grid-8{grid-template-columns:repeat(4,1fr);max-width:600px}.card-grid.grid-6{grid-template-columns:repeat(3,1fr);max-width:450px}.card-grid.grid-4{grid-template-columns:repeat(2,1fr);max-width:300px}.card-wrapper{position:relative;width:140px;height:140px}.card-wrapper>div{width:100%;height:100%;position:relative;transition:transform .6s;transform-style:preserve-3d;cursor:pointer}.card-wrapper .flipped{transform:rotateY(180deg)}.card-wrapper .front,.card-wrapper .back{width:100%;height:100%;position:absolute;border-radius:8px;backface-visibility:hidden;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 6px #0000001a}.card-wrapper .front{transform:rotateY(180deg);object-fit:cover;background:#fff;border:2px solid #eee}.card-wrapper .back{background:var(--primary);font-size:2rem;color:#fff;border:2px solid var(--primary-dark)}@media(max-width:480px){.card-grid{gap:8px;max-width:100%!important;padding:0 1rem}.card-grid.grid-8,.card-grid.grid-6,.card-grid.grid-4{grid-template-columns:repeat(2,1fr)}.card-wrapper{width:100%;height:auto;aspect-ratio:1}.card-wrapper .back{font-size:1.5rem}.game-controls{flex-direction:column;gap:.25rem;padding:0 1rem;margin-bottom:1rem}.difficulty-buttons{width:100%;max-width:100%;justify-content:center}.difficulty-buttons button{flex:1;min-width:70px;padding:.85rem .75rem;font-size:.95rem;white-space:nowrap}.game-stats{position:static!important;right:auto;width:100%;text-align:center;font-size:1rem;padding:.5rem .5rem .25rem;border-radius:8px}}.landing-page{padding:2rem 0}.hero-section{width:100%;margin-bottom:2rem;display:flex;justify-content:center}.hero-banner-image{width:100%;height:auto;border-radius:20px;box-shadow:0 10px 30px #0000001a;display:block}.hero-content{position:relative;z-index:2;max-width:800px;padding:2rem}.hero-content h1{font-size:4rem;line-height:1.1;margin-bottom:1.5rem;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.3)}.highlight{color:#a3e635}.highlight:after{display:none}.hero-subtitle{font-size:1.5rem;color:#ffffffe6;margin-bottom:2.5rem;max-width:100%;text-shadow:0 1px 5px rgba(0,0,0,.3)}.hero-actions{display:flex;gap:1rem;justify-content:center}.cta-button{display:inline-block;padding:1rem 2rem;border-radius:30px;font-weight:700;text-decoration:none;transition:transform .2s,box-shadow .2s}.cta-button.primary{background:var(--primary);color:#fff;box-shadow:0 4px 15px #7ba05b4d}.cta-button.secondary{background:#fff;color:var(--text-main);border:2px solid var(--card-border)}.cta-button:hover{transform:translateY(-3px);box-shadow:0 6px 20px #0000001a}.hero-image{flex:1;display:flex;justify-content:center}.floating-image{max-width:100%;height:auto;animation:float 6s ease-in-out infinite;filter:drop-shadow(0 20px 30px rgba(0,0,0,.1))}@keyframes float{0%{transform:translateY(0)}50%{transform:translateY(-20px)}to{transform:translateY(0)}}.features-section{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem;margin-top:1rem}.feature-card{background:#fff;padding:2rem;border-radius:20px;box-shadow:0 10px 30px #0000000d;transition:transform .3s;border:1px solid var(--card-border);text-align:left;display:block;text-decoration:none;cursor:pointer;color:inherit}.feature-card:hover{text-decoration:none;color:inherit;transform:none}.feature-card:hover h3{color:var(--primary-dark)}.feature-card:hover p{color:var(--text-muted)}.feature-card:hover .feature-link{color:var(--primary);text-decoration:none}.feature-icon{font-size:3rem;margin-bottom:1rem}.feature-card h3{font-size:1.5rem;margin-bottom:.5rem;color:var(--primary-dark)}.feature-card p{color:var(--text-muted);margin-bottom:1.5rem}.feature-link{color:var(--primary);font-weight:700;text-decoration:none;display:inline-flex;align-items:center;gap:5px}@media(max-width:768px){.nav-container{gap:1rem;align-items:center;position:relative}.hamburger-btn{display:flex}.nav-links{position:absolute;top:100%;left:0;width:100%;background:#fff;flex-direction:column;padding:1rem 2rem 2rem;box-shadow:0 10px 20px #0000001a;transform:scaleY(0);transform-origin:top;transition:transform .3s ease-in-out;z-index:999;border-top:1px solid var(--card-border)}.nav-links.mobile-open{transform:scaleY(1)}.desktop-auth{display:none}.mobile-auth-menu-item{display:block!important;width:100%;margin-top:.5rem;padding-top:.5rem;border-top:1px solid var(--card-border)}.hero-section{flex-direction:column-reverse;text-align:center;gap:2rem}.hero-content h1{font-size:2.5rem}.hero-actions{justify-content:center}.feature-card{text-align:center}.features-section{gap:1rem}.page-banner{height:200px}.page-title{font-size:2rem}.content-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1.5rem}.page-container{padding:2rem 0 0!important}.page-content{padding:0 0 3rem!important}.nav-container{padding:0 1rem!important;gap:.5rem}.main-navigation{padding:.5rem 0!important}.page-banner{border-radius:0;margin-bottom:1.5rem;width:100%;margin-left:0;margin-right:0}.content-grid,.page-header{padding:0}.story-reader-container{padding:2rem 0!important}.story-content-wrapper{padding:0 1rem}}.story-reader-container{max-width:800px;margin:0 auto;padding:2rem 1rem;text-align:left}.story-title-section{text-align:center;margin-bottom:2rem}.story-title-section h1{font-size:2.5rem;margin-bottom:.5rem}.page-container{width:100%;padding:2rem 0 0}.form-row-responsive{display:grid;grid-template-columns:1fr 1fr;gap:1rem}@media(max-width:768px){.form-row-responsive{grid-template-columns:1fr}}.page-banner{width:100%;height:300px;overflow:hidden;margin-bottom:1rem;border-radius:20px;box-shadow:0 10px 30px #0000001a}.page-banner-image{width:100%;height:100%;object-fit:cover;object-position:center 90%;display:block}.page-content{max-width:1200px;margin:0 auto;padding:0 1rem 3rem}.nav-container{padding:0 1rem}.main-navigation{padding:.8rem 0}.game-controls{position:relative;display:flex;justify-content:center;align-items:center;margin-bottom:2rem}.game-stats{position:absolute;right:1rem;font-size:1.1rem;font-weight:600;color:var(--primary-dark)}.difficulty-buttons{display:flex;gap:.5rem;padding:.5rem;border-radius:12px;position:relative;z-index:10}.difficulty-buttons button{padding:.75rem 1.5rem;background:#fff;color:var(--primary-dark);border:2px solid var(--card-border);border-radius:8px;font-weight:600;cursor:pointer;transition:none;display:flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap;min-width:80px}.difficulty-buttons button.active{background:var(--primary);color:#fff;border-color:var(--primary)}.difficulty-buttons button:hover{background:#fff;color:var(--primary-dark);border-color:var(--card-border)}.difficulty-buttons button.active:hover{background:var(--primary);color:#fff;border-color:var(--primary)}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;flex-wrap:wrap;gap:1rem}.page-title{font-family:var(--font-heading);font-size:2.5rem;color:var(--primary-dark);margin:0}.primary-button{padding:.8rem 1.5rem;background:var(--primary);color:#fff;text-decoration:none;border-radius:8px;font-weight:700;font-family:var(--font-heading);transition:none;box-shadow:0 4px 15px #7ba05b4d;display:inline-block;border:none;cursor:pointer}.primary-button:hover{background:var(--primary);transform:none;box-shadow:0 4px 15px #7ba05b4d;color:#fff;text-decoration:none}.content-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:2rem}.content-tile{background:#fff;padding:2rem;border-radius:20px;box-shadow:0 10px 30px #0000000d;border:1px solid var(--card-border);text-align:center;text-decoration:none;color:inherit;transition:none;position:relative;display:flex;flex-direction:column;align-items:center}.content-tile:hover{transform:none;box-shadow:0 10px 30px #0000000d;text-decoration:none;color:inherit}.content-tile:hover .character-name,.content-tile:hover .character-details,.content-tile:hover .character-personality{color:inherit;text-decoration:none}.character-avatar{width:100%;height:auto;border-radius:12px;margin-bottom:1rem;border:3px solid var(--card-border)}.character-name{font-family:var(--font-heading);font-size:1.3rem;color:var(--primary-dark);margin:.5rem 0}.character-details{color:var(--text-muted);font-size:.95rem;margin:.25rem 0}.character-personality{color:var(--text-muted);font-size:.85rem;font-style:italic;margin:.5rem 0 0}.delete-btn{position:absolute;top:1rem;right:1rem;background:#fee2e2;border:none;border-radius:50%;width:36px;height:36px;cursor:pointer;font-size:1.2rem;transition:all .2s;display:flex;align-items:center;justify-content:center}.delete-btn:hover{background:#fecaca;transform:scale(1.1)}.loading-state,.empty-state{text-align:center;padding:4rem 2rem;color:var(--text-muted)}.empty-state h3{color:var(--primary-dark);margin-bottom:.5rem}.story-emoji{font-size:4rem;margin-bottom:1rem}.story-title{font-family:var(--font-heading);font-size:1.3rem;color:var(--primary-dark);margin:.5rem 0}.story-description{color:var(--text-muted);font-size:.9rem;margin:.5rem 0;line-height:1.4}.story-author{color:var(--text-muted);font-size:.85rem;font-style:italic;margin:.5rem 0 0}.game-emoji{font-size:4rem;margin-bottom:1rem}.game-title{font-family:var(--font-heading);font-size:1.3rem;color:var(--primary-dark);margin:.5rem 0}.game-description{color:var(--text-muted);font-size:.9rem;margin:.5rem 0;line-height:1.4}.card-actions{display:flex;gap:.75rem;margin-top:auto;padding-top:.75rem;justify-content:flex-end;align-items:center}.action-icon{background:#0000000d;border:none;font-size:.9rem;cursor:pointer;padding:.4rem .5rem;border-radius:6px;transition:all .2s;opacity:.6;line-height:1}.action-icon:hover{background:#0000001a;opacity:1;transform:none}.public-icon{cursor:default;background:#4caf501a;color:#4caf50;opacity:1}.public-icon:hover{background:#4caf501a;transform:none}.share-icon:hover{background:#2196f326}.delete-icon:hover{background:#f4433626}@media(max-width:768px){.book-view-toggle{display:none!important}}.detail-page-container{max-width:600px;margin:0 auto;padding:2rem 1rem}.detail-card{background:#fff;border-radius:16px;padding:2rem;box-shadow:0 8px 16px #0000001a;text-align:center}@media(max-width:768px){.detail-page-container{padding:0;max-width:100%}.detail-card{border-radius:0;padding:1.5rem 1rem;box-shadow:none;border-left:none;border-right:none}}
