@media (min-width: 1024px){.map-home{position:relative;min-height:100vh;background:linear-gradient(180deg,#87ceeb,#b8e6f5,#90c890);overflow:hidden;display:flex;align-items:center;justify-content:center}.map-home:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background-image:var(--bg-image);background-size:cover;background-position:center;background-repeat:no-repeat;opacity:1;z-index:0}}@media (max-width: 1023px){.map-home{position:relative;min-height:100vh;background:linear-gradient(180deg,#87ceeb,#b8e6f5,#90c890);overflow:hidden;display:flex;align-items:center;justify-content:center}.map-home:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background-image:var(--bg-image-mobile);background-size:cover;background-position:center;background-repeat:no-repeat;opacity:1;z-index:0}}.settings-button{position:fixed;bottom:20px;right:20px;width:60px;height:60px;border-radius:15px;border:none;background:linear-gradient(145deg,#f0b050,#d4941f);box-shadow:0 6px #a07520,0 8px 15px #0000004d;font-size:32px;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;z-index:1000}.settings-button:hover{transform:translateY(-2px);box-shadow:0 8px #a07520,0 10px 20px #0006}.settings-button:active{transform:translateY(4px);box-shadow:0 2px #a07520,0 4px 10px #0000004d}.button-icon{width:70%;height:70%;object-fit:contain;filter:brightness(1.1)}.admin-toggle{position:fixed;top:20px;left:20px;padding:12px 24px;border-radius:12px;border:none;background:#fff3;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;font-weight:700;font-size:.9rem;cursor:pointer;transition:all .3s ease;z-index:1000;box-shadow:0 4px 15px #0003}.admin-toggle:hover{background:#ffffff4d;transform:translateY(-2px);box-shadow:0 6px 20px #0000004d}.admin-toggle.active{background:linear-gradient(145deg,#10b981,#059669);color:#fff}@media (min-width: 1024px){.home-content{position:relative;display:flex;flex-direction:column;align-items:center;gap:20px;padding:40px 20px 20px;max-width:100%;width:100%;z-index:1;transform:translateY(-80px)}}@media (max-width: 1023px){.home-content{position:relative;display:flex;flex-direction:column;align-items:center;gap:20px;padding:40px 20px 20px;max-width:600px;width:100%;z-index:1;transform:translateY(-80px)}}.game-title-image{width:100%;max-width:350px;height:auto;margin-bottom:10px;filter:drop-shadow(0 8px 20px rgba(0,0,0,.3));animation:titleFloat 3s ease-in-out infinite}@keyframes titleFloat{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.character-background{display:none}.button-stack{display:flex;flex-direction:column;align-items:center;gap:30px;margin:40px auto 0;z-index:10}.wood-button{width:300px;height:auto;filter:drop-shadow(0 8px 20px rgba(0,0,0,.3));transition:all .3s ease}.wood-button.clickable{cursor:pointer}.wood-button.clickable:hover{filter:drop-shadow(0 12px 30px rgba(0,0,0,.5)) brightness(1.15);transform:translateY(-5px) scale(1.05)}.wood-button.clickable:active{filter:drop-shadow(0 4px 10px rgba(0,0,0,.4)) brightness(.95);transform:translateY(2px) scale(.98)}.version-badge{position:fixed;bottom:20px;left:20px;padding:8px 16px;background:#ffffff4d;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:20px;font-weight:700;color:#0009;font-size:.9rem;box-shadow:0 4px 15px #0003}@media (min-width: 769px) and (max-width: 1023px){.game-title-image{max-width:350px}.wood-button{width:280px}.button-stack{gap:25px}}@media (min-width: 481px) and (max-width: 768px){.game-title-image{max-width:300px}.wood-button{width:240px}.button-stack{gap:20px}}@media (max-width: 480px){.game-title-image{max-width:250px}.settings-button{bottom:10px;right:10px;width:50px;height:50px;font-size:26px}.version-badge{bottom:10px;left:10px}.wood-button{width:200px}.button-stack{gap:15px;margin-top:30px}}.settings-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:2000;padding:20px;animation:fadeIn .2s ease-out}.settings-menu{background:#fff;border-radius:16px;padding:0;max-width:450px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0000004d;animation:slideUp .3s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.settings-header{display:flex;justify-content:space-between;align-items:center;padding:24px 24px 16px;border-bottom:1px solid #e5e7eb}.settings-title{font-size:1.5rem;font-weight:700;color:#111827;margin:0}.settings-close{width:32px;height:32px;border:none;background:#f3f4f6;border-radius:8px;cursor:pointer;font-size:1.5rem;color:#6b7280;display:flex;align-items:center;justify-content:center;transition:all .2s}.settings-close:hover{background:#e5e7eb;color:#111827}.settings-content{padding:24px}.settings-section{margin-bottom:32px}.settings-section:last-child{margin-bottom:0}.section-title{font-size:1rem;font-weight:600;color:#374151;margin:0 0 16px;text-transform:uppercase;letter-spacing:.5px;font-size:.875rem}.setting-item{margin-bottom:20px}.setting-item:last-child{margin-bottom:0}.setting-label{display:flex;justify-content:space-between;align-items:center;font-size:1rem;color:#111827;font-weight:500;margin-bottom:8px}.toggle-switch{position:relative;width:50px;height:28px;background:#d1d5db;border:none;border-radius:14px;cursor:pointer;transition:background .3s;padding:0}.toggle-switch.active{background:#10b981}.toggle-slider{position:absolute;top:3px;left:3px;width:22px;height:22px;background:#fff;border-radius:50%;transition:transform .3s;box-shadow:0 2px 4px #0003}.toggle-switch.active .toggle-slider{transform:translate(22px)}.volume-value{font-weight:600;color:#6b7280;min-width:45px;text-align:right}.volume-slider{width:100%;height:6px;border-radius:3px;background:#e5e7eb;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}.volume-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:20px;height:20px;border-radius:50%;background:#10b981;cursor:pointer;box-shadow:0 2px 4px #0003;transition:all .2s}.volume-slider::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:#10b981;cursor:pointer;border:none;box-shadow:0 2px 4px #0003;transition:all .2s}.volume-slider::-webkit-slider-thumb:hover{background:#059669;transform:scale(1.1)}.volume-slider::-moz-range-thumb:hover{background:#059669;transform:scale(1.1)}.volume-slider:disabled{opacity:.4;cursor:not-allowed}.volume-slider:disabled::-webkit-slider-thumb{cursor:not-allowed;background:#9ca3af}.volume-slider:disabled::-moz-range-thumb{cursor:not-allowed;background:#9ca3af}.volume-slider::-webkit-slider-runnable-track{background:linear-gradient(to right,#10b981 0%,#10b981 var(--value, 50%),#e5e7eb var(--value, 50%),#e5e7eb 100%)}.volume-slider::-moz-range-track{background:#e5e7eb}.volume-slider::-moz-range-progress{background:#10b981}.language-options{display:flex;flex-direction:column;gap:12px}.language-btn{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#f9fafb;border:2px solid #e5e7eb;border-radius:12px;cursor:pointer;transition:all .2s;font-size:1rem}.language-btn:hover{background:#f3f4f6;border-color:#d1d5db}.language-btn.active{background:#ecfdf5;border-color:#10b981;box-shadow:0 0 0 3px #10b9811a}.language-flag{font-size:1.5rem;line-height:1}.language-name{font-weight:500;color:#111827}.danger-section{border-top:2px solid #fee2e2;padding-top:24px}.reset-progress-btn{width:100%;padding:14px 20px;background:linear-gradient(145deg,#ef4444,#dc2626);color:#fff;border:none;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s;box-shadow:0 4px 12px #ef44444d}.reset-progress-btn:hover{background:linear-gradient(145deg,#dc2626,#b91c1c);transform:translateY(-2px);box-shadow:0 6px 16px #ef444466}.reset-progress-btn:active{transform:translateY(0);box-shadow:0 2px 8px #ef44444d}.reset-warning{margin-top:8px;font-size:.875rem;color:#dc2626;text-align:center;font-weight:500}.confirm-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:3000;padding:20px;animation:fadeIn .2s ease-out}.confirm-modal{background:#fff;border-radius:16px;padding:32px;max-width:400px;width:100%;text-align:center;animation:slideUp .3s ease-out;box-shadow:0 20px 60px #0006}.confirm-icon{font-size:4rem;margin-bottom:16px}.confirm-title{font-size:1.5rem;font-weight:700;color:#111827;margin:0 0 12px}.confirm-text{font-size:1rem;color:#6b7280;margin:0 0 24px;line-height:1.6}.confirm-actions{display:flex;gap:12px}.confirm-cancel,.confirm-delete{flex:1;padding:12px 24px;border:none;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s}.confirm-cancel{background:#f3f4f6;color:#374151}.confirm-cancel:hover{background:#e5e7eb}.confirm-delete{background:linear-gradient(145deg,#ef4444,#dc2626);color:#fff;box-shadow:0 4px 12px #ef44444d}.confirm-delete:hover{background:linear-gradient(145deg,#dc2626,#b91c1c);transform:translateY(-2px);box-shadow:0 6px 16px #ef444466}.confirm-delete:active{transform:translateY(0)}@media (max-width: 480px){.settings-menu{max-width:100%;border-radius:16px 16px 0 0;margin-top:auto}.settings-header{padding:20px 20px 12px}.settings-title{font-size:1.25rem}.settings-content{padding:20px}.section-title{font-size:.8125rem}.language-btn{padding:12px 14px}.confirm-modal{padding:24px}.confirm-icon{font-size:3rem}.confirm-title{font-size:1.25rem}.confirm-text{font-size:.9rem}}.video-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000d9;display:flex;align-items:center;justify-content:center;z-index:10000;animation:fadeIn .3s ease-in-out}.video-modal-content{position:relative;width:90%;max-width:1200px;background:#000;border-radius:12px;overflow:hidden;box-shadow:0 10px 40px #00000080;animation:slideUp .3s ease-out}@keyframes slideUp{0%{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}.video-modal-close{position:absolute;top:-60px;right:0;width:50px;height:50px;background:#fff;border:3px solid #333;border-radius:50%;font-size:28px;font-weight:700;color:#333;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;z-index:10001;box-shadow:0 4px 20px #00000080}.video-modal-close:hover{background:#f44;color:#fff;border-color:#f44;transform:scale(1.15) rotate(90deg);box-shadow:0 6px 25px #ff444480}.video-modal-close:active{transform:scale(1.05) rotate(90deg)}.video-container{position:relative;width:100%;padding-bottom:56.25%;height:0;overflow:hidden}.video-container iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:none}@media (max-width: 768px){.video-modal-content{width:95%;max-width:none}.video-modal-close{top:-55px;width:44px;height:44px;font-size:24px}}@media (max-width: 480px){.video-modal-close{top:10px;right:10px;width:40px;height:40px;font-size:22px;background:#fff}}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:2000;padding:20px}.modal-content{background:#fff;border-radius:16px;padding:30px;max-width:500px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0000004d}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.modal-title{font-size:1.5rem;font-weight:700;color:#111827}.close-button{width:32px;height:32px;border:none;background:#f3f4f6;border-radius:8px;cursor:pointer;font-size:1.2rem;display:flex;align-items:center;justify-content:center;transition:all .2s}.close-button:hover{background:#e5e7eb}.form-group{margin-bottom:20px}.form-label{display:block;font-weight:600;color:#374151;margin-bottom:8px}.form-input{width:100%;padding:12px;border:2px solid #e5e7eb;border-radius:8px;font-size:1rem;transition:all .2s}.form-input:focus{outline:none;border-color:#10b981}.form-select{width:100%;padding:12px;border:2px solid #e5e7eb;border-radius:8px;font-size:1rem;background:#fff;cursor:pointer;transition:all .2s}.form-select:focus{outline:none;border-color:#10b981}.form-select:disabled{background:#f3f4f6;cursor:not-allowed;opacity:.6}.checkbox-group{display:flex;align-items:center;gap:10px;padding:12px;background:#f0fdf4;border:2px solid #10b981;border-radius:8px;margin-bottom:20px}.checkbox-input{width:20px;height:20px;cursor:pointer}.checkbox-label{font-weight:600;color:#065f46;cursor:pointer}.file-input-wrapper{position:relative;overflow:hidden;display:inline-block;width:100%}.file-input-button{width:100%;padding:12px;background:#f3f4f6;border:2px dashed #9ca3af;border-radius:8px;text-align:center;cursor:pointer;transition:all .2s}.file-input-button:hover{background:#e5e7eb;border-color:#6b7280}.file-input{position:absolute;left:-9999px}.image-preview{width:100%;height:200px;border-radius:12px;object-fit:cover;margin-top:15px;border:2px solid #e5e7eb}.modal-actions{display:flex;gap:12px;margin-top:25px}.cancel-button,.save-button{flex:1;padding:14px;border:none;border-radius:8px;font-weight:600;font-size:1rem;cursor:pointer;transition:all .2s}.cancel-button{background:#f3f4f6;color:#374151}.cancel-button:hover{background:#e5e7eb}.save-button{background:#10b981;color:#fff}.save-button:hover{background:#059669}.save-button:disabled{background:#d1d5db;cursor:not-allowed}.star-rating{display:flex;gap:8px;margin-bottom:8px}.star{font-size:2rem;cursor:pointer;color:#d1d5db;transition:all .2s;-webkit-user-select:none;user-select:none}.star:hover{transform:scale(1.2)}.star.active{color:#fbbf24;text-shadow:0 0 10px rgba(251,191,36,.5)}.difficulty-label{font-size:.875rem;font-weight:600;color:#6b7280;text-align:center}.map-view{min-height:100vh;background:linear-gradient(180deg,#87ceeb,#b8e6f5,#90c890);padding:0 0 80px;overflow-x:hidden}.map-header{display:flex;justify-content:center;align-items:center;gap:20px;padding:16px 20px;background:#ffffff40;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);border-radius:0;margin-bottom:30px;box-shadow:0 4px 12px #00000014;border:none;outline:none;position:relative}.mode-title{font-size:1.5rem;font-weight:700;color:#374151;white-space:nowrap;position:absolute;right:20px}.back-button{padding:8px 16px;background:transparent;border:none;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;position:absolute;left:20px}.back-button:hover{transform:translateY(-2px) scale(1.05)}.back-icon{height:40px;width:auto}.mode-toggle-button{position:absolute;right:20px;height:60px;width:auto;cursor:pointer;transition:all .3s ease;filter:drop-shadow(0 8px 20px rgba(0,0,0,.3))}.mode-toggle-button:hover{filter:drop-shadow(0 12px 30px rgba(0,0,0,.5)) brightness(1.15);transform:translateY(-5px) scale(1.05)}.mode-toggle-button:active{filter:drop-shadow(0 4px 10px rgba(0,0,0,.4)) brightness(.95);transform:translateY(2px) scale(.98)}.floating-add-button{position:fixed;bottom:30px;right:30px;padding:16px 32px;background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;border-radius:50px;font-weight:700;font-size:1rem;cursor:pointer;box-shadow:0 8px 24px #10b98166;transition:all .3s cubic-bezier(.4,0,.2,1);z-index:1000;display:flex;align-items:center;gap:8px}.floating-add-button:hover{background:linear-gradient(135deg,#059669,#047857);transform:translateY(-4px) scale(1.05);box-shadow:0 12px 32px #10b98180}.floating-add-button:active{transform:translateY(-2px) scale(1.02);box-shadow:0 6px 16px #10b98166}@media (min-width: 769px){.map-container{position:relative;max-width:900px;margin:0 auto;padding:40px 20px;display:grid;grid-template-columns:repeat(3,1fr);gap:60px 40px;align-items:start}}@media (max-width: 768px){.map-container{position:relative;max-width:600px;margin:0 auto;padding:40px 20px;display:flex;flex-direction:column;align-items:center;gap:60px}}.map-path-svg{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1;overflow:visible}.path-line{fill:none;stroke:#3498db;stroke-width:16;stroke-linecap:round;stroke-linejoin:round;opacity:.9}.path-background{fill:none;stroke:#2980b9;stroke-width:22;stroke-linecap:round;stroke-linejoin:round;opacity:.6}@media (min-width: 769px){.mobile-path{display:none}}@media (max-width: 768px){.desktop-path{display:none}}.stage-node{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:12px;transition:all .3s cubic-bezier(.4,0,.2,1)}.stage-node.draggable{cursor:move}.stage-node.dragging{opacity:.5;transform:scale(.9)}.stage-node.drag-over{transform:scale(1.1)}.stage-circle{position:relative;width:120px;height:120px;border-radius:50%;background:linear-gradient(145deg,#fff,#f3f4f6);border:6px solid #e5e7eb;box-shadow:0 8px #b8a88c,0 12px 24px #0003;cursor:pointer;transition:all .2s ease;overflow:hidden;display:flex;align-items:center;justify-content:center}.stage-circle:hover{transform:translateY(-4px);box-shadow:0 12px #b8a88c,0 16px 32px #0000004d}.stage-circle:active{transform:translateY(4px);box-shadow:0 4px #b8a88c,0 8px 16px #0003}.stage-circle.completed{background:linear-gradient(145deg,#10b981,#059669);border-color:#10b981;box-shadow:0 8px #047857,0 12px 24px #10b98166}.stage-circle.completed:hover{box-shadow:0 12px #047857,0 16px 32px #10b98180}.stage-preview{width:100%;height:100%;object-fit:cover;border-radius:50%}.stage-circle.locked{background:linear-gradient(145deg,#9ca3af,#6b7280);border-color:#9ca3af;cursor:not-allowed;opacity:.6;box-shadow:0 8px #6b7280,0 12px 24px #0003}.stage-circle.locked:hover{transform:none;box-shadow:0 8px #6b7280,0 12px 24px #0003}.stage-circle.locked:active{transform:none}.locked-overlay{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;z-index:15;pointer-events:none}.lock-icon{font-size:48px;filter:drop-shadow(0 2px 8px rgba(0,0,0,.4))}.stage-node.locked{opacity:.7}.completed-checkmark{position:absolute;top:-4px;right:-4px;width:40px;height:40px;background:linear-gradient(135deg,#10b981,#059669);border-radius:50%;border:4px solid white;display:flex;align-items:center;justify-content:center;font-size:20px;color:#fff;box-shadow:0 4px 12px #10b98180;z-index:10}.stage-label{font-size:1.1rem;font-weight:700;color:#fff;text-align:center;text-shadow:0 2px 8px rgba(0,0,0,.3);max-width:140px}.admin-controls{display:flex;gap:8px;margin-top:8px}.delete-button{padding:6px 12px;background:#fee2e2f2;color:#991b1b;border:1px solid rgba(153,27,27,.2);border-radius:6px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s}.delete-button:hover{background:#fecaca;transform:translateY(-2px)}.empty-state{text-align:center;padding:80px 20px;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.2)}.empty-state-icon{font-size:5rem;margin-bottom:20px;opacity:.8}.empty-state h3{font-size:1.5rem;margin-bottom:10px}.empty-state p{font-size:1rem;opacity:.9}.progress-unified{display:flex;align-items:center;justify-content:center;gap:16px;padding:12px 20px;background:#ffffff4d;border-radius:50px;max-width:280px;margin:0 auto;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.4)}.progress-circle{flex-shrink:0}.progress-circle svg{filter:drop-shadow(0 2px 4px rgba(16,185,129,.2))}.progress-circle circle{transition:stroke-dashoffset .5s ease}.progress-info{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.progress-label{font-size:1rem;font-weight:700;color:#374151;text-transform:uppercase;letter-spacing:.5px}.progress-numbers{font-size:1rem;font-weight:700;color:#2d1810}.difficulty-badge{display:inline-block;padding:4px 12px;border-radius:12px;font-size:.85rem;font-weight:700;background:#ffffffe6;color:#374151;border:1px solid rgba(0,0,0,.1)}@media (max-width: 768px){.map-view{padding:0 0 60px}.map-header{padding:12px 16px;margin-bottom:20px;flex-wrap:wrap;gap:12px;border-radius:0;border:none;outline:none;justify-content:center}.mode-title{font-size:1.2rem;position:static;order:-1;width:100%;text-align:center}.back-button{position:static;order:-2}.mode-toggle-button{position:static;order:0;height:50px}.map-container{padding:30px 15px;gap:60px}.stage-circle{width:100px;height:100px;border-width:5px}.stage-label{font-size:1rem;max-width:120px}.completed-checkmark{width:34px;height:34px;font-size:17px;border-width:3px}.progress-unified{max-width:100%;gap:12px;padding:10px 16px;margin-right:30px}.progress-circle svg{width:50px;height:50px}.progress-label,.progress-numbers{font-size:.9rem}}@media (max-width: 480px){.map-view{padding:0 0 60px}.map-header{border-radius:0;border:none;outline:none;gap:8px;padding:16px 12px;min-height:90px;justify-content:flex-start;position:relative}.progress-unified{margin-right:0;margin-left:0;gap:8px;padding:8px 12px;max-width:200px;position:relative;left:0}.mode-toggle-button{margin-left:auto}.back-button{position:absolute;left:15px;top:105px;z-index:100;padding:8px;background:#fffffff2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:12px;box-shadow:0 4px 16px #00000026;pointer-events:auto}.back-icon{height:36px;width:36px}.map-container{gap:50px;padding:60px 10px 20px}.stage-circle{width:100px;height:100px;border-width:5px}.stage-label{font-size:1rem}.completed-checkmark{width:36px;height:36px;font-size:18px}.mode-toggle-button{height:42px}.floating-add-button{bottom:20px;right:20px;padding:14px 24px;font-size:.9rem}}.close-button{width:40px;height:40px;border:none;background:#f3f4f6;color:#6b7280;font-size:2rem;line-height:1;border-radius:50%;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;padding:0}.close-button:hover{background:#e5e7eb;color:#374151;transform:scale(1.1)}@media (max-width: 768px){.tutorial-modal{max-width:95%}.tutorial-section h3{font-size:1.1rem}.tutorial-section p{font-size:.9rem}}.game-view{min-height:100vh;background:#fdf9f1;padding:0 0 200px;position:relative}.game-header{background-image:var(--wood-nav-bg);background-size:cover;background-position:center;background-repeat:no-repeat;height:110px;padding:12px 20px;box-shadow:0 4px 12px #0006;display:flex;justify-content:center;align-items:center;gap:20px;position:relative}.game-stats-row{display:flex;gap:40px;align-items:center;justify-content:center;position:absolute;left:50%;transform:translate(-50%)}.stat-compact{display:flex;align-items:center;gap:8px;text-align:center}.stat-icon{display:none}.stat-value-compact{font-size:1.3rem;font-weight:700;color:#fff;line-height:1;text-shadow:2px 2px 4px rgba(0,0,0,.5)}.stat-value-compact.time-warning{color:#ff6b6b;animation:pulse-warning 1s infinite}@keyframes pulse-warning{0%,to{opacity:1}50%{opacity:.7}}.stat-label-compact{font-size:1rem;color:#fff;font-weight:600;text-transform:capitalize;letter-spacing:.5px;text-shadow:2px 2px 4px rgba(0,0,0,.5);margin-right:8px}.header-actions{position:absolute;right:20px;display:flex;gap:10px;align-items:center}.back-button{position:absolute;left:20px;padding:0;margin:0;background:none!important;background-color:transparent!important;border:none!important;box-shadow:none!important;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;outline:none!important;-webkit-tap-highlight-color:transparent}.back-button:hover{transform:translateY(-2px) scale(1.05);filter:brightness(1.15);background:none!important;border:none!important}.back-button:active{transform:translateY(1px) scale(.98);filter:brightness(.95);background:none!important;border:none!important}.back-button:focus{outline:none!important;background:none!important;border:none!important}.back-icon{height:60px;width:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,.3));display:block;border:none;background:transparent}.tutorial-button{width:36px;height:36px;padding:0;background:#8b5cf6;color:#fff;border:none;border-radius:50%;font-size:1.4rem;font-weight:900;cursor:pointer;transition:all .2s;box-shadow:0 2px 8px #8b5cf64d;display:flex;align-items:center;justify-content:center;filter:brightness(1.1)}.tutorial-button:hover{background:#7c3aed;transform:translateY(-2px);box-shadow:0 4px 12px #8b5cf666}.hint-button{padding:0;background:transparent;border:none;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:8px;position:relative}.hint-button:hover:not(:disabled){transform:translateY(-2px) scale(1.05);filter:brightness(1.15)}.hint-button:active:not(:disabled){transform:translateY(1px) scale(.98);filter:brightness(.95)}.hint-button:disabled{opacity:.6;cursor:not-allowed;filter:grayscale(.5)}.hint-icon{height:60px;width:auto;filter:drop-shadow(0 2px 4px rgba(0,0,0,.3))}.hint-button span{position:absolute;top:50%;left:calc(50% + 60px);transform:translate(-50%,-50%);background:#fff;color:#2d1810;font-weight:900;font-size:1.5rem;padding:4px 10px;border-radius:8px;box-shadow:0 2px 6px #0000004d;border:2px solid #8B6F47;pointer-events:none;min-width:40px;text-align:center}.puzzle-container{max-width:480px;margin:0 auto;padding:20px 15px 40px;position:relative;z-index:10}.stage-title{text-align:center;font-size:1.8rem;font-weight:700;color:#2d1810;margin-top:20px;margin-bottom:15px}.shop-ticker{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:100%;max-width:600px;background:#fdf9f1;padding:15px 0;overflow:hidden;z-index:100;box-shadow:0 -4px 12px #0000001a}.shop-ticker-title{text-align:center;font-size:1rem;font-weight:700;color:#2d1810;margin-top:10px;margin-bottom:5px}.shop-ticker-track{overflow:hidden;position:relative;width:100%}.shop-ticker-items{display:flex;gap:15px;animation:ticker-scroll 20s linear infinite;will-change:transform}.shop-ticker-items:hover{animation-play-state:paused}.shop-item{height:100px;width:auto;flex-shrink:0;border-radius:8px;box-shadow:none;transition:all .3s ease;cursor:pointer}.shop-item:hover{transform:scale(1.05) translateY(-3px);box-shadow:none}@keyframes ticker-scroll{0%{transform:translate(0)}to{transform:translate(-50%)}}.puzzle-grid{display:grid;gap:5px;background:#ffffff26;padding:5px;border-radius:16px;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:0 8px 32px #0000001a;border:1px solid rgba(255,255,255,.2);overscroll-behavior:contain}.puzzle-grid.easy{grid-template-columns:repeat(2,1fr)}.puzzle-grid.hard{grid-template-columns:repeat(3,1fr)}.puzzle-piece{aspect-ratio:1;border-radius:12px;cursor:pointer;background-size:cover;background-position:center;position:relative;transition:transform .3s linear,box-shadow .2s ease;box-shadow:0 4px 12px #0003,0 1px 3px #0000001a;filter:drop-shadow(0 2px 4px rgba(0,0,0,.2));touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.puzzle-piece:hover{box-shadow:0 8px 24px #0000004d,0 4px 8px #00000026;filter:drop-shadow(0 4px 8px rgba(0,0,0,.3))}.puzzle-piece.correct{box-shadow:0 0 0 3px #10b981,0 8px 24px #10b98166,0 4px 12px #0003;animation:magnetSnap .3s ease-out}@keyframes magnetSnap{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}.puzzle-piece.hollow-slot{background:#ffffff1a;border:3px dashed rgba(255,255,255,.4);box-shadow:inset 0 4px 12px #0000004d;opacity:.5}.puzzle-piece.drop-target{animation:dropTargetPulse 1.2s ease-in-out infinite}@keyframes dropTargetPulse{0%,to{box-shadow:0 0 0 2px #60a5fa99,0 4px 12px #60a5fa4d,inset 0 0 20px #60a5fa1a}50%{box-shadow:0 0 0 4px #60a5facc,0 6px 20px #60a5fa80,inset 0 0 30px #60a5fa33}}.puzzle-piece.dragging{opacity:.9;cursor:move!important;transform:scale(1.15)!important;box-shadow:0 20px 50px #00000080,0 10px 25px #0000004d;z-index:1000;transition:none!important;filter:drop-shadow(0 10px 20px rgba(0,0,0,.4)) brightness(1.1)}.particle{position:absolute;border-radius:50%;animation:particleBurst .8s ease-out forwards;pointer-events:none}@keyframes particleBurst{0%{transform:translate(0) scale(1);opacity:1}to{transform:translate(var(--tx),var(--ty)) scale(0);opacity:0}}.hint-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:#000000e6;display:flex;align-items:center;justify-content:center;z-index:1000;border-radius:16px}.hint-overlay.hint-fade-out{animation:fadeOut .3s ease-in-out forwards}.hint-image-container{text-align:center;max-width:90%;max-height:90%}.hint-image{max-width:100%;max-height:500px;border-radius:12px;box-shadow:0 8px 32px #00000080;animation:scaleIn .3s ease-in-out}.hint-timer{margin-top:20px;color:#f59e0b;font-weight:700;font-size:3rem;animation:pulse 1s infinite;text-shadow:0 2px 8px rgba(0,0,0,.5)}@keyframes scaleIn{0%{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.6}}.win-modal{position:fixed;top:20px;left:50%;transform:translate(-50%);background:#fff;border-radius:16px;padding:24px 36px;box-shadow:0 20px 60px #0000004d;z-index:3000;text-align:center;animation:slideDown .5s cubic-bezier(.68,-.55,.265,1.55)}@keyframes slideDown{0%{transform:translate(-50%) translateY(-100px);opacity:0}to{transform:translate(-50%) translateY(0);opacity:1}}.win-title{font-size:1.75rem;font-weight:900;color:#10b981;margin-bottom:16px}.win-stats{display:flex;justify-content:space-around;gap:30px;margin:20px 0}.win-stat{text-align:center}.win-stat-value{font-size:1.8rem;font-weight:700;color:#10b981}.win-stat-label{font-size:.9rem;color:#6b7280;margin-top:4px}.pb-indicator{background:#fef3c7;color:#92400e;padding:8px 16px;border-radius:8px;font-weight:600;margin-top:15px;display:inline-block}.win-button{width:100%;padding:14px;background:#10b981;color:#fff;border:none;border-radius:8px;font-weight:600;font-size:1rem;cursor:pointer;margin-top:20px;transition:all .2s}.win-button:hover{background:#059669;transform:translateY(-2px)}#confetti-canvas{position:fixed!important;top:0!important;left:0!important;width:100vw!important;height:100vh!important;pointer-events:none!important;z-index:1500!important;display:none;background:none!important;background-color:#0000!important;background-image:none!important;border:none!important;outline:none!important;box-shadow:none!important}.time-expired-modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:#fff;border-radius:16px;padding:40px;box-shadow:0 20px 60px #0006;z-index:3000;text-align:center;animation:scaleIn .3s ease-in-out;max-width:400px;width:90%}.time-expired-emoji{font-size:4rem;margin-bottom:15px}.time-expired-title{font-size:2rem;font-weight:900;color:#ef4444;margin-bottom:10px}.time-expired-text{font-size:1.1rem;color:#6b7280;margin-bottom:25px}.time-expired-actions{display:flex;flex-direction:column;gap:12px}.restart-button{width:100%;padding:14px;background:#10b981;color:#fff;border:none;border-radius:8px;font-weight:600;font-size:1rem;cursor:pointer;transition:all .2s}.restart-button:hover{background:#059669;transform:translateY(-2px)}.back-button-modal{width:100%;padding:14px;background:#f3f4f6;color:#374151;border:none;border-radius:8px;font-weight:600;font-size:1rem;cursor:pointer;transition:all .2s}.back-button-modal:hover{background:#e5e7eb;transform:translateY(-2px)}.tutorial-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:3500;padding:20px;animation:fadeIn .3s ease-in-out}.tutorial-modal{background:#fff;border-radius:20px;max-width:600px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 25px 70px #00000080;animation:scaleIn .3s ease-in-out}.tutorial-header{display:flex;justify-content:space-between;align-items:center;padding:25px 30px 20px;border-bottom:2px solid #f3f4f6}.tutorial-title{font-size:1.8rem;font-weight:900;color:#111827;margin:0}.tutorial-content{padding:30px}.tutorial-section{margin-bottom:25px;text-align:center}.tutorial-section:last-child{margin-bottom:0}.tutorial-icon{font-size:3rem;margin-bottom:10px}.tutorial-section h3{font-size:1.3rem;font-weight:700;color:#111827;margin-bottom:8px}.tutorial-section p{font-size:1rem;color:#6b7280;line-height:1.6}.tutorial-start-button{width:calc(100% - 60px);padding:16px;margin:0 30px 30px;background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;border-radius:12px;font-weight:700;font-size:1.1rem;cursor:pointer;transition:all .3s;box-shadow:0 4px 15px #10b98166}.tutorial-start-button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #10b98180}@media (max-width: 768px){.game-view{padding:0 0 180px}.game-header{height:90px;padding:10px 15px}.game-stats-row{gap:20px}.stat-value-compact{font-size:.9rem}.stat-label-compact{font-size:.75rem}.back-button{left:10px}.back-icon{height:45px;content:var(--mobile-bk)}.header-actions{right:10px}.hint-icon{height:45px;content:var(--mobile-hint)}.hint-button span{left:calc(50% + 25px);font-size:1.2rem;padding:2px 8px;min-width:35px}.tutorial-button{width:30px;height:30px;font-size:.9rem}.stage-title{font-size:1.3rem;margin-top:15px}.puzzle-container{max-width:95%;padding:15px 10px 40px}.puzzle-grid{gap:4px;padding:4px}.win-modal,.time-expired-modal{max-width:90%;padding:25px}.tutorial-modal{max-width:95%}.tutorial-section h3{font-size:1.1rem}.tutorial-section p{font-size:.9rem}}@media (max-width: 480px){.game-view{padding-bottom:160px}.game-header{height:80px}.back-button{position:absolute;left:10px;top:auto;padding:0;margin:0;background:none!important;border:none!important;box-shadow:none!important}.back-icon{height:40px;content:var(--mobile-bk)}.hint-icon{height:40px;content:var(--mobile-hint)}.hint-button span{left:calc(50% + 15px);font-size:1rem}.stat-value-compact{font-size:.85rem}.stat-label-compact{font-size:.7rem}.puzzle-container{padding:15px 10px 50px}.stage-title{font-size:1.2rem;margin-top:12px}.game-stats{flex-wrap:wrap;gap:10px}.stat{flex:1 1 45%}}@font-face{font-family:GROBOLD;src:url(/WriteQuest/UI/GROBOLD.ttf) format("truetype");font-weight:400;font-style:normal}*{margin:0;padding:0;box-sizing:border-box}body{font-family:GROBOLD,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#87ceeb;color:#111827;line-height:1.5;-webkit-tap-highlight-color:transparent;overflow-x:hidden}.app{min-height:100vh;animation:fadeIn .5s ease-in-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.admin-toggle{position:fixed;top:20px;right:20px;z-index:1000;padding:12px 24px;background:#fff;border:2px solid #10b981;border-radius:8px;font-weight:600;color:#10b981;cursor:pointer;box-shadow:0 4px 12px #00000026;transition:all .3s}.admin-toggle:hover{background:#10b981;color:#fff;transform:translateY(-2px);box-shadow:0 6px 16px #0003}.admin-toggle.active{background:#10b981;color:#fff}.back-button{padding:10px 20px;background:#f3f4f6;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s}.back-button:hover{background:#e5e7eb;transform:translateY(-2px)}.difficulty-badge{padding:6px 12px;border-radius:6px;font-size:.85rem;font-weight:600}.difficulty-badge.easy{background:#d1fae5;color:#065f46}.difficulty-badge.hard{background:#fef3c7;color:#92400e}
