.candidate { cursor: default; grid-template-columns: 40px 65px minmax(0, 1fr); overflow: hidden; }
.candidate:hover { transform: none; }
.candidate.selected { border-width: 2px; outline: 2px solid #e91554; outline-offset: -2px; }
.candidate-copy { min-width: 0; }
.stars { display: flex; gap: 1px; margin-top: 8px; max-width: 100%; }
.star { appearance: none; border: 0; background: transparent; color: #c9cec6; padding: 0; width: 40px; height: 44px; font-size: 30px; line-height: 1; cursor: pointer; touch-action: manipulation; text-shadow: 0 1px 0 #758078; }
.star:hover, .star:focus-visible, .star.active { color: #ffd72e; text-shadow: 1px 1px 0 #815b00; }
.star:focus-visible { outline: 2px solid #003d24; outline-offset: 1px; border-radius: 3px; }
.rating-label { font-size: 10px !important; color: #6a756e !important; margin-top: 2px; }
.result-stars { display: flex; gap: 2px; margin: -2px 0 8px; }
.result-stars i { font-style: normal; color: #d9ddd6; font-size: 22px; }
.result-stars i.on { color: #f4bd13; text-shadow: 1px 1px 0 #815b00; }
.create-candidate { margin: 26px 0 34px; padding: 24px; background: #fff; border: 2px solid #003d24; box-shadow: 8px 8px 0 #96c11f; }
.create-candidate h2 { margin: 0 0 6px; color: #003d24; font-size: clamp(25px, 4vw, 34px); }
.create-candidate > p { margin: 0 0 20px; color: #56635b; }
.create-candidate form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.create-candidate label { display: grid; gap: 6px; color: #003d24; font-size: 12px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.create-candidate input { width: 100%; min-width: 0; min-height: 46px; border: 2px solid #aab7ad; border-radius: 2px; background: #fff; color: #173d2c; padding: 9px 11px; font: inherit; text-transform: none; }
.create-candidate input:focus { border-color: #e91554; outline: 2px solid rgba(233, 21, 84, .2); outline-offset: 1px; }
.candidate-options { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 16px; }
.create-candidate input[type="color"] { padding: 4px; cursor: pointer; }
.create-candidate form > button { grid-column: 1 / -1; min-height: 50px; border: 2px solid #003d24; background: #003d24; color: #fff; padding: 11px 18px; font-weight: 900; cursor: pointer; }
.create-candidate form > button:hover, .create-candidate form > button:focus-visible { background: #e91554; }
.create-candidate form > button:disabled { opacity: .58; cursor: wait; }
#createCandidateStatus { grid-column: 1 / -1; min-height: 20px; margin: -6px 0 0; color: #56635b; font-size: 13px; font-weight: 700; }
.reset-ratings { margin: 34px 0 0; padding: 22px; border: 2px solid #b42318; background: #fff5f3; color: #5f1812; }
.reset-ratings h2 { margin: 2px 0 6px; font-size: clamp(24px, 4vw, 32px); }
.reset-ratings p { margin: 0 0 17px; }
.reset-ratings > button, .reset-ratings form button { min-height: 46px; border: 2px solid #8f1d16; padding: 9px 14px; font-weight: 900; cursor: pointer; }
.reset-ratings > button, .reset-ratings form button[type="submit"] { background: #b42318; color: #fff; }
.reset-ratings form { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #d9a19b; }
.reset-ratings form[hidden] { display: none; }
.reset-ratings label { font-size: 12px; font-weight: 900; text-transform: uppercase; }
.reset-ratings input { width: 100%; min-height: 46px; border: 2px solid #8f1d16; background: #fff; padding: 9px 11px; font: inherit; }
.reset-ratings form div { display: flex; gap: 10px; flex-wrap: wrap; }
.reset-ratings form button[type="button"] { background: #fff; color: #5f1812; }
.reset-ratings button:disabled { opacity: .58; cursor: wait; }
#resetRatingsStatus { min-height: 20px; font-weight: 800; }
body { overflow-x: hidden; }
@media (max-width: 760px) {
  .site-header { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .view-switch { min-height: 44px; padding: 9px 13px; }
  .hero { padding: 38px 18px 48px; }
  .hero h1 { font-size: clamp(48px, 17vw, 68px); line-height: .77; margin-top: 24px; }
  .hero h2 { font-size: clamp(25px, 8vw, 36px); }
  .hero p { max-width: 100%; font-size: 16px; }
  .poster-art { display: none; }
  .voting-section { padding: 38px 14px 64px; }
  .section-title { margin-bottom: 20px; gap: 12px; }
  .section-title h2 { font-size: clamp(31px, 10vw, 42px); }
  .candidate-grid { gap: 11px; }
  .candidate { grid-template-columns: 26px 54px minmax(0, 1fr); gap: 8px; min-height: 126px; padding: 12px 10px; }
  .candidate .icon { width: 50px; height: 50px; font-size: 25px; }
  .candidate-copy b { font-size: clamp(16px, 5vw, 19px); overflow-wrap: anywhere; }
  .star { width: clamp(32px, 9.5vw, 38px); height: 44px; font-size: 27px; }
  .submit-wrap { margin-top: 28px; }
  .submit { min-height: 58px; }
  .admin-view { padding: 34px 14px 55px; }
  .login-card { box-shadow: 8px 8px 0 #96c11f; }
  .admin-head h1 { font-size: clamp(43px, 15vw, 64px); overflow-wrap: anywhere; }
  .create-candidate { padding: 18px 14px; box-shadow: 6px 6px 0 #96c11f; }
  .create-candidate form { grid-template-columns: 1fr; }
  .candidate-options { grid-column: auto; grid-template-columns: minmax(0, 1fr) 92px; }
  .create-candidate form > button, #createCandidateStatus { grid-column: auto; }
  .reset-ratings { padding: 18px 14px; }
  .reset-ratings > button, .reset-ratings form button { width: 100%; }
  .bars { padding: 17px 14px; }
  footer { padding-bottom: max(15px, env(safe-area-inset-bottom)); text-align: center; }
}
@media (max-width: 350px) {
  .brand img { width: 126px; }
  .view-switch { padding-inline: 10px; font-size: 11px; }
  .hero { padding-inline: 14px; }
  .eyebrow { font-size: 10px; }
  .candidate { grid-template-columns: 22px 48px minmax(0, 1fr); }
  .candidate .icon { width: 44px; height: 44px; }
  .star { width: 31px; font-size: 25px; }
}
.candidate-photo { grid-column: 1 / -1; width: 100%; aspect-ratio: 4 / 3; max-height: none; object-fit: contain; object-position: center; background: #eef4e8; padding: 4px; border-radius: 2px; border: 2px solid #003d24; margin-bottom: 4px; }
.candidate-photo[hidden] { display: none; }
.image-upload { margin-top: 14px; padding: 13px; background: #f3f6ef; border: 1px solid #cbd4c6; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.image-upload input { min-width: 0; width: 100%; font-size: 12px; }
.image-upload button { min-height: 42px; border: 2px solid #003d24; background: #fff; color: #003d24; padding: 8px 12px; font-weight: 900; cursor: pointer; }
.image-upload button:disabled { opacity: .55; cursor: wait; }
.image-upload small { grid-column: 1 / -1; color: #64716a; }
@media (max-width: 760px) {
  .candidate-photo { aspect-ratio: 4 / 3; }
  .image-upload { grid-template-columns: 1fr; }
  .image-upload button { width: 100%; }
  .image-upload small { grid-column: auto; }
}
