* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; padding: 20px; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; background: rgba(255,255,255,0.95); border-radius: 10px; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.nav-brand { font-size: 1.5em; font-weight: bold; color: #667eea; }
.nav-links a { margin-left: 20px; text-decoration: none; color: #333; font-weight: 500; }
.container { max-width: 1200px; margin: 0 auto; }
.alert { padding: 12px 20px; border-radius: 8px; margin-bottom: 15px; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }
.card { background: white; border-radius: 15px; padding: 25px; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.card h3 { margin-bottom: 20px; color: #333; border-bottom: 2px solid #667eea; padding-bottom: 10px; }
.auth-card { max-width: 400px; margin: 50px auto; background: white; border-radius: 15px; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.auth-card h2 { text-align: center; margin-bottom: 30px; color: #667eea; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #555; }
.form-group input { width: 100%; padding: 12px; border: 2px solid #eee; border-radius: 8px; font-size: 1em; }
.form-group input:focus { outline: none; border-color: #667eea; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.btn { padding: 12px 30px; border: none; border-radius: 8px; font-size: 1em; cursor: pointer; width: 100%; }
.btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.btn-delete { color: #dc3545; text-decoration: none; font-size: 0.9em; }
.auth-link { text-align: center; margin-top: 20px; color: #666; }
.auth-link a { color: #667eea; }
.dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 20px; }
.score-board { display: flex; flex-direction: column; gap: 10px; }
.score-item { display: flex; align-items: center; padding: 15px; background: #f8f9fa; border-radius: 10px; }
.score-item.current { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.score-item .rank { font-size: 1.5em; font-weight: bold; margin-right: 15px; width: 30px; }
.score-item .name { flex: 1; }
.score-item .score { font-weight: bold; font-size: 1.2em; }
.expense-display { text-align: center; padding: 30px; }
.expense-display .amount { display: block; font-size: 3em; font-weight: bold; color: #667eea; }
.expense-table, .results-table { width: 100%; border-collapse: collapse; }
.expense-table th, .results-table th { background: #f8f9fa; padding: 12px; text-align: left; }
.expense-table td, .results-table td { padding: 12px; border-bottom: 1px solid #eee; }
.results-table tr.win { background: #d4edda; }
.results-table tr.lose { background: #f8d7da; }
.results-table tr.draw { background: #fff3cd; }
@media (max-width: 768px) { .dashboard { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }