:root {
  --bg-soft: #f3faf5;
  --card: #ffffff;
  --ink: #0a2a1d;
  --muted: #5b7569;
  --line: #dfeee5;
  --primary: #0e8a4e;
  --primary-dark: #0a6b3c;
  --shadow: 0 18px 38px rgba(10, 60, 38, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  background: var(--bg-soft);
  color: var(--ink);
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.page-wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: 1.2rem;
}

.brand span {
  color: var(--primary);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  flex-wrap: wrap;
}

.topbar a {
  color: inherit;
  text-decoration: none;
}

.hero-card,
.event-card,
.participant-card,
.vote-modal-card,
.summary-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
  margin: 20px auto 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(14, 138, 78, 0.12);
  padding: 8px 12px;
  border-radius: 999px;
}

.hero-card h1 {
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.hero-card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.btn-secondary {
  background: #edf7f0;
  color: var(--primary-dark);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.summary-box {
  padding: 20px 18px;
}

.summary-box small {
  display: block;
  color: var(--muted);
}

.summary-box strong {
  display: block;
  font-size: clamp(1.4rem, 2vw, 2.1rem);
  letter-spacing: -0.05em;
  margin-top: 8px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.06em;
}

.event-list,
.participant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.event-card {
  overflow: hidden;
}

.event-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(14, 138, 78, 0.18), rgba(10, 107, 60, 0.08));
  color: var(--ink);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.07em;
}

.event-body {
  padding: 18px;
}

.event-body h3 {
  font-size: 1.2rem;
  margin: 10px 0 8px;
  line-height: 1.3;
}

.event-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.event-card .btn {
  width: 100%;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.participant-card {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.participant-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(14, 138, 78, 0.12);
  color: var(--primary-dark);
  font-weight: 800;
}

.participant-card h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.participant-meta {
  color: var(--muted);
  display: grid;
  gap: 4px;
  font-size: 0.94rem;
}

.vote-btn {
  width: 100%;
}

.empty-state {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  text-align: center;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.vote-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 22, 17, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.vote-modal.open {
  display: flex;
}

.vote-modal-card {
  width: min(440px, 100%);
  padding: 24px;
}

.vote-modal-card h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.vote-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.vote-form label {
  font-weight: 700;
}

.vote-stepper {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty-btn {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #edf7f0;
  color: var(--primary-dark);
  font-size: 1.8rem;
  font-weight: 700;
  cursor: pointer;
}

.vote-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #f9fcfa;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.vote-form .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: -8px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 700px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Event detail takes its color and visual cue from the selected poster. */
.event-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
  margin: 20px auto 34px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid rgba(220, 184, 79, 0.7);
  border-radius: 6px;
  background: #0a3829;
  color: #fff9e7;
}

#eventRoot[data-event-id="lkbb2"] .event-hero {
  background: #0b100c;
}

#eventRoot[data-event-id="lkbb1"] .event-hero,
#eventRoot[data-event-id="lfpb1"] .event-hero {
  background: #0a3829;
}

.event-poster {
  width: 100%;
  background: #080b08;
  border: 1px solid rgba(220, 184, 79, 0.55);
}

.event-poster img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.poster-placeholder {
  display: grid;
  aspect-ratio: 2 / 3;
  place-items: center;
  color: #e2bd57;
  font-size: 2.5rem;
  font-weight: 800;
}

.event-intro h1 {
  max-width: 720px;
  margin: 18px 0 16px;
  color: #fff9e7;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.event-label {
  display: inline-block;
  color: #e2bd57;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-date,
.event-place {
  margin: 0 0 8px;
  color: rgba(255, 249, 231, 0.82);
}

.event-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.event-actions .btn-secondary {
  border: 1px solid #dcbc58;
  border-radius: 4px;
  background: transparent;
  color: #fff9e7;
}

.event-count {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: rgba(255, 249, 231, 0.8);
}

.event-count strong {
  color: #e2bd57;
  font-size: 1.4rem;
}

.section-header {
  margin: 0 0 18px;
}

.section-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.5rem;
  letter-spacing: 0;
}

.tab-btn {
  border-radius: 4px;
}

.tab-btn.active {
  background: #0a3829;
  border-color: #0a3829;
  color: #f5d477;
}

.participant-card {
  border-radius: 6px;
  border-top: 2px solid #d4ae4f;
  box-shadow: 0 6px 18px rgba(10, 48, 36, 0.08);
}

.rank-badge {
  border-radius: 4px;
  background: #f2e8c8;
  color: #654f19;
}

.vote-btn {
  border-radius: 4px;
}

.participant-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.participant-card {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 14px;
}

.participant-photo {
  display: grid;
  width: 100%;
  min-height: 115px;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #b6a36a;
  background: #f3edda;
  color: #75663e;
  text-align: center;
}

.participant-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.participant-photo span {
  padding: 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.participant-content {
  display: grid;
  min-width: 0;
  gap: 9px;
}

.participant-content h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
}

.participant-meta {
  line-height: 1.35;
}

.vote-result {
  display: grid;
  gap: 6px;
}

.vote-result-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.vote-result-label strong {
  color: #745a1b;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.25rem;
}

.vote-progress {
  display: block;
  width: 100%;
  height: 9px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #eee8d7;
}

.vote-progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #eee8d7;
}

.vote-progress::-webkit-progress-value {
  border-radius: 999px;
  background: #c9a13c;
}

.vote-progress::-moz-progress-bar {
  border-radius: 999px;
  background: #c9a13c;
}

@media (max-width: 700px) {
  .event-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .event-poster {
    width: min(100%, 340px);
    justify-self: center;
  }

  .event-intro h1 {
    margin-top: 10px;
    font-size: 2rem;
  }

  .event-actions {
    gap: 12px;
  }

  .participant-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .participant-photo {
    min-height: 102px;
  }
}

@media (max-width: 860px) {
  .event-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-poster {
    width: min(100%, 340px);
    justify-self: center;
  }
}

:root {
  --bg-soft: #07180f;
  --card: #0c2b1d;
  --ink: #f6edcf;
  --muted: #c3bd9e;
  --line: rgba(215, 177, 69, 0.4);
  --primary: #d7b34b;
  --primary-dark: #9d7926;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

body {
  font-family: "Barlow Condensed", sans-serif;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 1.08rem;
}

body[data-event-id="lkbb2"] {
  --bg-soft: #080b08;
  --card: #14150f;
}

.topbar {
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0;
}

.brand span {
  color: var(--primary);
}

.topbar nav {
  color: var(--muted);
}

.pill {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(215, 179, 75, 0.08);
  color: #e5c565;
  letter-spacing: 0.04em;
}

.btn-primary {
  border: 1px solid #e8c85e;
  border-radius: 4px;
  background: #d7b34b;
  color: #172014;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.15rem;
}

.btn-secondary {
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
}

.section-header h2,
.participant-card h3,
.vote-modal-card h3 {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0;
}

.tab-btn {
  border-color: var(--line);
  border-radius: 3px;
  background: var(--card);
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
}

.tab-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #172014;
}

.participant-card {
  border: 1px solid var(--line);
  border-top: 2px solid var(--primary);
  border-radius: 5px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.participant-card h3 {
  color: var(--ink);
}

.participant-photo {
  border: 1px dashed rgba(225, 190, 83, 0.65);
  background: rgba(4, 12, 8, 0.45);
  color: #e4c461;
}

.participant-rank .rank-badge {
  background: #d7b34b;
  color: #172014;
}

.participant-meta,
.vote-result-label {
  color: var(--muted);
}

.vote-result-label strong {
  color: #f0d26c;
}

.vote-progress,
.vote-progress::-webkit-progress-bar {
  background: #25372a;
}

.vote-progress::-webkit-progress-value,
.vote-progress::-moz-progress-bar {
  background: #d7b34b;
}

.vote-btn {
  min-height: 42px;
}

.empty-state,
.vote-modal-card {
  border-color: var(--line);
  border-radius: 5px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.vote-modal {
  background: rgba(0, 0, 0, 0.76);
}

.qty-btn {
  border-color: var(--line);
  border-radius: 4px;
  background: #11291c;
  color: #e2c35a;
}

.vote-form input {
  border-color: var(--line);
  border-radius: 4px;
  background: #08170f;
  color: var(--ink);
}

.vote-form .meta {
  color: var(--muted);
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #f1d36d;
  outline-offset: 3px;
}

body {
  font-family: "Nunito Sans", sans-serif;
}

.brand,
.event-intro h1,
.section-header h2,
.participant-content h3,
.vote-result-label strong,
.btn-primary,
.tab-btn {
  font-family: "Nunito Sans", sans-serif;
}

.participant-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.participant-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(215, 177, 69, 0.35);
  border-radius: 26px;
  background: #0c2118;
}

.participant-photo {
  width: 100%;
  min-height: 0;
  aspect-ratio: 2.15 / 1;
  border: 0;
  border-radius: 0;
  background: #12392a;
  color: #50dda9;
}

.participant-photo img,
.participant-photo-placeholder {
  width: 100%;
  height: 100%;
}

.participant-photo img {
  object-fit: cover;
}

.participant-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(145deg, #123b2c, #0d2b1f);
}

.participant-photo-placeholder strong {
  color: #50dda9;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
}

.participant-photo-placeholder span {
  padding: 0;
  color: rgba(235, 248, 239, 0.55);
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
}

.participant-content {
  gap: 7px;
  padding: 20px 24px 24px;
}

.participant-content h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}

.candidate-label {
  color: #a5bba9;
  font-size: 0.95rem;
  font-weight: 600;
}

.participant-meta {
  font-size: 0.9rem;
}

.vote-result {
  margin-top: 6px;
}

.vote-btn {
  width: auto;
  min-width: 88px;
  justify-self: start;
  margin-top: 8px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background: #35d39c;
  color: #073927;
  font-family: "Nunito Sans", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

body[data-event-id="lkbb1"] .participant-photo-placeholder {
  background: linear-gradient(145deg, #193e27, #102719);
}

body[data-event-id="lkbb1"] .participant-photo-placeholder strong,
body[data-event-id="lkbb2"] .participant-photo-placeholder strong {
  color: #e6c45f;
}

body[data-event-id="lkbb2"] .participant-photo-placeholder {
  background: linear-gradient(145deg, #202116, #10110e);
}

body[data-event-id="lkbb1"] .vote-btn,
body[data-event-id="lkbb2"] .vote-btn {
  background: #d9b84e;
  color: #211d0e;
}

@media (max-width: 700px) {
  .participant-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .participant-content {
    padding: 17px 19px 20px;
  }
}

.percentage-recap {
  margin: 28px 0 40px;
}

.percentage-recap-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.percentage-recap-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #123b2b;
  color: #50dda9;
  font-size: 0.9rem;
  font-weight: 800;
}

.percentage-recap-kicker::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #50dda9;
  content: "";
}

.percentage-recap-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.percentage-category {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
}

.percentage-empty {
  margin: 0;
  padding: 14px 0;
  color: var(--muted);
}

.percentage-list {
  display: grid;
  gap: 12px;
}

.percentage-row {
  display: grid;
  grid-template-columns: minmax(160px, 360px) minmax(100px, 1fr) 76px;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 16px 24px;
  border: 1px solid rgba(215, 177, 69, 0.22);
  border-radius: 18px;
  background: #0c2118;
}

.percentage-name {
  overflow-wrap: anywhere;
  color: #f0efdf;
  font-size: 1rem;
  font-weight: 800;
}

.percentage-progress {
  display: block;
  width: 100%;
  height: 11px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #07170f;
}

.percentage-progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #07170f;
}

.percentage-progress::-webkit-progress-value {
  border-radius: 999px;
  background: #35d39c;
}

.percentage-progress::-moz-progress-bar {
  border-radius: 999px;
  background: #35d39c;
}

.percentage-value {
  color: #50dda9;
  font-size: 1.15rem;
  font-weight: 900;
  text-align: right;
}

body[data-event-id="lkbb1"] .percentage-progress::-webkit-progress-value,
body[data-event-id="lkbb2"] .percentage-progress::-webkit-progress-value {
  background: #d7b34b;
}

body[data-event-id="lkbb1"] .percentage-progress::-moz-progress-bar,
body[data-event-id="lkbb2"] .percentage-progress::-moz-progress-bar {
  background: #d7b34b;
}

body[data-event-id="lkbb1"] .percentage-value,
body[data-event-id="lkbb2"] .percentage-value {
  color: #e6c45f;
}

.participant-section-title {
  margin: 0 0 16px;
}

.participant-section-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.5rem;
}

@media (max-width: 700px) {
  .percentage-recap {
    margin: 20px 0 26px;
  }

  .percentage-recap-heading {
    margin-bottom: 12px;
  }

  .percentage-recap-kicker {
    margin-bottom: 8px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .percentage-recap-heading h2 {
    font-size: 1.45rem;
  }

  .percentage-category {
    margin-bottom: 8px;
    font-size: 0.95rem;
  }

  .percentage-list {
    gap: 0;
    border-top: 1px solid rgba(215, 177, 69, 0.22);
  }

  .percentage-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    min-height: 0;
    padding: 8px 2px;
    border: 0;
    border-bottom: 1px solid rgba(215, 177, 69, 0.22);
    border-radius: 0;
    background: transparent;
  }

  .percentage-progress {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 4px;
  }

  .percentage-value {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.95rem;
  }

  .percentage-name {
    font-size: 0.86rem;
    line-height: 1.2;
  }
}

@media (max-width: 520px) {
  .event-hero {
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    margin: 12px auto 24px;
    padding: 12px;
  }

  .event-poster {
    width: 112px;
    justify-self: start;
  }

  .event-intro h1 {
    margin: 6px 0 8px;
    font-size: 1.22rem;
    line-height: 1.12;
  }

  .event-label {
    font-size: 0.68rem;
  }

  .event-date,
  .event-place {
    margin-bottom: 5px;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .event-actions {
    display: grid;
    gap: 8px;
    margin-top: 12px;
  }

  .event-actions .btn-secondary {
    width: 100%;
    padding: 8px 9px;
    font-size: 0.78rem;
    text-align: center;
  }

  .event-count {
    font-size: 0.8rem;
  }
}

.event-hero,
#eventRoot[data-event-id="lkbb1"] .event-hero,
#eventRoot[data-event-id="lkbb2"] .event-hero,
#eventRoot[data-event-id="lfpb1"] .event-hero {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.event-poster {
  border: 0;
  background: transparent;
}

.event-actions .btn-secondary {
  border: 0;
  padding-left: 0;
  background: transparent;
  color: #e2bd57;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tabs {
  gap: 20px;
  border-bottom: 1px solid rgba(215, 177, 69, 0.22);
}

.tab-btn,
.tab-btn.active {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 2px 9px;
}

.tab-btn.active {
  border-bottom-color: var(--primary);
  color: var(--ink);
}

.participant-card {
  border: 0;
  border-bottom: 1px solid rgba(215, 177, 69, 0.22);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.participant-photo {
  border-radius: 0;
}

.percentage-recap-kicker {
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.percentage-list {
  gap: 0;
  border-top: 1px solid rgba(215, 177, 69, 0.22);
}

.percentage-row {
  min-height: 60px;
  border: 0;
  border-bottom: 1px solid rgba(215, 177, 69, 0.22);
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
}

.participant-grid > .empty-state {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 12px 0;
}

@media (max-width: 520px) {
  .event-hero {
    padding: 0;
  }

  .percentage-row {
    min-height: 0;
    padding: 8px 0;
  }
}

body.is-vote-page-loading {
  overflow: hidden;
}

.vote-page-loader[hidden] {
  display: none;
}

.vote-page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(12, 72, 48, 0.68), transparent 46%),
    #04120b;
  opacity: 1;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.vote-page-loader::before,
.vote-page-loader::after {
  position: absolute;
  width: min(78vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(226, 189, 87, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.vote-page-loader::after {
  width: min(62vw, 410px);
  border-color: rgba(226, 189, 87, 0.08);
}

.vote-page-loader.is-leaving {
  visibility: hidden;
  opacity: 0;
}

.vote-page-loader__content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100% - 40px, 360px);
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: vote-loader-enter 700ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.vote-page-loader__logo-wrap {
  position: relative;
  display: grid;
  width: 188px;
  height: 188px;
  place-items: center;
  margin-bottom: 24px;
}

.vote-page-loader__orbit {
  position: absolute;
  inset: 2px;
  border: 1px solid transparent;
  border-top-color: var(--primary);
  border-right-color: rgba(226, 189, 87, 0.3);
  border-radius: 50%;
  animation: vote-loader-spin 2.4s linear infinite;
}

.vote-page-loader__orbit::after {
  position: absolute;
  top: 13px;
  left: 23px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffe59a;
  box-shadow: 0 0 14px 3px rgba(226, 189, 87, 0.55);
  content: "";
}

.vote-page-loader__logo {
  display: block;
  width: 140px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(226, 189, 87, 0.18));
  animation: vote-loader-float 2.8s ease-in-out infinite;
}

.vote-page-loader__title {
  margin: 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.vote-page-loader__caption {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.vote-page-loader__track {
  display: block;
  width: 170px;
  height: 2px;
  overflow: hidden;
  background: rgba(226, 189, 87, 0.17);
}

.vote-page-loader__track span {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: vote-loader-progress 1.15s ease-in-out infinite;
}

@keyframes vote-loader-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes vote-loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes vote-loader-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.025); }
}

@keyframes vote-loader-progress {
  from { transform: translateX(-110%); }
  to { transform: translateX(260%); }
}

@media (prefers-reduced-motion: reduce) {
  .vote-page-loader,
  .vote-page-loader__content,
  .vote-page-loader__orbit,
  .vote-page-loader__logo,
  .vote-page-loader__track span {
    animation: none;
    transition: none;
  }
}
