:root {
    --primary: #068fff;
    --dark-primary: #134fa3;
    --ink: #17324d;
    --muted: #6b7b8d;
    --surface: #ffffff;
    --background: #f3f7fc;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: var(--background);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

main { flex: 1; }
.app-navbar { background: var(--dark-primary); box-shadow: 0 3px 15px #123e7226; }
.brand-light { color: #80c4ff; }
.hero {
    color: #fff;
    background: linear-gradient(120deg, #134fa3, #068fff);
    border-radius: 1.25rem;
    padding: clamp(2rem, 6vw, 4.5rem);
    box-shadow: 0 16px 35px #134fa326;
}
.eyebrow { color: #b8e0ff; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section-title { font-weight: 750; letter-spacing: -.03em; }
.surface-card, .candidate-card, .stat-card, .vote-card {
    background: var(--surface);
    border: 1px solid #e6edf5;
    border-radius: 1rem;
    box-shadow: 0 8px 24px #183a5b0a;
}
.surface-card, .candidate-card, .stat-card, .vote-card, .vote-button, .nav-link {
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.surface-card, .vote-card { backdrop-filter: blur(8px); }
.vote-card {
    padding: 1.4rem;
    background: linear-gradient(145deg, #ffffffeb, #ffffff);
}
.vote-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px #134fa31c; }
.operator-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.operator-live-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem .9rem;
    border: 1px solid #ccebdc;
    border-radius: 999px;
    color: #167747;
    background: #f0fff7d9;
    font-size: .82rem;
    font-weight: 650;
    white-space: nowrap;
}
.live-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #24b36b; box-shadow: 0 0 0 4px #24b36b20; }
.vote-card-top { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }
.vote-candidate-photo, .vote-candidate-avatar {
    flex: 0 0 4.5rem;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1rem;
}
.vote-candidate-photo { object-fit: cover; background: #e7f3ff; }
.vote-candidate-avatar {
    display: grid;
    place-items: center;
    color: var(--dark-primary);
    background: linear-gradient(135deg, #dceeff, #f1f7ff);
    font-size: 1.8rem;
    font-weight: 800;
}
.vote-candidate-number { color: var(--primary); font-size: .76rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.vote-total-wrap { display: flex; flex-direction: column; align-items: center; padding: 1.5rem .5rem 1.1rem; }
.vote-total-label { color: var(--muted); font-size: .85rem; }
.vote-total { color: var(--dark-primary); font-size: clamp(2.7rem, 8vw, 3.5rem); font-variant-numeric: tabular-nums; font-weight: 800; line-height: 1.15; }
.vote-total-caption { color: var(--muted); font-size: .85rem; }
.vote-controls { display: flex; align-items: center; justify-content: center; gap: 1.2rem; }
.vote-button {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 1.2rem;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.vote-button:hover:not(:disabled) { transform: translateY(-2px); }
.vote-button:active:not(:disabled), .vote-button.is-pressed { transform: scale(.94); }
.vote-button:disabled { cursor: not-allowed; opacity: .48; }
.vote-minus { width: 3.5rem; height: 3.5rem; background: #eaf2fc; color: var(--dark-primary); font-size: 2rem; }
.vote-minus:hover:not(:disabled) { background: #dceaff; box-shadow: 0 5px 14px #134fa321; }
.vote-plus { width: 5.2rem; height: 5.2rem; background: var(--primary); box-shadow: 0 8px 20px #068fff50; font-size: 3rem; }
.vote-plus:hover:not(:disabled) { background: #007de5; box-shadow: 0 12px 25px #068fff60; }
.vote-step-label { color: var(--muted); font-size: .72rem; line-height: 1.35; text-align: center; }
.vote-card-footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid #edf1f6; }
.vote-card-status { color: #6b7b8d; font-size: .76rem; }
.status-check { color: #1d9a5c; font-weight: 800; }
.page-enter { animation: slide-up .42s ease both; }
.notice-enter { animation: slide-up .3s ease both; }
.vote-pulse { animation: vote-pulse .42s ease; }
.nav-link:hover { color: #fff !important; transform: translateY(-1px); }
@keyframes slide-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes vote-pulse { 0% { transform: scale(1); } 45% { transform: scale(1.16); color: var(--primary); } 100% { transform: scale(1); } }
.row > div:nth-child(2) .vote-card { animation-delay: .06s; }
.row > div:nth-child(3) .vote-card { animation-delay: .12s; }
.row > div:nth-child(4) .vote-card { animation-delay: .18s; }
.candidate-card { height: 100%; overflow: hidden; }
.candidate-photo {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: linear-gradient(135deg, #dceeff, #f1f7ff);
}
.candidate-placeholder {
    height: 230px;
    display: grid;
    place-items: center;
    color: var(--dark-primary);
    background: linear-gradient(135deg, #dceeff, #f1f7ff);
    font-size: 3rem;
    font-weight: 800;
}
.candidate-number {
    display: inline-flex;
    min-width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    font-weight: 750;
}
.stat-value { color: var(--dark-primary); font-size: 1.8rem; font-weight: 800; }
.stat-label { color: var(--muted); font-size: .88rem; }
.app-footer { color: #dceaff; background: var(--dark-primary); }
.form-label { font-weight: 600; }
.table > :not(caption) > * > * { vertical-align: middle; }
.chart-wrap { min-height: 280px; }
@media (max-width: 575.98px) {
    .operator-heading { align-items: flex-start; flex-direction: column; }
    .vote-card { padding: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
