
:root { --brand-primary: #3b82f6; --brand-secondary: #1e40af; --brand-accent: #f59e0b; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f8fafc; color: #334155; }
.app-root { display: flex; flex-direction: column; min-height: 100vh; }
.container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.text-center { text-align: center; }
.app-header { background: white; border-bottom: 1px solid #e2e8f0; padding: 1rem 0; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: bold; font-size: 1.1rem; color: #0f172a; }
.logo-box { width: 32px; height: 32px; background: var(--brand-primary); color: white; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.btn { background: var(--brand-secondary); color: white; border: none; padding: 0.5rem 1rem; border-radius: 99px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-sm { font-size: 0.875rem; padding: 0.4rem 1rem; }
.btn-primary { background: var(--brand-primary); }
.btn-lg { font-size: 1.25rem; padding: 1rem 2.5rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.hero-title { font-size: 2.5rem; margin: 3rem 0; color: #0f172a; line-height: 1.2; }
.game-outer { max-width: 800px; margin: 0 auto 3rem; }
.game-wrapper { position: relative; height: 400px; background: #e2e8f0; border-radius: 12px; overflow: hidden; border: 4px solid #cbd5e1; box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); }
.game-canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
.score-tag { position: absolute; top: 1rem; left: 1rem; background: white; padding: 0.5rem 1rem; border-radius: 99px; font-weight: bold; box-shadow: 0 2px 4px rgba(0,0,0,0.1); color: #334155; }
.game-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; animation: fade-in 0.3s ease; }
.overlay-title { font-size: 3rem; margin-bottom: 2rem; font-weight: 900; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; padding-top: 2rem; border-top: 1px solid #e2e8f0; }
.feature-card { background: white; padding: 1.5rem; border-radius: 12px; border: 1px solid #f1f5f9; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.f-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.app-footer { background: #0f172a; color: #94a3b8; padding: 3rem 0; margin-top: auto; font-size: 0.9rem; }
.footer-links { margin-top: 1rem; }
.footer-links button { background: none; border: none; color: inherit; text-decoration: underline; margin: 0 0.5rem; cursor: pointer; }
.version { margin-top: 2rem; font-size: 0.75rem; opacity: 0.5; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 1rem; backdrop-filter: blur(2px); }
.modal-box { background: white; border-radius: 12px; width: 100%; max-width: 500px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2); overflow: hidden; display: flex; flex-direction: column; max-height: 85vh; }
.modal-header { padding: 1.25rem; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; background: #f8fafc; }
.modal-title { margin: 0; font-size: 1.25rem; color: #0f172a; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #64748b; padding: 0.25rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; }
.modal-close:hover { background: #e2e8f0; }
.modal-body { padding: 1.5rem; overflow-y: auto; color: #475569; line-height: 1.6; font-size: 0.95rem; }
.modal-footer { padding: 1rem 1.25rem; border-top: 1px solid #f1f5f9; text-align: right; background: #f8fafc; }
.animate-bounce { animation: bounce 1s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom-in { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.animate-zoom { animation: zoom-in 0.2s ease-out; }
/* Loader */
#loader { position: fixed; inset: 0; background: #f8fafc; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; }
.spinner { width: 40px; height: 40px; border: 4px solid #cbd5e1; border-top-color: #3b82f6; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }
