:root {
  --color-bg: #f3f5fb;
  --color-surface: #ffffff;
  --color-surface-alt: #f8fafc;
  --color-border: #e4e9f2;
  --color-border-strong: #cbd5e1;
  --color-text: #0f172a;
  --color-text-muted: #5b6579;
  --color-text-subtle: #94a3b8;

  --color-primary: #4f46e5;
  --color-primary-dark: #4338ca;
  --color-primary-light: #eef2ff;
  --color-primary-ring: rgba(79, 70, 229, 0.16);

  --color-success: #059669;
  --color-success-light: #ecfdf5;
  --color-danger: #dc2626;
  --color-danger-light: #fef2f2;
  --color-warning: #d97706;
  --color-warning-light: #fffbeb;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 24px -6px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.18);

  --nav-height: 72px;
  --container-width: 1120px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  margin: 0;
  min-height: 100vh;
  color: var(--color-text);
  background:
    radial-gradient(1100px 520px at 8% -12%, rgba(79, 70, 229, 0.10), transparent 60%),
    radial-gradient(900px 460px at 108% 8%, rgba(16, 185, 129, 0.08), transparent 55%),
    var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--color-primary);
  color: #ffffff;
}

h1, h2, h3, h4 {
  color: var(--color-text);
  letter-spacing: -0.01em;
}

a {
  color: var(--color-primary);
}

/* ---------- Navigation ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  min-height: var(--nav-height);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.02em;
}

.brand::before {
  content: '🗳️';
  font-size: 1.15rem;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

body[data-page="home"] .nav-links a[href="/"],
body[data-page="vote"] .nav-links a[href="/vote.html"],
body[data-page="admin"] .nav-links a[href="/admin.html"] {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav-login {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 5px;
  margin-left: 6px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}

.nav-login select,
.nav-login input {
  padding: 8px 12px;
  font-size: 0.86rem;
  border-radius: var(--radius-full);
  min-width: 0;
}

.nav-login select {
  max-width: 150px;
}

.nav-login input {
  width: 120px;
}

.nav-login button {
  margin: 0;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  box-shadow: none;
}

.nav-user {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(79, 70, 229, 0.18);
}

.ghost-button {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-strong);
  box-shadow: none;
}

.ghost-button:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
  transform: none;
  box-shadow: none;
}

.logout-button {
  font-size: 0.84rem;
  padding: 8px 14px;
  min-height: auto;
  margin-top: 0;
}

.hidden {
  display: none !important;
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 28px 24px 48px;
}

.card {
  background: var(--color-surface);
  padding: 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  margin-bottom: 22px;
}

.card h1,
.card h2,
.card h3 {
  margin-top: 0;
}

.card p {
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ---------- Hero ---------- */

.hero.card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 22px 20px 16px;
  border: none;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  height: 300px;
  min-height: 280px;
}

.hero-video-grid {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 120px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  z-index: 0;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  opacity: 0.82;
  background: #000;
}

.hero.card > * {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: #ffffff;
  font-weight: 800;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero-actions a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hero-actions .hero-cta-primary {
  background: #ffffff;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}

.hero-actions .hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-actions .hero-cta-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-actions .hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0 16px;
  flex-wrap: wrap;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.4rem;
}

.section-heading p {
  margin: 0;
  color: var(--color-text-muted);
}

/* ---------- Candidates ---------- */

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.position-section {
  margin-bottom: 26px;
}

.position-section:last-child {
  margin-bottom: 0;
}

.position-section h2 {
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
}

.candidate-card {
  padding: 20px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  background: var(--color-surface-alt);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.candidate-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
  background: var(--color-surface);
}

.candidate-card img {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-surface);
  box-shadow: 0 0 0 3px var(--color-primary-light);
  margin-bottom: 12px;
  background: var(--color-primary-light);
}

.candidate-card h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.candidate-card.empty-card {
  border-style: dashed;
  background: transparent;
}

.candidate-card.empty-card:hover {
  transform: none;
  box-shadow: none;
}

.empty-card-body {
  padding: 12px 0;
  color: var(--color-text-subtle);
}

.empty-card-body p {
  margin: 0 0 6px;
  font-size: 0.86rem;
}

.empty-card-body strong {
  color: var(--color-text-muted);
}

/* ---------- Steps ---------- */

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.steps-list li {
  position: relative;
  padding: 18px 16px 16px 16px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  line-height: 1.55;
  counter-increment: step-counter;
}

.steps-list {
  counter-reset: step-counter;
}

.steps-list li::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 10px;
}

/* ---------- Forms ---------- */

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

input,
select,
textarea {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  font-size: 0.96rem;
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-ring);
}

input:disabled,
select:disabled {
  background: var(--color-surface-alt);
  color: var(--color-text-subtle);
  cursor: not-allowed;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%235b6579' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

input[type="file"] {
  padding: 9px;
}

input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 600;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-right: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

input[type="file"]::file-selector-button:hover {
  background: #e0e0fb;
}

/* ---------- Buttons ---------- */

button {
  margin-top: 10px;
  background: var(--color-primary);
  color: white;
  cursor: pointer;
  border: none;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.94rem;
  font-family: inherit;
  transition: background 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease, opacity 0.16s ease;
  box-shadow: var(--shadow-sm);
}

button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

button:active {
  transform: translateY(0);
}

button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

button:disabled {
  background: var(--color-border-strong);
  color: var(--color-text-subtle);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.primary-button {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border: none;
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  min-width: 170px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 12px 24px -8px rgba(79, 70, 229, 0.5);
}

.primary-button:hover {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #362f9e 100%);
}

.primary-button:disabled {
  background: var(--color-border-strong);
  box-shadow: none;
}

/* ---------- Vote page ---------- */

.vote-card {
  padding: 30px;
}

.vote-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.vote-header h1 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 800;
}

.vote-subtitle {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  max-width: 520px;
}

.timer {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  border: 1px solid rgba(79, 70, 229, 0.18);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  white-space: nowrap;
}

.vote-user-info {
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--color-text);
  background: var(--color-success-light);
  border: 1px solid rgba(5, 150, 105, 0.2);
  padding: 14px 18px;
  border-radius: var(--radius-md);
}

.vote-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.vote-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.vote-field select {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}

.vote-field.is-selected {
  border-color: var(--color-success);
  background: var(--color-success-light);
}

.vote-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding-top: 6px;
}

.vote-message {
  margin: 0;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.92rem;
}

.vote-message:empty {
  display: none;
}

/* ---------- Results (public placeholder) ---------- */

.result-item {
  margin: 8px 0;
  padding: 10px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
}

/* ---------- Admin ---------- */

.admin-grid {
  display: grid;
  gap: 20px;
}

.admin-controls {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.admin-controls h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.admin-controls > p {
  margin-top: -6px;
}

.admin-controls label {
  margin-bottom: 16px;
}

.admin-controls input,
.admin-controls select,
.admin-controls button {
  width: 100%;
}

.admin-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-actions button {
  width: auto;
}

.admin-status,
.admin-message {
  margin-top: 14px;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.admin-status:empty,
.admin-message:empty {
  display: none;
}

#contestantMessage:not(:empty),
#positionMessage:not(:empty),
#voterMessage:not(:empty) {
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  border: 1px solid rgba(79, 70, 229, 0.18);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.winner-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.winner-card {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 16px 18px;
  background: linear-gradient(180deg, #fffbeb 0%, var(--color-surface) 60%);
  text-align: center;
  overflow: hidden;
}

.winner-card::before {
  content: '🏆 Winner';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-warning);
  background: var(--color-warning-light);
  border: 1px solid rgba(217, 119, 6, 0.25);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.winner-photo {
  width: 76px;
  height: 76px;
  margin: 6px auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 3px var(--color-warning);
}

.winner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.winner-card h3 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.winner-name {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text);
}

.winner-subtext {
  margin: 0;
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.contestant-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.contestant-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
}

.contestant-row div {
  display: grid;
  gap: 3px;
}

.contestant-row strong {
  font-size: 0.94rem;
}

.contestant-row span {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-transform: capitalize;
}

.contestant-row button {
  align-self: center;
  margin-top: 0;
  padding: 9px 14px;
  border: 1px solid rgba(220, 38, 38, 0.3);
  background: var(--color-danger-light);
  color: var(--color-danger);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  box-shadow: none;
}

.contestant-row button:hover {
  background: #fecaca;
  transform: none;
  box-shadow: none;
}

.position-list-container {
  margin-top: 20px;
}

.position-list-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.position-list-header h3 {
  margin: 0;
  font-size: 1rem;
}

.position-list-header p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

.position-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.position-card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.position-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.position-card span {
  display: block;
  color: var(--color-text-subtle);
  font-size: 0.8rem;
}

.position-card button {
  min-width: 90px;
  margin-top: 0;
  padding: 9px 12px;
  background: var(--color-danger-light);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-sm);
  color: var(--color-danger);
  font-size: 0.84rem;
  box-shadow: none;
}

.position-card button:hover {
  background: #fecaca;
  transform: none;
  box-shadow: none;
}

.chart-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.chart-card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.chart-card h3 {
  margin: 0;
  font-size: 0.98rem;
}

.chart-card canvas {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 10px;
  border-radius: var(--radius-sm);
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 900px) {
  .topbar {
    padding: 12px 18px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }

  .nav-login {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .container {
    padding: 20px 16px 32px;
  }

  .hero.card {
    padding: 30px 18px 12px;
    height: auto;
    min-height: 280px;
  }

  .hero-video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: 110px;
    bottom: 12px;
    left: 12px;
    right: 12px;
    gap: 8px;
  }

  .card,
  .vote-card,
  .admin-controls {
    padding: 20px;
  }

  .vote-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .winner-area,
  .chart-area,
  .candidate-grid,
  .position-list-grid,
  .contestant-list,
  .steps-list {
    grid-template-columns: 1fr;
  }

  .position-card {
    flex-direction: column;
    align-items: stretch;
  }

  .position-card button {
    width: 100%;
  }
}

@media screen and (max-width: 650px) {
  .topbar {
    justify-content: center;
    text-align: center;
  }

  .nav-links {
    gap: 6px;
  }

  .hero.card {
    padding: 22px 14px 10px;
    min-height: 260px;
  }

  .hero-video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: 96px;
    bottom: 10px;
    left: 10px;
    right: 10px;
    gap: 6px;
  }

  .vote-grid {
    grid-template-columns: 1fr;
  }

  .candidate-card,
  .winner-card,
  .chart-card,
  .position-card,
  .contestant-row {
    padding: 16px;
  }

  .candidate-card img {
    width: 96px;
    height: 96px;
  }
}

@media print {
  .topbar,
  .admin-controls,
  #downloadPdfButton,
  #logoutButton {
    display: none !important;
  }

  body {
    background: white;
  }

  .card,
  .chart-card {
    box-shadow: none;
    background: white;
  }
}
