.header{background:linear-gradient(135deg,var(--primary) 0%,var(--primary-hover) 100%);box-shadow:var(--shadow);position:sticky;top:0;z-index:1000;transition:background .3s ease}.header-container{max-width:1200px;margin:0 auto;padding:1rem 2rem;display:flex;justify-content:space-between;align-items:center}.logo{display:flex;align-items:center;gap:.5rem;text-decoration:none;color:var(--text-primary);font-size:1.5rem;font-weight:700;transition:transform .2s}.logo:hover{transform:scale(1.05)}.logo-icon{font-size:2rem}.logo-text{font-family:Arial,sans-serif;letter-spacing:1px}.nav{display:flex;gap:1.5rem;align-items:center}.nav-link{color:var(--text-primary);text-decoration:none;padding:.5rem 1rem;border-radius:8px;transition:all .3s;background:transparent;border:none;cursor:pointer;font-size:1rem;display:flex;align-items:center;gap:.3rem}.nav-link:hover{background:#fff3;transform:translateY(-2px)}.register-btn{background:#fff3;border:2px solid var(--text-primary)}.register-btn:hover{background:#fff;color:var(--primary)}.settings-icon{font-size:1rem}.logout-btn{background:#ffffff1a}.user-icon{font-size:1.2rem}.admin-link{background:#ffd70033;border:1px solid rgba(255,215,0,.5);color:gold!important}.admin-link:hover{background:#ffd7004d;border-color:#ffd700cc;transform:translateY(-2px)}.admin-icon{font-size:1rem}@media (max-width: 768px){.header-container{flex-direction:column;gap:1rem}.nav{gap:.5rem;flex-wrap:wrap;justify-content:center}.nav-link{padding:.4rem .8rem;font-size:.9rem}}.footer{background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);color:#fff;margin-top:auto;padding:2rem 0 1rem}.footer-container{max-width:1200px;margin:0 auto;padding:0 2rem}.footer-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:2rem;margin-bottom:2rem}.footer-section h3{font-size:1.5rem;margin-bottom:.5rem;font-weight:700}.footer-section h4{font-size:1.1rem;margin-bottom:.8rem;font-weight:600}.footer-section p{margin:.3rem 0;opacity:.9;font-size:.95rem}.footer-section ul{list-style:none;padding:0;margin:0}.footer-section ul li{margin:.5rem 0}.footer-section ul li a{color:#fff;text-decoration:none;opacity:.9;transition:opacity .3s,transform .3s;display:inline-block}.footer-section ul li a:hover{opacity:1;transform:translate(5px)}.footer-bottom{border-top:1px solid rgba(255,255,255,.2);padding-top:1rem;text-align:center}.footer-bottom p{margin:.3rem 0;opacity:.8;font-size:.9rem}@media (max-width: 768px){.footer-content{grid-template-columns:1fr;gap:1.5rem}.footer-section{text-align:center}.footer-section ul li a:hover{transform:none}}.home{min-height:calc(100vh - 200px)}.hero{background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);color:#fff;padding:5rem 2rem;text-align:center}.hero-content{max-width:800px;margin:0 auto}@media (min-width: 768px){.hero-content{max-width:1200px}}.hero-title{font-size:3rem;font-weight:700;margin-bottom:1rem;display:flex;align-items:center;justify-content:center;gap:1rem}.hero-icon{font-size:3.5rem}.hero-subtitle{font-size:1.3rem;margin-bottom:2rem;opacity:.95}.hero-buttons{display:flex;flex-direction:column;gap:1rem;justify-content:center;flex-wrap:wrap}.btn{padding:.8rem 2rem;border-radius:8px;text-decoration:none;font-size:1.1rem;font-weight:600;transition:all .3s;display:inline-block}.btn-primary{background:#fff;color:var(--primary)}.btn-primary:hover{transform:translateY(-3px);box-shadow:0 8px 20px #0003}.btn-secondary{background:transparent;color:#fff;border:2px solid white}.btn-secondary:hover{background:#fff;color:var(--primary)}.btn-large{padding:1rem 2.5rem;font-size:1.2rem}.features{padding:4rem 2rem;background:var(--bg-page)}.features-container{max-width:1200px;margin:0 auto}.section-title{text-align:center;font-size:2.5rem;margin-bottom:3rem;color:var(--text-primary)}.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem}@media (min-width: 1024px){.features-grid{grid-template-columns:repeat(3,1fr)}}@media (min-width: 768px) and (max-width: 1023px){.features-grid{grid-template-columns:repeat(2,1fr)}}.feature-card{background:var(--bg-card);padding:2rem;border-radius:12px;box-shadow:var(--shadow);text-align:center;transition:transform .3s,box-shadow .3s}.feature-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg)}.feature-icon{font-size:3rem;margin-bottom:1rem}.feature-card h3{font-size:1.5rem;margin-bottom:.8rem;color:var(--text-primary)}.feature-card p{color:var(--text-secondary);line-height:1.6}.cta{background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);color:#fff;padding:4rem 2rem;text-align:center}.cta-content{max-width:600px;margin:0 auto}.cta-content h2{font-size:2.5rem;margin-bottom:1rem}.cta-content p{font-size:1.2rem;margin-bottom:2rem;opacity:.95}@media (max-width: 768px){.hero-title{font-size:2rem;flex-direction:column;gap:.5rem}.hero-icon{font-size:2.5rem}.hero-subtitle{font-size:1.1rem}.section-title{font-size:2rem}.features-grid{grid-template-columns:1fr}.cta-content h2{font-size:2rem}}.auth-page{min-height:calc(100vh - 200px);display:flex;align-items:center;justify-content:center;padding:2rem;background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%)}.auth-container{width:100%;max-width:450px}.auth-card{background:var(--bg-card);border-radius:16px;padding:2.5rem;box-shadow:var(--shadow-lg)}.auth-title{font-size:2rem;text-align:center;color:var(--text-primary);margin-bottom:.5rem}.auth-subtitle{text-align:center;color:var(--text-secondary);margin-bottom:2rem}.auth-form,.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;color:var(--text-primary);font-weight:600}.form-group input{width:100%;padding:.8rem;border:2px solid var(--border);border-radius:8px;font-size:1rem;transition:all .3s;box-sizing:border-box}.form-group input:focus{outline:none;border-color:var(--primary);box-shadow:var(--shadow)}.form-group input:disabled{background:var(--bg-panel);cursor:not-allowed}.error-message{background:var(--bg-panel);color:var(--danger);padding:.8rem;border-radius:8px;margin-bottom:1rem;border:1px solid var(--danger);display:flex;align-items:center;gap:.5rem}.auth-submit{width:100%;padding:1rem;background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);color:#fff;border:none;border-radius:8px;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .3s}.auth-submit:hover:not(:disabled){transform:translateY(-2px);box-shadow:var(--shadow-lg)}.auth-submit:disabled{opacity:.6;cursor:not-allowed}.auth-footer{text-align:center;color:var(--text-secondary)}.auth-link{color:var(--primary);text-decoration:none;font-weight:600;margin-left:.5rem}.auth-link:hover{text-decoration:underline}@media (max-width: 768px){.auth-page{padding:1rem}.auth-card{padding:2rem 1.5rem}.auth-title{font-size:1.5rem}}.game-list-page{min-height:calc(100vh - 200px);padding:3rem 2rem;background:var(--bg-color)}.game-list-container{max-width:1400px;margin:0 auto}.page-title{font-size:2.5rem;text-align:center;color:var(--text-primary);margin-bottom:.5rem}.page-subtitle{text-align:center;color:var(--text-secondary);font-size:1.1rem;margin-bottom:3rem}.games-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:2rem}.game-card{background:var(--card-bg);border-radius:12px;padding:2rem;text-decoration:none;color:inherit;box-shadow:0 4px 12px var(--shadow-light);transition:all .3s;display:flex;flex-direction:column;gap:1rem;border:1px solid var(--border)}.game-card:hover{transform:translateY(-8px);box-shadow:0 12px 24px var(--shadow-medium)}.game-thumbnail{font-size:4rem;text-align:center;padding:1rem;background:linear-gradient(135deg,var(--primary-color) 0%,var(--primary-dark) 100%);border-radius:12px}.game-info{flex:1}.game-name{font-size:1.5rem;color:var(--text-primary);margin-bottom:.5rem}.game-description{color:var(--text-secondary);line-height:1.6;margin-bottom:1rem}.game-category{display:inline-block;padding:.4rem .8rem;background:var(--secondary-color);color:var(--primary-color);border-radius:20px;font-size:.9rem;font-weight:600}.game-play-btn{padding:.8rem;background:linear-gradient(135deg,var(--primary-color) 0%,var(--primary-dark) 100%);color:#fff;text-align:center;border-radius:8px;font-weight:600;transition:all .3s}.game-card:hover .game-play-btn{background:linear-gradient(135deg,var(--primary-dark) 0%,var(--primary-color) 100%)}.empty-state{text-align:center;padding:4rem 2rem}.empty-icon{font-size:5rem;margin-bottom:1rem}.empty-state h3{font-size:1.8rem;color:var(--text-primary);margin-bottom:.5rem}.empty-state p{color:var(--text-secondary);font-size:1.1rem}@media (min-width: 1024px){.games-grid{grid-template-columns:repeat(3,1fr);gap:2rem}}@media (max-width: 1023px) and (min-width: 769px){.games-grid{grid-template-columns:repeat(2,1fr);gap:1.5rem}}@media (max-width: 768px){.game-list-page{padding:2rem 1rem}.page-title{font-size:2rem}.games-grid{grid-template-columns:1fr;gap:1.5rem}}.profile-page{min-height:calc(100vh - 200px);padding:3rem 2rem;background:var(--bg-page)}.profile-container{max-width:1000px;margin:0 auto}.profile-header{background:var(--bg-card);border-radius:16px;padding:2rem;box-shadow:var(--shadow);display:flex;align-items:center;gap:2rem;margin-bottom:2rem}.user-avatar{width:100px;height:100px;border-radius:50%;background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);display:flex;align-items:center;justify-content:center;font-size:3rem}.user-name{font-size:2rem;color:var(--text-primary);margin-bottom:.5rem}.user-meta{color:var(--text-secondary);margin:.3rem 0}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-bottom:2rem}.stat-card{background:var(--bg-card);border-radius:12px;padding:2rem;text-align:center;box-shadow:var(--shadow);transition:transform .3s}.stat-card:hover{transform:translateY(-5px)}.stat-icon{font-size:2.5rem;margin-bottom:.5rem}.stat-value{font-size:2.5rem;font-weight:700;color:var(--primary);margin-bottom:.3rem}.stat-label{color:var(--text-secondary);font-size:1rem}.section{background:var(--bg-card);border-radius:16px;padding:2rem;box-shadow:var(--shadow);margin-bottom:2rem}.section-title{font-size:1.8rem;color:var(--text-primary);margin-bottom:1.5rem;padding-bottom:.5rem;border-bottom:2px solid var(--border)}.empty-state{text-align:center;padding:2rem;color:var(--text-secondary)}.btn-primary{display:inline-block;margin-top:1rem;padding:.8rem 2rem;background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);color:#fff;text-decoration:none;border-radius:8px;font-weight:600;transition:transform .3s}.btn-primary:hover{transform:translateY(-2px)}.progress-list{display:flex;flex-direction:column;gap:1rem}.progress-item{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;background:var(--bg-panel);border-radius:8px;transition:background .3s}.progress-item:hover{background:var(--bg-game-stage)}.progress-game{font-size:1.2rem;color:var(--text-primary);margin-bottom:.3rem}.progress-time{color:var(--text-secondary);font-size:.9rem;margin:0}.badge-completed{padding:.5rem 1rem;background:var(--success);color:#fff;border-radius:20px;font-size:.9rem;font-weight:600}.badge-inprogress{padding:.5rem 1rem;background:var(--warning);color:#fff;border-radius:20px;font-size:.9rem;font-weight:600}.achievements-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}.achievement-card{background:linear-gradient(135deg,var(--gold) 0%,var(--warning) 100%);padding:1.5rem;border-radius:12px;text-align:center;box-shadow:var(--shadow);transition:transform .3s}.achievement-card:hover{transform:scale(1.05)}.achievement-icon{font-size:2.5rem;margin-bottom:.5rem}.achievement-name{font-weight:600;color:var(--text-primary);margin-bottom:.3rem}.achievement-time{font-size:.85rem;color:var(--text-secondary)}.loading,.error{text-align:center;padding:3rem;font-size:1.2rem;color:var(--text-secondary)}@media (max-width: 768px){.profile-header{flex-direction:column;text-align:center}.user-name{font-size:1.5rem}.stats-grid{grid-template-columns:1fr}.progress-item{flex-direction:column;gap:1rem;text-align:center}.achievements-grid{grid-template-columns:1fr}}.settings-page{min-height:calc(100vh - 200px);padding:3rem 2rem;background:var(--bg-color)}.settings-container{max-width:900px;margin:0 auto}.settings-header{text-align:center;margin-bottom:3rem}.settings-title{font-size:2.5rem;color:var(--text-primary);margin-bottom:.5rem}.settings-subtitle{color:var(--text-secondary);font-size:1.1rem}.settings-section{background:var(--card-bg);border-radius:16px;padding:2rem;margin-bottom:2rem;box-shadow:0 4px 12px var(--shadow-light)}.section-title{font-size:1.5rem;color:var(--text-primary);margin-bottom:.5rem}.section-description{color:var(--text-secondary);margin-bottom:1.5rem;line-height:1.6}.theme-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1.5rem}.theme-card{position:relative;background:var(--bg-color);border:2px solid var(--border);border-radius:12px;padding:1.5rem;cursor:pointer;transition:all .3s ease}.theme-card:hover{transform:translateY(-4px);box-shadow:0 8px 16px var(--shadow-medium)}.theme-card.active{border-color:var(--primary-color);background:var(--secondary-color)}.theme-icon{font-size:3rem;text-align:center;margin-bottom:1rem}.theme-info{margin-bottom:1rem}.theme-name{font-size:1.2rem;color:var(--text-primary);margin-bottom:.5rem}.theme-description{font-size:.9rem;color:var(--text-secondary);line-height:1.4}.theme-preview{display:flex;gap:.5rem;justify-content:center;margin-top:1rem}.preview-dot{width:24px;height:24px;border-radius:50%;border:2px solid var(--border-color)}.active-badge{position:absolute;top:1rem;right:1rem;background:var(--primary-color);color:#fff;padding:.3rem .8rem;border-radius:20px;font-size:.85rem;font-weight:600}.settings-actions{display:flex;flex-direction:column;align-items:center;gap:1rem;margin:2rem 0}.save-button{padding:1rem 3rem;font-size:1.1rem;font-weight:600;color:#fff;background:linear-gradient(135deg,var(--primary-color) 0%,var(--primary-dark) 100%);border:none;border-radius:8px;cursor:pointer;transition:all .3s ease}.save-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 16px var(--shadow-medium)}.save-button:disabled{opacity:.6;cursor:not-allowed}.save-message{padding:.8rem 1.5rem;border-radius:8px;font-weight:600;animation:fadeIn .3s ease-in}.save-message.success{background:#d4edda;color:#155724;border:1px solid #c3e6cb}.save-message.error{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb}.tips-list{list-style:none;padding:0}.tips-list li{padding:.8rem 0;color:var(--text-secondary);line-height:1.6;border-bottom:1px solid var(--border-color)}.tips-list li:last-child{border-bottom:none}.tips-list li:before{content:"→ ";color:var(--primary-color);font-weight:700;margin-right:.5rem}@media (max-width: 768px){.settings-page{padding:2rem 1rem}.settings-title{font-size:2rem}.theme-grid{grid-template-columns:1fr}.save-button{width:100%}}.admin-container{max-width:1400px;margin:0 auto;padding:2rem}.admin-title{font-size:2rem;margin-bottom:.5rem;color:var(--text-primary)}.admin-subtitle{font-size:1rem;color:var(--text-secondary);margin-bottom:2rem}.loading,.error,.empty-state{text-align:center;padding:3rem;font-size:1.1rem;color:var(--text-secondary)}.error{color:#ff6b6b}.table-wrapper{overflow-x:auto;background:var(--surface-color);border-radius:12px;box-shadow:0 2px 8px #0000001a}.progress-table{width:100%;border-collapse:collapse;font-size:.95rem}.progress-table thead{background:var(--primary-color);color:#fff}.progress-table th{padding:1rem;text-align:left;font-weight:600}.progress-table tbody tr{border-bottom:1px solid var(--border-color);transition:background-color .2s}.progress-table tbody tr:hover{background-color:var(--hover-color)}.progress-table td{padding:1rem}.status-badge{display:inline-block;padding:.25rem .75rem;border-radius:20px;font-size:.85rem;font-weight:500}.status-badge.completed{background-color:#d4edda;color:#155724}.status-badge.in-progress{background-color:#fff3cd;color:#856404}.view-data-btn{background:var(--primary-color);color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;cursor:pointer;font-size:.9rem;transition:all .2s}.view-data-btn:hover{background:var(--primary-hover);transform:translateY(-1px)}.expanded-row{background-color:var(--background-color)}.data-details{padding:1.5rem}.data-details h4{margin-top:0;margin-bottom:1rem;color:var(--text-primary)}.data-details pre{background:#f5f5f5;padding:1rem;border-radius:6px;overflow-x:auto;font-size:.85rem;line-height:1.6;border:1px solid var(--border-color)}.meta-info{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border-color)}.meta-info p{margin:.5rem 0;color:var(--text-secondary);font-size:.9rem}.meta-info strong{color:var(--text-primary)}@media (max-width: 768px){.admin-container{padding:1rem}.progress-table{font-size:.85rem}.progress-table th,.progress-table td{padding:.75rem .5rem}.admin-title{font-size:1.5rem}}.tutorial-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem;animation:fadeIn .2s ease-out}.tutorial-modal-card{background:var(--card-bg, white);border-radius:16px;box-shadow:0 20px 60px #0000004d;max-width:600px;width:100%;max-height:80vh;overflow-y:auto;animation:slideUp .3s ease-out}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.tutorial-modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem 2rem;border-bottom:1px solid var(--border-color, #e0e0e0)}.tutorial-modal-title{margin:0;font-size:1.5rem;color:var(--text-primary, #333);font-weight:600}.tutorial-modal-close{background:none;border:none;font-size:1.5rem;color:var(--text-secondary, #666);cursor:pointer;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .2s}.tutorial-modal-close:hover{background:var(--hover-bg, #f0f0f0);color:var(--text-primary, #333)}.tutorial-modal-content{padding:2rem;color:var(--text-primary, #333);line-height:1.8}.tutorial-modal-content h3{margin-top:1.5rem;margin-bottom:.8rem;color:var(--text-primary, #333);font-size:1.2rem}.tutorial-modal-content h3:first-child{margin-top:0}.tutorial-modal-content p{margin-bottom:1rem;color:var(--text-secondary, #666)}.tutorial-modal-content ul,.tutorial-modal-content ol{margin-bottom:1rem;padding-left:1.5rem}.tutorial-modal-content li{margin-bottom:.5rem;color:var(--text-secondary, #666)}.tutorial-modal-content strong{color:var(--primary-color, #667eea);font-weight:600}.tutorial-modal-content code{background:var(--code-bg, #f5f5f5);padding:.2rem .4rem;border-radius:4px;font-family:Courier New,monospace;font-size:.9em}@media (max-width: 768px){.tutorial-modal-card{max-height:90vh}.tutorial-modal-header{padding:1rem 1.5rem}.tutorial-modal-title{font-size:1.3rem}.tutorial-modal-content{padding:1.5rem}}.hero-clicker-page{width:100%;min-height:calc(100vh - 64px);display:flex;flex-direction:column;align-items:center;padding:20px 0;background:var(--bg-page);color:var(--text-primary);box-sizing:border-box}.game-header{width:90%;max-width:1800px;display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;gap:1rem}.game-title{flex:1;text-align:center;font-size:1.8rem;color:var(--gold);margin:0;text-shadow:0 2px 8px rgba(251,191,36,.5)}.tutorial-button{background:var(--primary);color:#fff;border:none;padding:.6rem 1.2rem;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .3s}.tutorial-button:hover{background:var(--primary-hover);transform:translateY(-2px)}.message{width:90%;max-width:1800px;background:var(--success);color:#fff;padding:.7rem;border-radius:8px;text-align:center;margin-bottom:1rem;animation:slideDown .3s ease-out;font-weight:600;font-size:.95rem}.dashboard-container{width:90%;max-width:1800px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:1.5rem;min-height:600px;margin-bottom:1rem}.col-left,.col-mid,.col-right{background:var(--bg-card);border-radius:16px;padding:1rem;display:flex;flex-direction:column;border:1px solid var(--border);box-shadow:var(--shadow)}.col-left.upgrade-panel{overflow:hidden}.tabs{display:flex;gap:10px;margin-bottom:1rem;flex-shrink:0}.tab{flex:1;padding:.7rem;background:var(--bg-panel);border:1px solid var(--border);border-radius:8px;font-size:.9rem;font-weight:600;color:var(--text-secondary);cursor:pointer;transition:all .2s}.tab:hover{border-color:var(--primary);color:var(--primary)}.tab.active{background:var(--primary);color:#fff;border-color:var(--primary)}.upgrade-list-container{flex:1;overflow-y:auto;padding-right:5px}.upgrade-list-container::-webkit-scrollbar{width:6px}.upgrade-list-container::-webkit-scrollbar-track{background:var(--bg-panel);border-radius:4px}.upgrade-list-container::-webkit-scrollbar-thumb{background:var(--border-dark);border-radius:4px}.upgrade-list-container::-webkit-scrollbar-thumb:hover{background:var(--primary)}.upgrade-card{display:flex;align-items:center;padding:12px;background:var(--bg-panel);border-radius:10px;margin-bottom:10px;border:1px solid var(--border);transition:all .2s}.upgrade-card.clickable{cursor:pointer}.upgrade-card.clickable:hover:not(.disabled){background:var(--bg-game-stage);border-color:var(--primary);transform:translateY(-2px);box-shadow:var(--shadow-lg)}.upgrade-card.disabled{opacity:.6;cursor:not-allowed}.card-icon{font-size:2rem;margin-right:12px;flex-shrink:0}.card-info{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}.card-header{display:flex;justify-content:space-between;align-items:center;gap:8px}.card-name{font-weight:600;font-size:.95rem;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-cost{color:var(--gold);font-size:.9rem;font-weight:600;white-space:nowrap;flex-shrink:0}.card-details{font-size:.85rem;color:var(--text-secondary)}.arrow{color:var(--primary);margin:0 4px}.highlight{color:var(--success);font-weight:600}.col-mid.battle-stage{align-items:center;justify-content:space-between;background:var(--bg-game-stage);padding:1.5rem}.stage-header{text-align:center;width:100%;margin-bottom:1rem;flex-shrink:0}.stage-header h2{font-size:1.5rem;color:var(--gold);margin:0 0 .5rem;text-shadow:0 2px 8px rgba(251,191,36,.5)}.boss-timer{background:var(--danger);color:#fff;padding:.5rem 1rem;border-radius:20px;font-size:.9rem;font-weight:700;display:inline-block;animation:pulse 1s infinite}.monster-display{flex:1;display:flex;align-items:center;justify-content:center;width:100%;cursor:crosshair;position:relative;-webkit-user-select:none;user-select:none}.monster-icon{font-size:8rem;transition:transform .1s;filter:drop-shadow(0 10px 20px rgba(0,0,0,.5))}.monster-icon:hover{transform:scale(1.1)}.monster-icon:active{transform:scale(.95)}.monster-icon.shake{animation:shake .1s}.monster-icon.boss{font-size:9rem;animation:bossFloat 2s infinite}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-5px) rotate(-2deg)}75%{transform:translate(5px) rotate(2deg)}}@keyframes bossFloat{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.hp-bar-section{width:100%;margin-bottom:1.5rem;flex-shrink:0}.hp-bar-container{width:100%;height:28px;position:relative;background:var(--bg-panel);border-radius:20px;overflow:hidden;margin-bottom:8px;border:1px solid var(--border)}.hp-bar{height:100%;background:linear-gradient(90deg,#ef4444,#dc2626,#b91c1c);transition:width .3s ease-out;border-radius:20px;position:relative}.hp-bar:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);animation:shimmer 2s infinite}@keyframes shimmer{0%{left:-100%}to{left:100%}}.hp-text{text-align:center;color:var(--text-primary);font-weight:700;font-size:.9rem;text-shadow:0 2px 4px rgba(0,0,0,.8)}.skills-section{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:12px;flex-shrink:0}.skill-button{height:80px;position:relative;background:var(--primary);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all .3s;overflow:hidden;padding:.5rem;border:2px solid var(--primary-dark)}.skill-button:hover:not(.locked){background:var(--primary-hover);transform:scale(1.05)}.skill-button.locked{background:var(--text-muted);cursor:not-allowed;opacity:.5;border-color:var(--border)}.skill-button.ready{box-shadow:0 0 20px var(--success);animation:glow 1s infinite}@keyframes glow{0%,to{box-shadow:0 0 20px var(--success)}50%{box-shadow:0 0 30px var(--success)}}.skill-icon{font-size:2rem;margin-bottom:.3rem}.skill-name{font-size:.75rem;font-weight:600;color:#fff;text-align:center}.skill-lock{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:1rem;font-weight:700;color:#fff}.skill-cooldown{position:absolute;bottom:0;left:0;height:100%;background:#0009;transition:width .1s linear;border-radius:10px}.col-right.info-panel{background:var(--bg-card);border-radius:16px;padding:20px;border:1px solid var(--border);display:flex;flex-direction:column;gap:20px;overflow:hidden}.stats-list-container{flex:1;background:var(--bg-panel);border-radius:12px;padding:15px;overflow-y:auto}.panel-title{margin:0 0 15px;font-size:1.1rem;color:var(--text-secondary);text-align:center;border-bottom:2px solid var(--border);padding-bottom:10px}.stat-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--border)}.stat-row:last-child{border-bottom:none}.stat-label{font-size:.95rem;color:var(--text-secondary);white-space:nowrap}.stat-value{font-size:1.1rem;font-weight:700;color:var(--text-primary);white-space:nowrap}.text-gold{color:var(--gold)}.actions-section{display:flex;flex-direction:column;gap:10px;flex-shrink:0}.action-button{width:100%;padding:.8rem;border:none;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s}.save-button{background:var(--success);color:#fff}.save-button:hover:not(:disabled){background:var(--success-hover);transform:translateY(-2px)}.save-button:disabled{opacity:.5;cursor:not-allowed}.reset-button{background:var(--danger);color:#fff}.reset-button:hover{background:var(--danger-hover);transform:translateY(-2px)}.floating-text{position:fixed;font-size:1.5rem;font-weight:700;color:var(--gold);text-shadow:0 2px 8px rgba(0,0,0,.8),0 0 20px rgba(251,191,36,.8);pointer-events:none;z-index:9999;animation:floatUp 1s ease-out forwards}.floating-text.crit{font-size:2rem;color:var(--danger);text-shadow:0 2px 8px rgba(0,0,0,.8),0 0 30px var(--danger)}@keyframes floatUp{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-100px) scale(1.2)}}.game-info{flex:0 0 auto;height:auto;width:90%;max-width:1800px;margin-top:1rem;padding:10px 20px;background:var(--bg-panel);border-radius:8px;border:1px solid var(--border);text-align:center;color:var(--text-secondary);font-size:.85rem}.game-info p{margin:.3rem 0}@media (max-width: 1023px){.dashboard-container{width:95%;grid-template-columns:1fr;gap:1rem}.game-header,.message,.game-info{width:95%}.col-left,.col-mid,.col-right{min-height:auto}.col-left.upgrade-panel{max-height:500px}.monster-icon{font-size:6rem}.monster-icon.boss{font-size:7rem}.skills-section{grid-template-columns:1fr 1fr}.skill-button{height:70px}.skill-icon{font-size:1.8rem}}@media (max-width: 768px){.hero-clicker-page{padding:.5rem 0}.game-title{font-size:1.3rem}.tutorial-button{padding:.5rem 1rem;font-size:.85rem}.dashboard-container{gap:.8rem}.monster-icon{font-size:5rem}.monster-icon.boss{font-size:6rem}.card-icon{font-size:1.5rem}.stat-label{font-size:.9rem}.stat-value{font-size:1rem}}.cyber-garden{min-height:calc(100vh - 200px);padding:2rem;background:var(--bg-page)}.game-container{max-width:1200px;margin:0 auto;background:var(--bg-card);border-radius:16px;padding:2rem;box-shadow:var(--shadow-lg)}.game-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;gap:1rem}.game-title{text-align:center;flex:1;font-size:2.5rem;color:var(--text-primary);margin-bottom:0;text-shadow:0 2px 4px rgba(0,0,0,.1)}.loading{text-align:center;padding:4rem;font-size:1.5rem;color:var(--text-primary)}.message{background:var(--success);color:#fff;padding:1rem;border-radius:8px;text-align:center;margin-bottom:1.5rem;animation:fadeIn .3s;box-shadow:var(--shadow);font-weight:600}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.resource-bar{background:var(--primary);padding:1rem 1.5rem;border-radius:12px;margin-bottom:1.5rem;display:flex;justify-content:center;gap:2rem;box-shadow:var(--shadow)}.resource-item{color:#fff;font-size:1.3rem;font-weight:600;display:flex;align-items:center;gap:.5rem}.resource-value{background:#fff3;padding:.3rem .8rem;border-radius:8px;min-width:60px;text-align:center}.garden-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:2rem}.plot-card{background:var(--bg-card);border-radius:12px;padding:1rem;min-height:200px;box-shadow:var(--shadow);transition:all .3s;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid var(--border)}.plot-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}.plot-card.locked{background:var(--bg-panel);opacity:.7}.locked-content{text-align:center}.lock-icon{font-size:3rem;margin-bottom:1rem;opacity:.5}.unlock-button{background:var(--warning);color:#fff;border:none;padding:.8rem 1.5rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s}.unlock-button:hover{transform:scale(1.05);box-shadow:var(--shadow)}.empty-content{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.plant-button{background:var(--bg-panel);color:var(--text-primary);border:2px dashed var(--border-dark);padding:2rem 1.5rem;border-radius:12px;font-size:1.2rem;font-weight:600;cursor:pointer;transition:all .3s;width:100%}.plant-button:hover{transform:scale(1.05);border-color:var(--primary);background:var(--bg-game-stage)}.plant-content{width:100%;text-align:center}.plant-emoji{font-size:4rem;margin-bottom:.5rem;animation:float 3s ease-in-out infinite}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-8px)}}.plant-name{font-size:.9rem;font-weight:600;color:var(--text-primary);margin-bottom:.8rem}.stat-row{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.stat-label{font-size:1rem;width:20px}.stat-bar{flex:1;height:12px;background:var(--bg-panel);border-radius:6px;overflow:hidden;border:1px solid var(--border)}.stat-fill{height:100%;transition:width .5s ease;border-radius:6px}.stat-fill.water{background:var(--info)}.stat-fill.growth{background:var(--success)}.stat-text{font-size:.75rem;font-weight:600;color:var(--text-secondary);min-width:25px;text-align:right}.plant-actions{margin-top:.8rem}.action-btn{width:100%;padding:.6rem 1rem;border:none;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .3s}.water-btn{background:var(--info);color:#fff}.water-btn:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.harvest-btn{background:var(--success);color:#fff}.harvest-btn:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.remove-btn{background:var(--text-muted);color:#fff}.remove-btn:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .3s}.modal-content{background:var(--bg-card);border-radius:16px;padding:2rem;max-width:500px;width:90%;max-height:80vh;overflow-y:auto;box-shadow:var(--shadow-lg)}.modal-content h2{text-align:center;color:var(--text-primary);margin-bottom:1.5rem}.shop-items{display:flex;flex-direction:column;gap:1rem;margin-bottom:1.5rem}.shop-item{background:var(--bg-panel);border-radius:12px;padding:1rem;display:flex;align-items:center;gap:1rem;transition:all .3s;border:1px solid var(--border)}.shop-item:hover{transform:translate(5px);box-shadow:var(--shadow);border-color:var(--primary)}.shop-item-icon{font-size:3rem}.shop-item-info{flex:1}.shop-item-name{font-size:1.1rem;font-weight:600;color:var(--text-primary);margin-bottom:.3rem}.shop-item-stats{font-size:.85rem;color:var(--text-secondary);line-height:1.4}.shop-buy-btn{background:var(--primary);color:#fff;border:none;padding:.8rem 1.2rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s;min-width:80px}.shop-buy-btn:hover:not(:disabled){transform:scale(1.05);box-shadow:var(--shadow);background:var(--primary-hover)}.shop-buy-btn:disabled{background:var(--text-muted);cursor:not-allowed;opacity:.6}.modal-close{width:100%;background:var(--text-muted);color:#fff;border:none;padding:.8rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s}.modal-close:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.bottom-panel{background:var(--bg-panel);border-radius:12px;padding:1.5rem;margin-bottom:1.5rem;border:1px solid var(--border)}.inventory-section h3{color:var(--text-primary);margin-bottom:1rem;text-align:center}.empty-text{text-align:center;color:var(--text-muted);font-style:italic;padding:2rem 0}.inventory-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}.inventory-item{background:var(--bg-card);border-radius:8px;padding:1rem;display:flex;align-items:center;gap:.8rem;box-shadow:var(--shadow-sm);transition:all .3s;border:1px solid var(--border)}.inventory-item:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.inventory-icon{font-size:2.5rem}.inventory-info{flex:1}.inventory-info>div:first-child{font-weight:600;color:var(--text-primary);margin-bottom:.2rem}.inventory-amount{font-size:.9rem;color:var(--text-secondary)}.sell-btn{background:var(--warning);color:#fff;border:none;padding:.6rem 1rem;border-radius:8px;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .3s;white-space:nowrap}.sell-btn:hover{transform:scale(1.05);box-shadow:var(--shadow-sm)}.game-info{text-align:center;background:var(--bg-panel);padding:1.5rem;border-radius:12px;color:var(--text-secondary);font-size:.95rem;border:1px solid var(--border)}.game-info p{margin:.5rem 0}@media (max-width: 992px){.garden-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.cyber-garden{padding:1rem}.game-container{padding:1.5rem}.game-title{font-size:2rem}.garden-grid{grid-template-columns:repeat(2,1fr);gap:.8rem}.plot-card{min-height:180px;padding:.8rem}.plant-emoji{font-size:3rem}.resource-bar{flex-direction:column;gap:1rem}.inventory-items{grid-template-columns:1fr}}@media (max-width: 480px){.game-title{font-size:1.5rem}.garden-grid{grid-template-columns:1fr}.plot-card{min-height:160px}.plant-emoji{font-size:2.5rem}}.tiny-dungeon{min-height:100vh;background:var(--bg-page);padding:20px;color:var(--text-primary);font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif}.game-container{max-width:1200px;margin:0 auto}.game-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:1rem}.game-title{text-align:center;flex:1;font-size:2.5rem;margin-bottom:0;color:var(--gold);text-shadow:3px 3px 6px rgba(0,0,0,.7);font-weight:700}.tutorial-button{background:var(--primary);color:#fff;border:none;padding:.6rem 1.2rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s;box-shadow:var(--shadow)}.tutorial-button:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);background:var(--primary-hover)}.loading{text-align:center;padding:40px;font-size:1.2rem;color:var(--text-secondary)}.message{position:fixed;top:20px;right:20px;background:var(--success);color:#fff;padding:12px 24px;border-radius:8px;font-weight:700;z-index:2000;animation:slideIn .3s ease;box-shadow:var(--shadow-lg)}@keyframes slideIn{0%{transform:translate(100px);opacity:0}to{transform:translate(0);opacity:1}}.status-bar{display:flex;align-items:center;gap:20px;background:var(--bg-card);border:2px solid var(--border-dark);border-radius:12px;padding:15px 20px;margin-bottom:20px;flex-wrap:wrap;box-shadow:var(--shadow)}.status-item{display:flex;align-items:center;gap:6px}.status-item .label{color:var(--text-secondary);font-size:.9rem}.status-item .value{color:var(--text-primary);font-weight:700;font-size:1.1rem}.mini-hp-bar{width:100px;height:16px;background:var(--bg-panel);border-radius:8px;position:relative;overflow:hidden;border:1px solid var(--border)}.mini-hp-fill{height:100%;background:linear-gradient(90deg,#e74c3c,#c0392b);transition:width .3s ease;border-radius:8px}.inventory-btn{margin-left:auto;padding:8px 16px;background:var(--primary);color:#fff;border:none;border-radius:8px;font-weight:700;cursor:pointer;transition:all .2s ease}.inventory-btn:hover{transform:translateY(-2px);box-shadow:var(--shadow);background:var(--primary-hover)}.inventory-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000d9;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .3s ease}.inventory-modal{background:var(--bg-card);border:3px solid var(--border-dark);border-radius:16px;padding:30px;max-width:900px;width:90%;max-height:80vh;overflow-y:auto;box-shadow:var(--shadow-lg)}.inventory-modal h2{text-align:center;color:var(--gold);margin-bottom:20px;font-size:2rem}.inventory-modal h3{color:var(--success);margin:20px 0 15px;font-size:1.3rem}.equipped-section{margin-bottom:30px}.equipped-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:15px}.equipment-slot{background:var(--bg-panel);border:2px solid var(--border);border-radius:12px;padding:15px}.slot-label{font-weight:700;color:var(--gold);margin-bottom:10px;text-align:center;font-size:1.1rem}.equipment-card{background:var(--bg-card);border:2px solid var(--border-dark);border-radius:10px;padding:12px;cursor:pointer;transition:all .2s ease;text-align:center}.equipment-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--primary)}.equipment-card.empty{color:var(--text-muted);cursor:default;border-style:dashed}.equipment-card.empty:hover{transform:none;box-shadow:none}.eq-name{font-weight:700;font-size:1.1rem;margin-bottom:6px}.eq-rarity{font-size:.85rem;color:var(--text-secondary);margin-bottom:8px}.eq-stats{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-bottom:8px}.eq-stats span{background:var(--bg-panel);padding:3px 8px;border-radius:4px;font-size:.85rem;color:var(--success);font-weight:700}.eq-desc{font-size:.8rem;color:var(--text-secondary);font-style:italic}.inventory-section .inventory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.empty-text{grid-column:1 / -1;text-align:center;color:var(--text-muted);padding:30px;font-style:italic}.close-btn{display:block;margin:20px auto 0;padding:10px 30px;background:var(--danger);color:#fff;border:none;border-radius:8px;font-weight:700;cursor:pointer;transition:all .2s ease}.close-btn:hover{transform:translateY(-2px);box-shadow:var(--shadow);background:var(--danger-hover)}.game-stage{background:var(--bg-card);border:2px solid var(--border-dark);border-radius:16px;padding:30px;margin-bottom:20px;min-height:400px;box-shadow:var(--shadow)}.phase-title{text-align:center;font-size:1.8rem;color:var(--gold);margin-bottom:30px;text-shadow:2px 2px 4px rgba(0,0,0,.5)}.room-selection{display:flex;flex-direction:column;align-items:center}.room-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;width:100%;max-width:900px}.room-card{background:var(--bg-panel);border:3px solid var(--border-dark);border-radius:16px;padding:25px;cursor:pointer;transition:all .3s ease;text-align:center;position:relative;overflow:hidden}.room-card:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.1),transparent);transition:left .5s ease}.room-card:hover:before{left:100%}.room-card:hover{transform:translateY(-8px) scale(1.05);box-shadow:var(--shadow-lg);border-color:var(--primary)}.room-card.battle{border-color:var(--info)}.room-card.elite{border-color:var(--danger)}.room-card.chest{border-color:var(--warning)}.room-card.shop{border-color:var(--primary)}.room-card.rest{border-color:var(--success)}.room-icon{font-size:4rem;margin-bottom:15px;animation:float 3s ease-in-out infinite}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.room-name{font-size:1.4rem;font-weight:700;color:var(--text-primary);margin-bottom:10px}.room-description{font-size:.95rem;color:var(--text-secondary);font-style:italic}.combat-view{display:flex;flex-direction:column;gap:25px}.combat-arena{display:grid;grid-template-columns:1fr auto 1fr;gap:30px;align-items:center}.player-side,.enemy-side{text-align:center}.char-portrait{font-size:5rem;margin-bottom:15px;animation:pulse 2s ease-in-out infinite}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}.char-name{font-size:1.3rem;font-weight:700;color:var(--gold);margin-bottom:10px}.char-hp-bar{width:100%;max-width:250px;height:30px;background:var(--bg-panel);border-radius:15px;position:relative;overflow:hidden;border:2px solid var(--border);margin:0 auto}.char-hp-fill{height:100%;transition:width .5s ease;border-radius:15px}.char-hp-fill.player{background:linear-gradient(90deg,#27ae60,#2ecc71)}.char-hp-fill.enemy{background:linear-gradient(90deg,#e74c3c,#c0392b)}.char-hp-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:var(--text-primary);font-weight:700;font-size:.95rem;text-shadow:1px 1px 2px rgba(0,0,0,.8)}.shield-indicator{margin-top:10px;color:var(--info);font-weight:700;font-size:1.1rem}.vs-indicator{font-size:2.5rem;font-weight:700;color:var(--danger);text-shadow:2px 2px 4px rgba(0,0,0,.5);animation:shake 1s ease-in-out infinite}@keyframes shake{0%,to{transform:rotate(-5deg)}50%{transform:rotate(5deg)}}.enemy-intent{margin-top:15px;padding:8px 15px;background:var(--bg-panel);border:2px solid var(--danger);border-radius:8px;font-weight:700;color:var(--danger);display:inline-block}.combat-log{background:var(--bg-panel);border:2px solid var(--border);border-radius:12px;padding:15px;max-height:150px;overflow-y:auto}.log-line{padding:6px 10px;margin-bottom:5px;background:var(--bg-card);border-left:3px solid var(--primary);border-radius:4px;font-size:.95rem}.log-line:last-child{background:var(--bg-game-stage);border-left-color:var(--success);font-weight:700}.combat-actions{display:flex;gap:15px;justify-content:center;flex-wrap:wrap}.action-btn{flex:1;min-width:150px;padding:15px 25px;font-size:1.1rem;font-weight:700;border:none;border-radius:12px;cursor:pointer;transition:all .2s ease;text-shadow:1px 1px 2px rgba(0,0,0,.3);position:relative;overflow:hidden}.action-btn:after{content:"";position:absolute;top:50%;left:50%;width:0;height:0;background:#ffffff4d;border-radius:50%;transform:translate(-50%,-50%);transition:width .6s,height .6s}.action-btn:active:after{width:300px;height:300px}.action-btn:hover:not(:disabled){transform:translateY(-3px);box-shadow:var(--shadow-lg)}.action-btn:disabled{opacity:.4;cursor:not-allowed;transform:none}.action-btn.attack{background:var(--danger);color:#fff}.action-btn.defend{background:var(--info);color:#fff}.action-btn.potion{background:var(--primary);color:#fff}.shop-view{display:flex;flex-direction:column;align-items:center}.shop-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;width:100%;max-width:800px;margin-bottom:25px}.shop-item{background:var(--bg-panel);border:3px solid var(--border-dark);border-radius:12px;padding:20px;text-align:center;transition:all .3s ease}.shop-item:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg);border-color:var(--primary)}.buy-btn{margin-top:15px;width:100%;padding:10px 20px;background:var(--warning);color:#fff;border:none;border-radius:8px;font-weight:700;cursor:pointer;transition:all .2s ease}.buy-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:var(--shadow)}.buy-btn:disabled{opacity:.4;cursor:not-allowed}.leave-btn{padding:12px 30px;background:var(--text-muted);color:#fff;border:none;border-radius:8px;font-weight:700;cursor:pointer;transition:all .2s ease}.leave-btn:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.rest-view{display:flex;flex-direction:column;align-items:center}.rest-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:25px;width:100%;max-width:700px}.rest-card{background:var(--bg-panel);border:3px solid var(--success);border-radius:16px;padding:30px;cursor:pointer;transition:all .3s ease;text-align:center}.rest-card:hover{transform:translateY(-8px);box-shadow:var(--shadow-lg)}.rest-icon{font-size:4rem;margin-bottom:15px}.rest-name{font-size:1.4rem;font-weight:700;color:var(--text-primary);margin-bottom:10px}.rest-desc{font-size:.95rem;color:var(--text-secondary)}.game-over-view{text-align:center;padding:40px}.game-over-title{font-size:3rem;color:var(--danger);margin-bottom:30px;text-shadow:3px 3px 6px rgba(0,0,0,.7);animation:fadeInScale 1s ease}@keyframes fadeInScale{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.final-stats{background:var(--bg-panel);border:2px solid var(--border);border-radius:12px;padding:25px;margin:0 auto 30px;max-width:400px}.final-stats p{font-size:1.2rem;margin:12px 0;color:var(--text-primary)}.reset-btn{padding:15px 40px;background:var(--danger);color:#fff;border:none;border-radius:12px;font-size:1.2rem;font-weight:700;cursor:pointer;transition:all .2s ease}.reset-btn:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);background:var(--danger-hover)}.bottom-toolbar{display:flex;gap:15px;justify-content:center;margin-bottom:20px}.tool-btn{padding:10px 20px;background:var(--bg-panel);color:var(--text-primary);border:2px solid var(--border-dark);border-radius:8px;font-weight:700;cursor:pointer;transition:all .2s ease}.tool-btn:hover{background:var(--bg-game-stage);transform:translateY(-2px);box-shadow:var(--shadow);border-color:var(--primary)}.game-info{background:var(--bg-panel);border:1px solid var(--border);border-radius:8px;padding:15px;text-align:center}.game-info p{margin:8px 0;color:var(--text-secondary);font-size:.9rem}@media (max-width: 768px){.game-title{font-size:2rem}.status-bar{justify-content:center}.combat-arena{grid-template-columns:1fr;gap:20px}.vs-indicator{transform:rotate(90deg)}.room-cards,.shop-items,.rest-choices{grid-template-columns:1fr}.combat-actions{flex-direction:column}.action-btn{width:100%}.inventory-modal{width:95%;padding:20px}.equipped-slots{grid-template-columns:1fr}}.combat-log::-webkit-scrollbar,.inventory-modal::-webkit-scrollbar{width:8px}.combat-log::-webkit-scrollbar-track,.inventory-modal::-webkit-scrollbar-track{background:var(--bg-panel);border-radius:4px}.combat-log::-webkit-scrollbar-thumb,.inventory-modal::-webkit-scrollbar-thumb{background:var(--border-dark);border-radius:4px}.combat-log::-webkit-scrollbar-thumb:hover,.inventory-modal::-webkit-scrollbar-thumb:hover{background:var(--primary)}.alchemy-lab{width:100%;min-height:100vh;background:var(--bg-page);color:var(--text-primary);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;padding:20px;box-sizing:border-box}.alchemy-lab .loading{text-align:center;padding:100px 20px;font-size:24px;color:var(--text-secondary);animation:pulse 2s ease-in-out infinite}@keyframes pulse{0%,to{opacity:.5}50%{opacity:1}}.alchemy-lab .message{position:fixed;top:20px;left:50%;transform:translate(-50%);background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);color:#fff;padding:16px 32px;border-radius:12px;box-shadow:var(--shadow-lg);z-index:1000;font-size:16px;font-weight:500;animation:slideDown .3s ease}@keyframes slideDown{0%{opacity:0;transform:translate(-50%) translateY(-20px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.alchemy-lab .discovery-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:#000c;display:flex;align-items:center;justify-content:center;z-index:2000;animation:fadeIn .3s ease}.alchemy-lab .discovery-content{background:linear-gradient(135deg,var(--primary) 0%,var(--danger) 100%);padding:40px;border-radius:24px;text-align:center;box-shadow:var(--shadow-lg);animation:scaleUp .5s cubic-bezier(.175,.885,.32,1.275);max-width:400px}@keyframes scaleUp{0%{transform:scale(.5);opacity:0}to{transform:scale(1);opacity:1}}.alchemy-lab .discovery-content h2{margin:0 0 20px;font-size:32px;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.3)}.alchemy-lab .discovered-element .icon{font-size:80px;display:block;margin-bottom:16px;animation:bounce 1s ease infinite}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.alchemy-lab .discovered-element h3{margin:0 0 8px;font-size:28px;color:#fff}.alchemy-lab .discovered-element p{margin:0;font-size:16px;color:#ffffffe6}.alchemy-lab .kp-reward{margin-top:20px;font-size:24px;font-weight:700;color:var(--gold);text-shadow:0 0 10px var(--gold)}.alchemy-lab .top-bar{background:var(--bg-card);border-radius:16px;padding:20px;margin-bottom:20px;display:flex;justify-content:space-between;align-items:center;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid var(--border)}.alchemy-lab .game-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex:1}.alchemy-lab .game-title h2{margin:0 0 4px;font-size:28px;background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.alchemy-lab .subtitle{margin:0;font-size:14px;color:var(--text-secondary);font-style:italic}.alchemy-lab .tutorial-button{background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;border:none;padding:.6rem 1.2rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s;box-shadow:var(--shadow)}.alchemy-lab .tutorial-button:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}.alchemy-lab .tutorial-button:active{transform:translateY(0)}.alchemy-lab .stats-panel{display:flex;gap:30px}.alchemy-lab .stat{display:flex;flex-direction:column;align-items:center}.alchemy-lab .stat .label{font-size:12px;color:var(--text-secondary);margin-bottom:4px}.alchemy-lab .stat .value{font-size:18px;font-weight:700;color:var(--text-primary)}.alchemy-lab .main-container{display:grid;grid-template-columns:400px 1fr;gap:20px;height:calc(100vh - 180px)}.alchemy-lab .elements-panel{background:var(--bg-card);border-radius:16px;padding:20px;overflow:hidden;display:flex;flex-direction:column;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid var(--border)}.alchemy-lab .panel-header{margin-bottom:16px}.alchemy-lab .panel-header h3{margin:0 0 12px;font-size:20px;color:var(--text-primary)}.alchemy-lab .search-input{width:100%;padding:10px 16px;background:var(--bg-panel);border:1px solid var(--border);border-radius:8px;color:var(--text-primary);font-size:14px;outline:none;transition:all .3s ease}.alchemy-lab .search-input:focus{border-color:var(--primary);box-shadow:var(--shadow)}.alchemy-lab .search-input::placeholder{color:var(--text-muted)}.alchemy-lab .category-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.alchemy-lab .category-tab{padding:8px 12px;background:var(--bg-panel);border:1px solid var(--border);border-radius:8px;color:var(--text-secondary);font-size:12px;cursor:pointer;transition:all .2s ease;white-space:nowrap}.alchemy-lab .category-tab:hover{background:var(--bg-game-stage);border-color:var(--border-dark)}.alchemy-lab .category-tab.active{background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%);border-color:transparent;color:#fff}.alchemy-lab .elements-grid{flex:1;overflow-y:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding-right:8px}.alchemy-lab .elements-grid::-webkit-scrollbar{width:6px}.alchemy-lab .elements-grid::-webkit-scrollbar-track{background:#0003;border-radius:3px}.alchemy-lab .elements-grid::-webkit-scrollbar-thumb{background:#fff3;border-radius:3px}.alchemy-lab .elements-grid::-webkit-scrollbar-thumb:hover{background:#ffffff4d}.alchemy-lab .element-card{background:#ffffff14;border:2px solid rgba(255,255,255,.1);border-radius:12px;padding:16px 8px;display:flex;flex-direction:column;align-items:center;cursor:grab;transition:all .2s ease;-webkit-user-select:none;user-select:none}.alchemy-lab .element-card:hover{background:#ffffff1f;border-color:#667eea;transform:translateY(-2px);box-shadow:0 8px 16px #0000004d}.alchemy-lab .element-card:active{cursor:grabbing;opacity:.7}.alchemy-lab .element-card .icon{font-size:36px;margin-bottom:8px}.alchemy-lab .element-card .name{font-size:13px;color:#fff;text-align:center}.alchemy-lab .no-elements{grid-column:1 / -1;text-align:center;padding:40px 20px;color:#a0a0a0;font-size:14px}.alchemy-lab .workbench-panel{background:#ffffff0d;border-radius:16px;padding:20px;display:flex;flex-direction:column;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1)}.alchemy-lab .workbench-panel .panel-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.alchemy-lab .workbench-actions{display:flex;gap:10px}.alchemy-lab .workbench-actions button{padding:8px 16px;font-size:14px;border:none;border-radius:8px;cursor:pointer;transition:all .2s ease;font-weight:500}.alchemy-lab .hint-btn{background:linear-gradient(135deg,#f093fb,#f5576c);color:#fff}.alchemy-lab .hint-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #f5576c66}.alchemy-lab .hint-btn:disabled{opacity:.5;cursor:not-allowed}.alchemy-lab .clear-btn{background:#ffffff1a;color:#fff;border:1px solid rgba(255,255,255,.2)}.alchemy-lab .clear-btn:hover{background:#ffffff26}.alchemy-lab .workbench{flex:1;background:radial-gradient(circle at center,#667eea1a,#0000004d);border-radius:12px;position:relative;overflow:hidden;border:2px dashed rgba(102,126,234,.3);margin-bottom:16px}.alchemy-lab .workbench:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:300px;height:300px;background-image:radial-gradient(circle,transparent 40%,rgba(102,126,234,.05) 40%,rgba(102,126,234,.05) 42%,transparent 42%),radial-gradient(circle,transparent 60%,rgba(102,126,234,.05) 60%,rgba(102,126,234,.05) 62%,transparent 62%);opacity:.5;pointer-events:none}.alchemy-lab .workbench-hint{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;color:#ffffff4d;font-size:16px;pointer-events:none;-webkit-user-select:none;user-select:none}.alchemy-lab .workbench-element{position:absolute;background:linear-gradient(135deg,#667eeacc,#764ba2cc);border:2px solid rgba(255,255,255,.3);border-radius:12px;padding:12px 16px;display:flex;flex-direction:column;align-items:center;cursor:move;transition:all .2s ease;box-shadow:0 8px 24px #0006;animation:elementAppear .3s ease}@keyframes elementAppear{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}.alchemy-lab .workbench-element.dragging{opacity:.8;transform:scale(1.1);box-shadow:0 12px 32px #0009}.alchemy-lab .workbench-element .icon{font-size:32px;margin-bottom:4px;text-shadow:0 2px 8px rgba(0,0,0,.5)}.alchemy-lab .workbench-element .name{font-size:12px;color:#fff;font-weight:500;text-shadow:0 1px 4px rgba(0,0,0,.5)}.alchemy-lab .footer-actions{display:flex;gap:10px;justify-content:center}.alchemy-lab .footer-actions button{padding:12px 24px;font-size:14px;border:none;border-radius:8px;cursor:pointer;transition:all .2s ease;font-weight:500;background:#ffffff1a;color:#fff;border:1px solid rgba(255,255,255,.2)}.alchemy-lab .footer-actions button:hover:not(:disabled){background:#ffffff26;transform:translateY(-2px);box-shadow:0 4px 12px #0000004d}.alchemy-lab .footer-actions button:disabled{opacity:.5;cursor:not-allowed}.alchemy-lab .footer-actions button.danger{background:linear-gradient(135deg,#f5576c,#f093fb);border:none}.alchemy-lab .footer-actions button.danger:hover{box-shadow:0 4px 12px #f5576c66}@media (max-width: 1200px){.alchemy-lab .main-container{grid-template-columns:350px 1fr}.alchemy-lab .elements-grid{grid-template-columns:repeat(2,1fr)}.alchemy-lab .stats-panel{gap:20px}.alchemy-lab .stat .value{font-size:16px}}@media (max-width: 900px){.alchemy-lab .main-container{grid-template-columns:1fr;height:auto}.alchemy-lab .elements-panel{height:400px}.alchemy-lab .workbench-panel{min-height:500px}.alchemy-lab .top-bar{flex-direction:column;gap:16px}.alchemy-lab .stats-panel{width:100%;justify-content:space-around}}@media (max-width: 600px){.alchemy-lab{padding:10px}.alchemy-lab .elements-grid{grid-template-columns:repeat(2,1fr);gap:8px}.alchemy-lab .element-card{padding:12px 6px}.alchemy-lab .element-card .icon{font-size:28px}.alchemy-lab .element-card .name{font-size:11px}.alchemy-lab .category-tabs{gap:4px}.alchemy-lab .category-tab{padding:6px 10px;font-size:11px}.alchemy-lab .discovery-content{padding:30px 20px;max-width:90%}.alchemy-lab .discovered-element .icon{font-size:60px}}*{box-sizing:border-box}.pixel-master{max-width:1400px;margin:0 auto;padding:20px;background:linear-gradient(135deg,#1e3c72,#2a5298);min-height:100vh;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.header{margin-bottom:20px;padding:15px;background:#ffffff1a;border-radius:12px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.game-header{display:flex;justify-content:center;align-items:center;gap:1rem;margin-bottom:10px}.game-title{font-size:2.5rem;margin:0;text-shadow:2px 2px 4px rgba(0,0,0,.3);flex:1;text-align:center}.tutorial-button{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:.6rem 1.2rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s;box-shadow:0 4px 12px #667eea4d}.tutorial-button:hover{transform:translateY(-2px);box-shadow:0 6px 16px #667eea66}.tutorial-button:active{transform:translateY(0)}.stats{display:flex;justify-content:center;gap:30px;font-size:1.1rem;font-weight:500}.stats span{padding:8px 15px;background:#ffffff26;border-radius:8px}.message{background:#fffffff2;color:#333;padding:15px 25px;border-radius:10px;text-align:center;margin-bottom:20px;font-weight:600;box-shadow:0 4px 12px #0000004d;animation:slideDown .3s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.loading{text-align:center;font-size:1.8rem;padding:60px;font-weight:500}.main-layout{display:flex;gap:20px;margin-bottom:20px;align-items:flex-start}.toolbar{background:#fffffff2;color:#333;padding:20px;border-radius:12px;box-shadow:0 4px 16px #0000004d;width:140px;flex-shrink:0}.toolbar h3{margin:0 0 15px;font-size:1.1rem;color:#1e3c72;border-bottom:2px solid #1e3c72;padding-bottom:8px}.tool-btn,.size-btn{width:100%;padding:12px;margin-bottom:8px;border:2px solid #ddd;background:#fff;border-radius:8px;cursor:pointer;font-size:1.5rem;transition:all .2s;position:relative}.tool-btn:hover,.size-btn:hover{transform:scale(1.05);box-shadow:0 4px 8px #0003}.tool-btn.active,.size-btn.active{background:#1e3c72;color:#fff;border-color:#1e3c72}.tool-btn.locked,.size-btn.locked{opacity:.4;cursor:not-allowed}.tool-btn.locked:hover,.size-btn.locked:hover{transform:none;box-shadow:none}.divider{height:2px;background:#ddd;margin:15px 0}.current-color{margin-top:15px;text-align:center}.color-display{width:80px;height:80px;margin:0 auto 10px;border:3px solid #333;border-radius:8px;box-shadow:0 2px 8px #0003}.current-color span{font-size:.9rem;font-weight:600;color:#666}.canvas-container{flex:1;display:flex;flex-direction:column;align-items:center;gap:15px}.pixel-grid{display:grid;gap:1px;background:#999;border:3px solid #333;box-shadow:0 6px 20px #0006;cursor:crosshair;-webkit-user-select:none;user-select:none;border-radius:4px;overflow:hidden}.pixel{background:#fff;transition:opacity .05s;width:100%;height:100%}.pixel:hover{opacity:.85}.canvas-actions{display:flex;gap:15px}.canvas-actions button{padding:12px 25px;font-size:1.1rem;font-weight:600;border:none;border-radius:8px;cursor:pointer;transition:all .2s;box-shadow:0 3px 8px #0000004d}.canvas-actions button:not(.primary){background:#fff;color:#1e3c72}.canvas-actions button.primary{background:#2ecc71;color:#fff}.canvas-actions button:hover{transform:translateY(-2px);box-shadow:0 5px 12px #0006}.palette-panel{background:#fffffff2;color:#333;padding:20px;border-radius:12px;box-shadow:0 4px 16px #0000004d;width:280px;flex-shrink:0}.palette-panel h3{margin:0 0 15px;font-size:1.2rem;color:#1e3c72;border-bottom:2px solid #1e3c72;padding-bottom:8px}.palette-panel select{width:100%;padding:10px;margin-bottom:15px;border:2px solid #ddd;border-radius:8px;font-size:1rem;background:#fff;cursor:pointer}.palette-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:15px}.palette-color{width:100%;aspect-ratio:1;border-radius:8px;cursor:pointer;border:3px solid #ddd;transition:all .2s;box-shadow:0 2px 4px #0000001a}.palette-color:hover{transform:scale(1.1);box-shadow:0 4px 10px #0000004d}.palette-color.selected{border-color:#1e3c72;border-width:4px;box-shadow:0 0 15px #1e3c7299}.bottom-bar{display:flex;gap:15px;justify-content:center;flex-wrap:wrap;padding:20px;background:#ffffff1a;border-radius:12px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.bottom-bar button{padding:15px 30px;font-size:1.1rem;font-weight:600;border:none;border-radius:10px;cursor:pointer;transition:all .2s;background:#fff;color:#1e3c72;box-shadow:0 3px 10px #0000004d}.bottom-bar button:hover{transform:translateY(-3px);box-shadow:0 6px 15px #0006}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;justify-content:center;align-items:center;z-index:1000;animation:fadeIn .2s ease-out}.modal{background:#fff;color:#333;padding:30px;border-radius:16px;box-shadow:0 10px 40px #00000080;max-width:500px;width:90%;max-height:80vh;overflow-y:auto;animation:slideUp .3s ease-out}.modal.large{max-width:800px}@keyframes slideUp{0%{opacity:0;transform:translateY(50px)}to{opacity:1;transform:translateY(0)}}.modal h3{margin:0 0 15px;font-size:1.8rem;color:#1e3c72;border-bottom:3px solid #1e3c72;padding-bottom:10px}.modal h4{margin:20px 0 10px;font-size:1.3rem;color:#2a5298}.modal p{margin:10px 0;line-height:1.6}.modal input[type=text]{width:100%;padding:12px;margin:15px 0;border:2px solid #ddd;border-radius:8px;font-size:1rem}.modal input[type=text]:focus{outline:none;border-color:#1e3c72}.modal-actions{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}.modal-actions button,.modal>button{padding:12px 25px;font-size:1rem;font-weight:600;border:none;border-radius:8px;cursor:pointer;transition:all .2s;flex:1;min-width:120px}.modal-actions button.primary,.modal>button.primary{background:#2ecc71;color:#fff}.modal-actions button:not(.primary),.modal>button:not(.primary){background:#ecf0f1;color:#333}.modal-actions button:hover,.modal>button:hover{transform:translateY(-2px);box-shadow:0 4px 10px #0003}.modal-actions button:disabled,.modal>button:disabled{opacity:.5;cursor:not-allowed;transform:none}.shop-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;margin-bottom:20px}.shop-item{display:flex;flex-direction:column;gap:10px;padding:15px;background:#f8f9fa;border-radius:10px;border:2px solid #e0e0e0}.shop-item span{font-weight:600;color:#333}.shop-item button{padding:10px 15px;font-size:.95rem;font-weight:600;border:none;border-radius:6px;cursor:pointer;background:#1e3c72;color:#fff;transition:all .2s}.shop-item button:hover:not(:disabled){background:#2a5298;transform:scale(1.05)}.shop-item button:disabled{background:#95a5a6;cursor:not-allowed;opacity:.6}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:20px;margin-bottom:20px}.gallery-item{background:#f8f9fa;padding:15px;border-radius:12px;border:2px solid #e0e0e0;display:flex;flex-direction:column;align-items:center;gap:10px}.gallery-item .mini-canvas{border:2px solid #333;border-radius:6px;box-shadow:0 3px 8px #0003}.gallery-item h4{margin:5px 0;font-size:1.1rem;color:#1e3c72;text-align:center}.gallery-item p{margin:3px 0;font-size:.9rem;color:#666}.gallery-item button{width:100%;padding:10px;font-size:.9rem;font-weight:600;border:none;border-radius:6px;cursor:pointer;background:#e74c3c;color:#fff;transition:all .2s}.gallery-item button:hover{background:#c0392b;transform:scale(1.05)}.commission-list{margin-bottom:20px}.commission-item{background:#f8f9fa;padding:15px;border-radius:10px;border:2px solid #e0e0e0;margin-bottom:15px}.commission-item h4{margin:0 0 8px;font-size:1.2rem;color:#1e3c72}.commission-item p{margin:5px 0;color:#555}.commission-item p.small{font-size:.85rem;color:#888;font-style:italic}@media (max-width: 1200px){.main-layout{flex-direction:column;align-items:center}.toolbar,.palette-panel{width:100%;max-width:600px}.toolbar{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.toolbar h3,.divider,.current-color{grid-column:1 / -1}.tool-btn,.size-btn{margin-bottom:0}.palette-panel{order:3}}@media (max-width: 768px){.pixel-master{padding:10px}.header h2{font-size:2rem}.stats{flex-direction:column;gap:10px}.pixel-grid{max-width:100%}.shop-grid{grid-template-columns:1fr}.gallery-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.modal{padding:20px;width:95%}.modal-actions{flex-direction:column}.modal-actions button{width:100%}}.modal::-webkit-scrollbar{width:8px}.modal::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px}.modal::-webkit-scrollbar-thumb{background:#888;border-radius:10px}.modal::-webkit-scrollbar-thumb:hover{background:#555}.quant-master{background:var(--bg-page);color:var(--text-primary);font-family:Monaco,Menlo,Courier New,monospace;min-height:100vh;padding:20px;position:relative}.quant-master.liquidation-alert{animation:liquidation-flash .2s ease-in-out 3}@keyframes liquidation-flash{0%,to{background:var(--bg-page)}50%{background:var(--danger);box-shadow:inset 0 0 100px #ff000080}}.quant-master .header{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;background:var(--bg-card);border:1px solid var(--border-dark);border-radius:8px;margin-bottom:20px;box-shadow:var(--shadow)}.quant-master .game-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex:1}.quant-master .game-title{margin:0;font-size:24px;font-weight:700;color:var(--text-highlight);text-shadow:0 0 10px var(--primary);flex:1}.quant-master .tutorial-button{background:var(--primary);color:#fff;border:none;padding:.6rem 1.2rem;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s;box-shadow:var(--shadow)}.quant-master .tutorial-button:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);background:var(--primary-hover)}.quant-master .tutorial-button:active{transform:translateY(0)}.quant-master .equity-display{display:flex;gap:20px;align-items:center;font-size:14px}.quant-master .equity-label,.quant-master .cash-label{color:var(--text-secondary)}.quant-master .equity-value{font-size:20px;font-weight:700;color:var(--gold);text-shadow:0 0 8px var(--gold)}.quant-master .cash-value{font-size:18px;font-weight:700;color:var(--success);text-shadow:0 0 8px var(--success)}.quant-master .message{position:fixed;top:20px;right:20px;background:var(--bg-card);border:1px solid var(--primary);border-radius:6px;padding:12px 20px;color:var(--primary);font-size:14px;z-index:1000;box-shadow:var(--shadow-lg);animation:slide-in .3s ease-out}@keyframes slide-in{0%{transform:translate(400px);opacity:0}to{transform:translate(0);opacity:1}}.quant-master .main-layout{display:grid;grid-template-columns:250px 1fr 350px;gap:15px;margin-bottom:20px}.quant-master .market-list{background:var(--bg-card);border:1px solid var(--border);border-radius:8px;padding:15px;height:fit-content;max-height:90vh;overflow-y:auto}.quant-master .market-list h3{margin:0 0 15px;font-size:14px;color:var(--text-secondary);text-transform:uppercase;letter-spacing:1px}.quant-master .market-item{padding:12px;margin-bottom:8px;background:var(--bg-panel);border:1px solid var(--border);border-radius:6px;cursor:pointer;transition:all .2s ease}.quant-master .market-item:hover{background:var(--bg-game-stage);border-color:var(--primary);box-shadow:var(--shadow-sm)}.quant-master .market-item.active{background:var(--bg-game-stage);border-color:var(--primary);box-shadow:var(--shadow)}.quant-master .stock-name{font-size:14px;font-weight:700;color:var(--text-primary);margin-bottom:4px}.quant-master .stock-symbol{font-size:11px;color:var(--text-secondary);margin-bottom:6px}.quant-master .stock-price{font-size:16px;font-weight:700;color:var(--gold);margin-bottom:4px}.quant-master .stock-change{font-size:12px;font-weight:700}.quant-master .stock-change.up{color:var(--success)}.quant-master .stock-change.down{color:var(--danger)}.quant-master .center-panel{display:flex;flex-direction:column;gap:15px}.quant-master .chart-section{background:var(--bg-card);border:1px solid var(--border);border-radius:8px;padding:20px}.quant-master .chart-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.quant-master .chart-header h3{margin:0;font-size:16px;color:var(--text-primary)}.quant-master .current-price-large{font-size:28px;font-weight:700;color:var(--gold);text-shadow:0 0 10px var(--gold)}.quant-master .trade-section{background:var(--bg-card);border:1px solid var(--border);border-radius:8px;padding:20px}.quant-master .trade-section h3{margin:0 0 15px;font-size:14px;color:var(--text-secondary);text-transform:uppercase;letter-spacing:1px}.quant-master .trade-form{display:flex;flex-direction:column;gap:15px}.quant-master .form-row{display:flex;align-items:center;gap:10px}.quant-master .form-row label{min-width:80px;font-size:13px;color:var(--text-secondary)}.quant-master .form-row input[type=number]{flex:1;background:var(--bg-panel);border:1px solid var(--border);border-radius:4px;padding:8px 12px;color:var(--text-primary);font-family:inherit;font-size:14px}.quant-master .form-row input[type=number]:focus{outline:none;border-color:var(--primary);box-shadow:0 0 8px var(--primary)}.quant-master .unit{font-size:13px;color:var(--text-secondary)}.quant-master .direction-buttons{display:flex;gap:10px;flex:1}.quant-master .btn-long,.quant-master .btn-short{flex:1;padding:10px;border:1px solid var(--border);border-radius:4px;background:var(--bg-panel);color:var(--text-secondary);cursor:pointer;transition:all .2s ease;font-family:inherit;font-size:13px;font-weight:700}.quant-master .btn-long:hover{border-color:var(--success);color:var(--success)}.quant-master .btn-short:hover{border-color:var(--danger);color:var(--danger)}.quant-master .btn-long.active{background:var(--bg-game-stage);border-color:var(--success);color:var(--success);box-shadow:0 0 10px var(--success)}.quant-master .btn-short.active{background:var(--bg-game-stage);border-color:var(--danger);color:var(--danger);box-shadow:0 0 10px var(--danger)}.quant-master .leverage-slider{flex:1;height:6px;background:var(--bg-panel);border-radius:3px;outline:none;-webkit-appearance:none}.quant-master .leverage-slider::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;background:var(--gold);border-radius:50%;cursor:pointer;box-shadow:0 0 8px var(--gold)}.quant-master .leverage-slider::-moz-range-thumb{width:16px;height:16px;background:var(--gold);border-radius:50%;cursor:pointer;box-shadow:0 0 8px var(--gold);border:none}.quant-master .leverage-info{font-size:12px;color:var(--gold);min-width:120px;text-align:right}.quant-master .btn-open-position{width:100%;padding:12px;background:var(--primary);border:none;border-radius:6px;color:#fff;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer;transition:all .2s ease;text-transform:uppercase;letter-spacing:1px;box-shadow:var(--shadow)}.quant-master .btn-open-position:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);background:var(--primary-hover)}.quant-master .btn-open-position:active{transform:translateY(0)}.quant-master .btn-open-position:disabled{opacity:.5;cursor:not-allowed;transform:none}.quant-master .right-panel{display:flex;flex-direction:column;gap:15px}.quant-master .news-section{background:var(--bg-card);border:1px solid var(--border);border-radius:8px;padding:15px;max-height:300px;display:flex;flex-direction:column}.quant-master .news-section h3{margin:0 0 12px;font-size:14px;color:var(--text-secondary);text-transform:uppercase;letter-spacing:1px}.quant-master .news-list{flex:1;overflow-y:auto}.quant-master .empty-news{color:var(--text-muted);font-size:12px;text-align:center;padding:20px}.quant-master .news-item{padding:10px;margin-bottom:8px;background:var(--bg-panel);border-left:3px solid var(--gold);border-radius:4px;font-size:12px}.quant-master .news-content{color:var(--text-primary);margin-bottom:4px;line-height:1.4}.quant-master .news-time{color:var(--text-secondary);font-size:10px}.quant-master .positions-section{background:var(--bg-card);border:1px solid var(--border);border-radius:8px;padding:15px;flex:1;display:flex;flex-direction:column}.quant-master .positions-section h3{margin:0 0 12px;font-size:14px;color:var(--text-secondary);text-transform:uppercase;letter-spacing:1px}.quant-master .positions-list{flex:1;overflow-y:auto}.quant-master .empty-positions{color:var(--text-muted);font-size:12px;text-align:center;padding:20px}.quant-master .position-item{padding:12px;margin-bottom:10px;background:var(--bg-panel);border:1px solid var(--border);border-radius:6px;font-size:12px;transition:all .2s ease}.quant-master .position-item.near-liquidation{border-color:var(--danger);background:var(--bg-game-stage);animation:danger-pulse 1s ease-in-out infinite}@keyframes danger-pulse{0%,to{box-shadow:0 0 5px var(--danger)}50%{box-shadow:0 0 15px var(--danger)}}.quant-master .position-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.quant-master .position-symbol{font-size:14px;font-weight:700;color:var(--text-primary)}.quant-master .position-type{padding:3px 8px;border-radius:4px;font-size:11px;font-weight:700}.quant-master .position-type.long{background:var(--bg-game-stage);color:var(--success)}.quant-master .position-type.short{background:var(--bg-game-stage);color:var(--danger)}.quant-master .position-info{display:flex;justify-content:space-between;color:var(--text-secondary);margin-bottom:4px}.quant-master .position-pnl{font-size:14px;font-weight:700;margin:8px 0;padding:6px;border-radius:4px;text-align:center}.quant-master .position-pnl.profit{background:var(--bg-game-stage);color:var(--success)}.quant-master .position-pnl.loss{background:var(--bg-game-stage);color:var(--danger)}.quant-master .position-liquidation{color:var(--danger);font-size:11px;margin-bottom:8px}.quant-master .btn-close-position{width:100%;padding:8px;background:var(--bg-panel);border:1px solid var(--border-dark);border-radius:4px;color:var(--text-primary);font-family:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:all .2s ease}.quant-master .btn-close-position:hover{background:var(--bg-game-stage);border-color:var(--primary);color:var(--primary)}.quant-master .footer{display:flex;gap:10px;justify-content:center;padding:15px;background:var(--bg-card);border:1px solid var(--border);border-radius:8px}.quant-master .footer button{padding:10px 20px;background:var(--bg-panel);border:1px solid var(--border);border-radius:4px;color:var(--text-primary);font-family:inherit;font-size:13px;cursor:pointer;transition:all .2s ease}.quant-master .footer button:hover{background:var(--bg-game-stage);border-color:var(--primary);color:var(--primary)}.quant-master .footer button.danger{border-color:var(--danger);color:var(--danger)}.quant-master .footer button.danger:hover{background:var(--bg-game-stage);box-shadow:0 0 10px var(--danger)}.quant-master .footer button:disabled{opacity:.5;cursor:not-allowed}.quant-master .loading{display:flex;justify-content:center;align-items:center;height:100vh;font-size:18px;color:var(--primary);text-shadow:0 0 10px var(--primary)}.quant-master ::-webkit-scrollbar{width:8px;height:8px}.quant-master ::-webkit-scrollbar-track{background:var(--bg-page)}.quant-master ::-webkit-scrollbar-thumb{background:var(--border-dark);border-radius:4px}.quant-master ::-webkit-scrollbar-thumb:hover{background:var(--primary)}@media (max-width: 1400px){.quant-master .main-layout{grid-template-columns:200px 1fr 300px}}@media (max-width: 1200px){.quant-master .main-layout{grid-template-columns:1fr}.quant-master .market-list{max-height:200px}}.app{display:flex;flex-direction:column;min-height:100vh}.main-content{flex:1}*{margin:0;padding:0;box-sizing:border-box}:root{--bg-page: #f3f4f6;--bg-card: #ffffff;--bg-game-stage: #e5e7eb;--bg-panel: #f9fafb;--text-primary: #1f2937;--text-secondary: #6b7280;--text-highlight: #7c3aed;--text-muted: #9ca3af;--primary: #7c3aed;--primary-hover: #6d28d9;--primary-dark: #5b21b6;--success: #10b981;--success-hover: #059669;--danger: #ef4444;--danger-hover: #dc2626;--warning: #f59e0b;--info: #3b82f6;--border: #e5e7eb;--border-dark: #d1d5db;--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1);--gold: #fbbf24;--hp-bar: #ef4444;--mana-bar: #3b82f6}[data-theme=dark]{--bg-page: #111827;--bg-card: #1f2937;--bg-game-stage: #000000;--bg-panel: #374151;--text-primary: #f3f4f6;--text-secondary: #9ca3af;--text-highlight: #60a5fa;--text-muted: #6b7280;--primary: #3b82f6;--primary-hover: #2563eb;--primary-dark: #1d4ed8;--success: #10b981;--success-hover: #059669;--danger: #f87171;--danger-hover: #ef4444;--warning: #fbbf24;--info: #60a5fa;--border: #374151;--border-dark: #4b5563;--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .5);--shadow: 0 4px 6px -1px rgba(0, 0, 0, .5);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .5);--gold: #fbbf24;--hp-bar: #ef4444;--mana-bar: #3b82f6}[data-theme=cyberpunk]{--bg-page: #050505;--bg-card: #1a0b2e;--bg-game-stage: #0f0518;--bg-panel: #2d1b4e;--text-primary: #00ffea;--text-secondary: #ff00ff;--text-highlight: #fcee0a;--text-muted: #a78bfa;--primary: #ff0099;--primary-hover: #d60080;--primary-dark: #b3006b;--success: #00ff88;--success-hover: #00cc6a;--danger: #ff0055;--danger-hover: #cc0044;--warning: #fcee0a;--info: #00ffea;--border: #00ffea;--border-dark: #ff00ff;--shadow-sm: 0 0 5px rgba(0, 255, 234, .2);--shadow: 0 0 15px rgba(0, 255, 234, .2);--shadow-lg: 0 0 30px rgba(255, 0, 255, .3);--gold: #fcee0a;--hp-bar: #ff0055;--mana-bar: #00ffea}[data-theme=forest]{--bg-page: #ecfdf5;--bg-card: #ffffff;--bg-game-stage: #d1fae5;--bg-panel: #f0fdf4;--text-primary: #064e3b;--text-secondary: #047857;--text-highlight: #059669;--text-muted: #6b7280;--primary: #10b981;--primary-hover: #059669;--primary-dark: #047857;--success: #10b981;--success-hover: #059669;--danger: #dc2626;--danger-hover: #b91c1c;--warning: #f59e0b;--info: #0ea5e9;--border: #a7f3d0;--border-dark: #6ee7b7;--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--shadow: 0 4px 6px -1px rgba(16, 185, 129, .1);--shadow-lg: 0 10px 15px -3px rgba(16, 185, 129, .15);--gold: #f59e0b;--hp-bar: #dc2626;--mana-bar: #0ea5e9}[data-theme=ocean]{--bg-page: #0f172a;--bg-card: #1e293b;--bg-game-stage: #020617;--bg-panel: #334155;--text-primary: #e2e8f0;--text-secondary: #94a3b8;--text-highlight: #38bdf8;--text-muted: #64748b;--primary: #0ea5e9;--primary-hover: #0284c7;--primary-dark: #0369a1;--success: #22c55e;--success-hover: #16a34a;--danger: #f43f5e;--danger-hover: #e11d48;--warning: #f59e0b;--info: #38bdf8;--border: #1e293b;--border-dark: #334155;--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .5);--shadow: 0 4px 6px -1px rgba(14, 165, 233, .3);--shadow-lg: 0 10px 15px -3px rgba(14, 165, 233, .4);--gold: #fbbf24;--hp-bar: #f43f5e;--mana-bar: #38bdf8}[data-theme=sunset]{--bg-page: #fff7ed;--bg-card: #ffffff;--bg-game-stage: #ffedd5;--bg-panel: #fffbeb;--text-primary: #7c2d12;--text-secondary: #c2410c;--text-highlight: #ea580c;--text-muted: #78716c;--primary: #f97316;--primary-hover: #ea580c;--primary-dark: #c2410c;--success: #16a34a;--success-hover: #15803d;--danger: #dc2626;--danger-hover: #b91c1c;--warning: #f59e0b;--info: #0ea5e9;--border: #fed7aa;--border-dark: #fdba74;--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--shadow: 0 4px 6px -1px rgba(249, 115, 22, .1);--shadow-lg: 0 10px 15px -3px rgba(249, 115, 22, .15);--gold: #f59e0b;--hp-bar: #dc2626;--mana-bar: #0ea5e9}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--bg-page);color:var(--text-primary);line-height:1.6;transition:background-color .3s ease,color .3s ease}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:var(--bg-panel)}::-webkit-scrollbar-thumb{background:var(--border-dark);border-radius:5px}::-webkit-scrollbar-thumb:hover{background:var(--primary)}.text-center{text-align:center}.mt-1{margin-top:1rem}.mt-2{margin-top:2rem}.mb-1{margin-bottom:1rem}.mb-2{margin-bottom:2rem}.p-1{padding:1rem}.p-2{padding:2rem}@media (max-width: 768px){body{font-size:14px}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fade-in{animation:fadeIn .3s ease-in}.no-select{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}a{color:var(--primary);text-decoration:none;transition:color .3s}a:hover{color:var(--primary-hover)}button{font-family:inherit;font-size:inherit}input,textarea{font-family:inherit}input:focus,textarea:focus{outline:none}
