* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Arial, sans-serif; background-color: #f0f2f5; display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px 0; }
.app-container { width: 100%; max-width: 480px; }
.card { background: white; padding: 2rem; border-radius: 1.5rem; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.screen { display: none; text-align: center; }
.screen.active { display: block; }
h1 { color: #1f2937; margin-bottom: 1.5rem; }
.input-group { text-align: left; margin-bottom: 1.5rem; }
label { display: block; font-size: 0.9rem; color: #4b5563; margin-bottom: 0.5rem; }
input { width: 100%; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 1rem; }
.btn-primary { width: 100%; background-color: #2563eb; color: white; padding: 0.75rem; border: none; border-radius: 0.5rem; font-weight: 600; cursor: pointer; }
.vote-options { display: flex; flex-direction: column; gap: 10px; margin-top: 1rem; }
.vote-btn { display: flex; align-items: center; padding: 8px 16px; border: 2px solid #e5e7eb; border-radius: 12px; background: white; cursor: pointer; transition: 0.2s; width: 100%; text-align: left; }
.vote-btn:hover { border-color: #2563eb; background: #f8faff; }
.candidate-img { width: 45px; height: 45px; object-fit: contain; margin-right: 15px; flex-shrink: 0; }
.name { font-weight: 700; color: #374151; font-size: 1rem; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); justify-content: center; align-items: center; z-index: 100; }
.modal.show { display: flex; }
.modal-content { background: white; padding: 2rem; border-radius: 1rem; text-align: center; max-width: 320px; width: 90%; }
.modal-actions { display: flex; gap: 10px; margin-top: 1.5rem; }
.btn-cancel { flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 5px; cursor: pointer; }
.btn-confirm { flex: 1; padding: 10px; background: #059669; color: white; border: none; border-radius: 5px; cursor: pointer; }
.winner-banner { background: #dbeafe; padding: 1.5rem; border-radius: 1rem; margin-bottom: 1.5rem; }
#winner-name { font-weight: 900; color: #1e40af; font-size: 1.5rem; margin-bottom: 5px; }
.tally-item { display: flex; justify-content: space-between; padding: 12px; border-bottom: 1px solid #eee; font-size: 1.1rem; }
.btn-restart { margin-top: 1.5rem; background: none; border: none; text-decoration: underline; color: #6b7280; cursor: pointer; }