.legal-page{min-height:100vh;display:flex;flex-direction:column}.legal-content{flex:1;background:#f8fafc;padding:2rem 0}.legal-container{max-width:800px;margin:0 auto;padding:0 20px;background:#fff;border-radius:12px;box-shadow:0 4px 6px #0000000d;padding:3rem}.legal-container h1{font-size:2.5rem;font-weight:800;color:#1a202c;margin-bottom:.5rem;text-align:center}.last-updated{text-align:center;color:#6b7280;margin-bottom:3rem;font-style:italic}.legal-container h2{font-size:1.5rem;font-weight:700;color:#2d3748;margin-top:2.5rem;margin-bottom:1rem;border-bottom:2px solid #e2e8f0;padding-bottom:.5rem}.legal-container p{color:#4a5568;line-height:1.7;margin-bottom:1rem}.legal-container ul{color:#4a5568;line-height:1.7;margin-bottom:1.5rem;padding-left:1.5rem}.legal-container li{margin-bottom:.5rem}.legal-container strong{color:#2d3748;font-weight:600}@media (max-width: 768px){.legal-content{padding:1rem 0}.legal-container{margin:0 1rem;padding:2rem 1.5rem}.legal-container h1{font-size:2rem}.legal-container h2{font-size:1.25rem}}.admin-page{min-height:100vh;height:100vh;width:100vw;display:flex;flex-direction:column;overflow:hidden}.admin-content{flex:1;background:#f8fafc;padding:2rem 0;overflow-y:auto}.dashboard-container{max-width:1200px;margin:0 auto;padding:0 20px}.dashboard-header{text-align:center;margin-bottom:3rem}.dashboard-header h1{font-size:2.5rem;font-weight:700;color:#1a202c;margin-bottom:.5rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.dashboard-header p{color:#6b7280;font-size:1.1rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:2rem;margin-bottom:3rem}.dashboard-card{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 4px 6px #0000000d;transition:transform .2s ease,box-shadow .2s ease}.dashboard-card:hover{transform:translateY(-4px);box-shadow:0 8px 25px #0000001a}.dashboard-card h3{font-size:1.25rem;font-weight:600;color:#1a202c;margin-bottom:.75rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.dashboard-card p{color:#6b7280;margin-bottom:1.5rem;line-height:1.6;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.dashboard-button{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.dashboard-button:hover{transform:translateY(-1px);box-shadow:0 4px 12px #667eea66}.dashboard-stats{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 4px 6px #0000000d}.dashboard-stats h2{font-size:1.5rem;font-weight:600;color:#1a202c;margin-bottom:1.5rem;text-align:center;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem}.stat-card{text-align:center;padding:1.5rem;background:#f8fafc;border-radius:8px}.stat-number{font-size:2.5rem;font-weight:800;color:#667eea;margin-bottom:.5rem}.stat-label{color:#6b7280;font-weight:600;text-transform:uppercase;font-size:.875rem;letter-spacing:.05em}.todays-quest-section,.tomorrow-quest-section,.quest-queue-section,.completed-quests-section{background:#fff;border-radius:12px;padding:2rem;margin-bottom:2rem;box-shadow:0 4px 6px #0000000d}.todays-quest-header,.tomorrow-quest-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1.5rem}.todays-quest-header h2,.tomorrow-quest-header h2{font-size:1.5rem;font-weight:600;color:#1a202c;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.quest-schedule-info,.quest-status-info{text-align:right;color:#6b7280;font-size:.875rem;line-height:1.4}.schedule-line-1,.status-line-1{font-weight:600;margin-bottom:.25rem}.schedule-line-2,.status-line-2{opacity:.8}.countdown-timer{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem}.countdown-label{font-size:.75rem;color:#9ca3af;text-transform:uppercase;letter-spacing:.05em}.countdown-time{font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,monospace;font-size:1.25rem;font-weight:700;color:#667eea;background:linear-gradient(135deg,#f0f4ff,#e0e7ff);padding:.5rem .75rem;border-radius:8px;border:1px solid #c7d2fe;min-width:120px;text-align:center}.quest-queue-section h2,.completed-quests-section h2{font-size:1.5rem;font-weight:600;color:#1a202c;margin-bottom:1.5rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.todays-quest-card{background:linear-gradient(135deg,#10b981,#059669);color:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 4px 12px #10b98133;border:2px solid rgba(16,185,129,.3)}.tomorrow-quest-card{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 4px 12px #667eea33}.quest-content{text-align:center}.quest-title{font-size:1.5rem;font-weight:700;margin-bottom:.75rem;color:#fff;line-height:1.3}.quest-description{font-size:1rem;line-height:1.5;margin-bottom:1.25rem;opacity:.95;max-width:500px;margin-left:auto;margin-right:auto}.quest-meta{display:flex;gap:1rem;align-items:center;justify-content:center;flex-wrap:wrap}.quest-loading{text-align:center;padding:1rem;opacity:.8}.no-quest-set{text-align:center;color:#6b7280;padding:2rem;font-style:italic}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.header-actions{display:flex;gap:1rem;align-items:center}.add-quest-btn{background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 4px #10b98133}.add-quest-btn:hover{background:linear-gradient(135deg,#059669,#047857);transform:translateY(-1px);box-shadow:0 4px 8px #10b9814d}.populate-btn{background:linear-gradient(135deg,#6366f1,#4f46e5);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 4px #6366f133}.populate-btn:hover:not(:disabled){background:linear-gradient(135deg,#4f46e5,#4338ca);transform:translateY(-1px);box-shadow:0 4px 8px #6366f14d}.populate-btn:disabled{background:linear-gradient(135deg,#9ca3af,#6b7280);cursor:not-allowed;transform:none;box-shadow:0 1px 2px #0000001a}.activate-quest-btn{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease;font-size:.875rem;margin-top:1rem;box-shadow:0 2px 4px #f59e0b33}.activate-quest-btn:hover:not(:disabled){background:linear-gradient(135deg,#d97706,#b45309);transform:translateY(-1px);box-shadow:0 4px 8px #f59e0b4d}.activate-quest-btn:disabled{background:linear-gradient(135deg,#9ca3af,#6b7280);cursor:not-allowed;transform:none;box-shadow:0 1px 2px #0000001a}.search-filter-bar{display:flex;gap:1rem;margin-bottom:1.5rem;padding:1rem;background:#f8fafc;border-radius:8px;border:1px solid #e5e7eb}.search-input{flex:1}.search-input input{width:100%;padding:.75rem;border:1px solid #d1d5db;border-radius:6px;font-size:.875rem;transition:border-color .2s ease}.search-input input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.filter-select{min-width:150px}.filter-select select{width:100%;padding:.75rem;border:1px solid #d1d5db;border-radius:6px;font-size:.875rem;background:#fff;transition:border-color .2s ease}.filter-select select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.add-quest-form{background:#f8fafc;padding:1.5rem;border-radius:8px;margin-bottom:1.5rem;border:2px solid #e5e7eb}.add-quest-form h3{margin-bottom:1rem;color:#1a202c;font-size:1.25rem}.form-group{margin-bottom:1rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:600;color:#374151}.form-group input,.form-group textarea,.form-group select{width:100%;padding:.75rem;border:1px solid #d1d5db;border-radius:6px;font-size:1rem;transition:border-color .2s ease}.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.form-actions{display:flex;gap:1rem;justify-content:flex-end;margin-top:1rem}.save-btn{background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:6px;font-weight:600;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 4px #10b98133}.save-btn:hover{background:linear-gradient(135deg,#059669,#047857);transform:translateY(-1px);box-shadow:0 4px 8px #10b9814d}.cancel-btn{background:linear-gradient(135deg,#6b7280,#4b5563);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:6px;font-weight:600;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 4px #6b728033}.cancel-btn:hover{background:linear-gradient(135deg,#4b5563,#374151);transform:translateY(-1px);box-shadow:0 4px 8px #6b72804d}.quest-list{display:grid;gap:.5rem;max-height:600px;overflow-y:auto;padding-right:.5rem}.quest-list::-webkit-scrollbar{width:6px}.quest-list::-webkit-scrollbar-track{background:#f1f5f9;border-radius:3px}.quest-list::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.quest-list::-webkit-scrollbar-thumb:hover{background:#94a3b8}.quest-item{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;background:#fff;border-radius:8px;border:1px solid #e2e8f0;transition:all .2s ease;box-shadow:0 1px 3px #0000000d}.quest-item:hover{background:#f8fafc;border-color:#cbd5e1;box-shadow:0 2px 6px #00000014}.quest-content{flex:1;display:flex;align-items:center;gap:1rem}.quest-content h4{font-size:1rem;font-weight:700;color:#111827;margin:0;min-width:200px;line-height:1.3}.quest-content p{color:#374151;margin:0;font-size:.9rem;line-height:1.5;flex:1;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.quest-meta{display:flex;gap:.5rem;align-items:center;margin-left:1rem}.difficulty{padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.025em}.difficulty.easy{background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:1px solid #047857}.difficulty.medium{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;border:1px solid #b45309}.difficulty.hard{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;border:1px solid #b91c1c}.category{background:linear-gradient(135deg,#6366f1,#4f46e5);color:#fff;padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:700;letter-spacing:.025em;border:1px solid #4338ca}.quest-actions{display:flex;gap:.5rem;margin-left:1rem}.set-tomorrow-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:.375rem .75rem;border-radius:6px;font-weight:600;cursor:pointer;transition:all .2s ease;font-size:.75rem;box-shadow:0 2px 4px #667eea33}.set-tomorrow-btn:hover{background:linear-gradient(135deg,#5a67d8,#6b46c1);transform:translateY(-1px);box-shadow:0 4px 8px #667eea4d}.remove-btn{background:linear-gradient(135deg,#94a3b8,#64748b);color:#fff;border:none;padding:.375rem .75rem;border-radius:6px;font-weight:600;cursor:pointer;transition:all .2s ease;font-size:.75rem;box-shadow:0 2px 4px #0000001a}.remove-btn:hover{background:linear-gradient(135deg,#64748b,#475569);transform:translateY(-1px);box-shadow:0 4px 8px #00000026}.empty-queue{text-align:center;color:#6b7280;padding:3rem;font-style:italic}.completed-quests-list{display:grid;gap:.375rem;max-height:300px;overflow-y:auto;padding-right:.5rem}.completed-quests-list::-webkit-scrollbar{width:6px}.completed-quests-list::-webkit-scrollbar-track{background:#f1f5f9;border-radius:3px}.completed-quests-list::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.completed-quests-list::-webkit-scrollbar-thumb:hover{background:#94a3b8}.completed-quest-item{display:flex;justify-content:space-between;align-items:center;padding:.5rem .75rem;background:#f3f4f6;border-radius:4px;border-left:3px solid #10b981}.completion-date{font-weight:600;color:#1a202c;font-size:.875rem}.quest-id{color:#6b7280;font-size:.75rem;font-family:monospace}.no-completed{text-align:center;color:#6b7280;padding:2rem;font-style:italic}@media (max-width: 768px){.dashboard-container{padding:0 1rem}.dashboard-header h1{font-size:2rem}.dashboard-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,1fr)}.section-header{flex-direction:column;gap:1rem;align-items:stretch}.header-actions{justify-content:center;flex-wrap:wrap}.quest-item{flex-direction:column;gap:.75rem;padding:.75rem}.quest-content{flex-direction:column;align-items:flex-start;gap:.5rem}.quest-content h4{min-width:auto;font-size:.875rem}.quest-content p{max-width:none;white-space:normal;font-size:.8rem}.quest-meta{margin-left:0}.quest-actions{flex-direction:row;margin-left:0;justify-content:flex-end;width:100%}.form-actions{flex-direction:column}.quest-meta{flex-wrap:wrap}.search-filter-bar{flex-direction:column;gap:.75rem}.filter-select{min-width:auto}.todays-quest-header,.tomorrow-quest-header{flex-direction:column;gap:1rem;align-items:stretch}.quest-schedule-info,.quest-status-info{text-align:left}.countdown-timer{align-items:flex-start}.countdown-time{font-size:1rem;min-width:100px}}.auth-page{min-height:100vh;height:100vh;width:100vw;background:linear-gradient(135deg,#e0f2f1,#b2dfdb,#80cbc4);display:flex;align-items:center;justify-content:center;padding:2rem;overflow:hidden}.auth-container{width:100%;max-width:400px;display:flex;justify-content:center;align-items:center}.auth-card{background:#fff;border-radius:20px;box-shadow:0 20px 60px #0000001a,0 0 0 1px #004d400d;padding:3rem 2rem;width:100%;text-align:center}.auth-header{margin-bottom:2.5rem}.auth-logo{display:inline-flex;align-items:center;gap:.5rem;text-decoration:none;color:#004d40;margin-bottom:1.5rem}.auth-logo-icon{width:32px;height:32px;color:#004d40}.auth-logo-text{font-size:1.75rem;font-weight:800;color:#004d40;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.auth-title{font-size:2rem;font-weight:700;color:#1a202c;margin-bottom:.5rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.auth-subtitle{color:#6b7280;font-size:1rem;line-height:1.5;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.auth-form{text-align:left;margin-bottom:2rem}.form-group{margin-bottom:1.75rem}.form-group label{display:block;font-weight:600;color:#374151;margin-bottom:.5rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.form-input{width:100%;padding:.875rem 1rem;border:2px solid #e5e7eb;border-radius:12px;font-size:1rem;transition:all .2s ease;box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;background:#fff}.form-input:hover{border-color:#b2dfdb}.form-input:focus{outline:none;border-color:#004d40;box-shadow:0 0 0 4px #004d401a;background:#fff}.form-input::placeholder{color:#9ca3af}.form-input.input-error{border-color:#dc2626}.form-input.input-error:focus{border-color:#dc2626;box-shadow:0 0 0 4px #dc26261a}.required{color:#dc2626;font-weight:700}.optional{color:#6b7280;font-weight:400;font-size:.9rem}.helper-text{display:block;font-size:.875rem;color:#6b7280;margin-top:.25rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.error-text{display:block;font-size:.875rem;color:#dc2626;margin-top:.25rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.error-message{background:#fef2f2;color:#dc2626;padding:.875rem 1rem;border-radius:12px;margin-bottom:1rem;font-size:.9rem;border:1px solid #fecaca;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.auth-button{width:100%;background:linear-gradient(135deg,#004d40,#00695c);color:#fff;border:none;padding:.875rem 1.5rem;border-radius:9999px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;box-shadow:0 2px 8px #004d4033}.auth-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px #004d404d;background:linear-gradient(135deg,#00695c,#00897b)}.auth-button:active:not(:disabled){transform:translateY(0);box-shadow:0 2px 8px #004d4033}.auth-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.auth-footer{text-align:center;margin-top:1.5rem}.auth-footer p{color:#6b7280;margin-bottom:1rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.auth-toggle{background:none;border:none;color:#004d40;font-weight:600;cursor:pointer;text-decoration:underline;margin-left:.5rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.auth-toggle:hover{color:#00695c}.back-link{color:#6b7280;text-decoration:none;font-size:.9rem;transition:color .2s ease;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif}.back-link:hover{color:#004d40}@media (max-width: 480px){.auth-page{padding:1rem}.auth-card{padding:2rem 1.5rem}.auth-title{font-size:1.75rem}.auth-logo-text{font-size:1.5rem}}.settings-page{min-height:100vh;background-color:#f8fafc}.settings-container{max-width:800px;margin:80px auto 0;padding:2rem}.settings-card{background-color:#fff;border-radius:12px;box-shadow:0 4px 6px -1px #0000001a;padding:2rem}.settings-header{margin-bottom:2rem;padding-bottom:1rem;border-bottom:1px solid #e5e7eb}.settings-title{font-size:2rem;font-weight:700;color:#1f2937;margin:0}.settings-subtitle{color:#6b7280;margin:.5rem 0 0;font-size:1rem}.success-message{background-color:#d1fae5;border:1px solid #a7f3d0;color:#065f46;padding:1rem;border-radius:8px;margin-bottom:1.5rem;display:flex;align-items:center;gap:.5rem}.profile-section{margin-bottom:2rem}.section-title{font-size:1.5rem;font-weight:700;color:#1f2937;margin:0 0 1rem}.form-group{margin-bottom:1.5rem}.form-label{display:block;font-size:1rem;font-weight:600;color:#374151;margin-bottom:.5rem}.form-input{width:100%;padding:.75rem;border:1px solid #d1d5db;border-radius:8px;font-size:1rem;background-color:#fff;color:#1f2937;box-sizing:border-box;transition:border-color .2s,box-shadow .2s}.form-input:focus{outline:none;border-color:#10b981;box-shadow:0 0 0 3px #10b9811a}.form-input.error{border-color:#ef4444;background-color:#fef2f2}.form-input.error:focus{border-color:#ef4444;box-shadow:0 0 0 3px #ef44441a}.error-message{color:#ef4444;font-size:.875rem;margin:.5rem 0 0}.help-text{color:#6b7280;font-size:.875rem;margin:.5rem 0 0}.form-actions{display:flex;gap:1rem;justify-content:flex-end}.btn{padding:.75rem 1.5rem;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:.5rem;text-decoration:none;border:none}.btn-secondary{border:1px solid #d1d5db;background-color:#fff;color:#374151}.btn-secondary:hover{background-color:#f9fafb}.btn-primary{background-color:#10b981;color:#fff;font-weight:600}.btn-primary:hover:not(:disabled){background-color:#059669}.btn-primary:disabled{background-color:#9ca3af;cursor:not-allowed}.spinner{width:16px;height:16px;border:2px solid #ffffff;border-top:2px solid transparent;border-radius:50%;animation:spin 1s linear infinite}.account-info{padding:1.5rem;background-color:#f9fafb;border-radius:8px;border:1px solid #e5e7eb}.account-info-title{font-size:1.25rem;font-weight:700;color:#1f2937;margin:0 0 1rem}.info-grid{display:flex;flex-direction:column;gap:.75rem}.info-row{display:flex;justify-content:space-between;align-items:center}.info-label{color:#6b7280;font-weight:500}.info-value{color:#1f2937;font-weight:600}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (max-width: 768px){.settings-container{padding:1rem;margin-top:60px}.settings-card{padding:1.5rem}.settings-title{font-size:1.5rem}.form-actions{flex-direction:column}.btn{width:100%;justify-content:center}}*{margin:0;padding:0;box-sizing:border-box}html,body{height:auto!important;overflow:visible!important}#root{height:auto!important;display:block!important;flex:none!important}html{font-size:16px;line-height:1.5;width:100%}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;color:#1a202c;background-color:#fff;width:100%;margin:0;padding:0;overflow-x:hidden}#root{width:100%}a{color:inherit;text-decoration:none}button{font-family:inherit;font-size:inherit;line-height:inherit;color:inherit;background:none;border:none;cursor:pointer}input,textarea,select{font-family:inherit;font-size:inherit;line-height:inherit;color:inherit}*:focus{outline:2px solid #667eea;outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
