:root {
  --ink: #13231f;
  --muted: #71817b;
  --line: #dfe8e3;
  --paper: #f7faf8;
  --mint: #b9ebd8;
  --mint-strong: #3aa67f;
  --dark-mint: #1e4d40;
  --white: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
body:not(.participants-site) * { font-family: "Poppins", sans-serif !important; }
body * { letter-spacing: normal !important; }
body:not(.participants-site) { font-size: 14px; }
body:not(.participants-site) .panel-subtitle,
body:not(.participants-site) .admin-transactions-count,
body:not(.participants-site) .admin-transactions-table td,
body:not(.participants-site) .server-status { font-size: 13px; }
body:not(.participants-site) .select-label,
body:not(.participants-site) .admin-transaction-filters label,
body:not(.participants-site) .admin-transactions-table th { font-size: 12px; }
body:not(.participants-site) .participant-label,
body:not(.participants-site) .preview-label,
body:not(.participants-site) .admin-transactions-pagination,
body:not(.participants-site) .index-footer { font-size: 12px; }
.admin-login { display: grid; min-height: 100dvh; place-items: center; padding: 24px; }
.admin-login-card { width: min(100%, 430px); padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: 0 18px 45px rgba(30, 77, 64, .055); }
.admin-login-card h1 { margin: 0 0 28px; font-size: clamp(38px, 8vw, 58px); line-height: .98; }
.admin-login-field { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 11px; font-weight: 600; }
.admin-login-field input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 13px; outline: 0; background: var(--white); color: var(--ink); }
.admin-login-field input:focus { border-color: var(--mint-strong); box-shadow: 0 0 0 3px rgba(58,166,127,.12); }
.admin-login-card .primary-button { margin-top: 20px; }
button, input, select, option { font: inherit; }
button { cursor: pointer; }
.lucide { width: 1em; height: 1em; stroke-width: 2; vertical-align: -0.15em; }
.page-shell { max-width: 1180px; margin: 0 auto; padding: 42px 34px 30px; }
.hero { display: flex; align-items: flex-start; gap: 20px; margin: 8px 0 42px; }
.index-header + .hero { margin-bottom: 30px; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-link, .footer-link { color: var(--mint-strong); font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }.page-link:hover, .footer-link:hover { text-decoration: underline; }
.brand-mark { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 17px; background: var(--dark-mint); color: var(--mint); font: 700 17px "Space Grotesk", sans-serif; letter-spacing: -1px; transform: rotate(-5deg); }
.brand-mark span { transform: rotate(5deg); }
.eyebrow, .section-kicker { margin: 2px 0 12px; color: var(--mint-strong); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-left: 5px; border-radius: 50%; background: #f2b85b; vertical-align: middle; }
h1, h2 { font-family: "Space Grotesk", sans-serif; letter-spacing: -.04em; }
h1 { margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: .98; font-weight: 600; }
h1 em, h2 em { color: var(--mint-strong); font-style: normal; }
.hero-copy { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.workspace { display: grid; grid-template-columns: minmax(0, 700px); justify-content: center; }
.panel { border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: 0 18px 45px rgba(30, 77, 64, .055); }
.form-panel { padding: 22px 26px; border-radius: 18px; }
.qr-panel { min-height: 580px; padding: 34px; background: var(--dark-mint); color: var(--white); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 0; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; }
.panel-heading h2 em { color: var(--mint-strong); }
.panel-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
h2 { margin: 0; font-size: 24px; line-height: 1.1; }
.amount-field { display: flex; align-items: center; margin-top: 43px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.currency-prefix { margin-right: 12px; color: var(--muted); font: 500 25px "Space Grotesk", sans-serif; }
.amount-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 clamp(42px, 7vw, 64px) "Space Grotesk", sans-serif; letter-spacing: -.06em; }
.amount-field input::placeholder { color: #ced9d4; }
.field-help { margin: 11px 0 0; color: var(--muted); font-size: 12px; }
.field-error { margin: 8px 0 0; color: #c64d46; font-size: 12px; }
.quick-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0 28px; }
.quick-button, .secondary-button { border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--ink); font-size: 12px; font-weight: 600; padding: 10px 13px; transition: .2s ease; }
.quick-button:hover, .secondary-button:hover { border-color: var(--mint-strong); color: var(--mint-strong); transform: translateY(-1px); }
.primary-button { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; border-radius: 11px; padding: 16px 18px; background: var(--dark-mint); color: var(--white); font-weight: 700; transition: .2s ease; }
.primary-button:hover { background: #286452; transform: translateY(-1px); }
.merchant-card { display: flex; align-items: center; gap: 11px; margin-top: 58px; padding-top: 20px; border-top: 1px solid var(--line); }
.merchant-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--mint); color: var(--dark-mint); }
.merchant-card strong, .merchant-card span { display: block; font-size: 12px; }
.merchant-card strong { font-weight: 700; }
.merchant-card span:not(.verified) { margin-top: 3px; color: var(--muted); }
.verified { margin-left: auto; color: var(--mint-strong); font-size: 10px !important; }
.qr-heading .section-kicker { color: var(--mint); }.qr-heading h2 { color: var(--white); }
.dynamic-label { display: flex; align-items: center; gap: 7px; color: var(--mint); font-size: 11px; font-weight: 600; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(185, 235, 216, .13); }
.qr-empty { display: grid; place-items: center; min-height: 390px; border: 1px dashed rgba(185, 235, 216, .35); border-radius: 17px; margin-top: 36px; text-align: center; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.6; }
.empty-symbol { margin-bottom: 12px; color: var(--mint); font: 42px "Space Grotesk", sans-serif; transform: rotate(-25deg); }
.qr-result { margin-top: 29px; }
.qr-frame { display: grid; place-items: center; width: min(100%, 300px); aspect-ratio: 1; margin: 0 auto; padding: 17px; border-radius: 17px; background: var(--white); }
#qrcode, #qrcode img { width: 100% !important; height: 100% !important; }
.payment-summary { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 16px; font-size: 12px; color: rgba(255,255,255,.64); }.payment-summary strong { color: var(--white); font: 600 21px "Space Grotesk", sans-serif; }
.qr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.dark-button { border-color: rgba(185,235,216,.35); background: transparent; color: var(--mint); }
.payload-details { margin-top: 17px; color: rgba(255,255,255,.65); font-size: 11px; }.payload-details summary { cursor: pointer; }.payload-details code { display: block; max-height: 70px; overflow: auto; margin-top: 9px; padding: 10px; border-radius: 8px; background: rgba(0,0,0,.13); color: var(--mint); font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.notice { display: flex; gap: 12px; align-items: flex-start; margin: 18px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }.notice span { color: var(--mint-strong); font-size: 17px; }.notice p { margin: 1px 0; }
footer { display: flex; justify-content: space-between; margin-top: 46px; color: #a2b0ab; font-size: 10px; letter-spacing: .04em; }
.participants-page footer { justify-content: center; align-items: center; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.participants-header { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; margin-bottom: 36px; padding: 8px 0 24px; border-bottom: 1px solid var(--line); }.event-title { max-width: 1000px; margin: 0; color: var(--dark-mint); text-align: center; text-wrap: balance; font: 700 clamp(34px, 6vw, 64px) "Space Grotesk", sans-serif; letter-spacing: -.05em; line-height: 1; }.event-subtitle { margin: 0; color: var(--mint-strong); font-size: clamp(13px, 2vw, 17px); font-weight: 600; line-height: 1.25; text-align: center; }.participants-intro { max-width: 720px; }.participants-intro h1 { font-size: clamp(34px, 5vw, 58px); }
.voting-info { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: center; margin-bottom: 58px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 18px 45px rgba(30, 77, 64, .055); }.voting-info h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); }.voting-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.voting-info-grid div { min-width: 0; padding: 14px; border-radius: 10px; background: #eef8f3; }.voting-info-grid span { display: block; color: var(--muted); font-size: 11px; }.voting-info-grid strong { display: block; margin-top: 7px; color: var(--dark-mint); font-size: 14px; line-height: 1.3; }.voting-info-warning { grid-column: 1 / -1; border: 1px solid #f0c7a8; background: #fff8f1 !important; color: #6d4630; }.voting-info-warning > strong { margin: 0; color: #8b4513; font-size: 13px; }.voting-info-warning ul { margin: 8px 0 0; padding-left: 18px; font-size: 11px; line-height: 1.5; }
.voting-info-contact { grid-column: 1 / -1; border: 1px solid #b9ebd8 !important; background: #f0fbf6 !important; }.voting-info-contact p { margin: 5px 0 0; }.voting-info-contact strong { display: inline; margin: 0; font-size: 13px; }.voting-info-contact a { color: var(--dark-mint); font-size: 14px; font-weight: 700; text-decoration: none; }.voting-info-contact a:hover { text-decoration: underline; }
.voting-info-grid div small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.leaderboard-section { margin-bottom: 64px; }
.sponsors-section { margin: 0 0 58px; }
.sponsors-heading { margin-bottom: 16px; }
.sponsors-heading h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); }
.sponsors-grid { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.sponsor-card { display: flex; min-width: 150px; flex: 1 1 150px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 130px; padding: 18px 16px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 10px 24px rgba(30, 77, 64, .04); }
.sponsor-card img { width: 100%; height: 64px; display: block; object-fit: contain; }
.sponsor-card span { color: var(--muted); font-size: 11px; font-weight: 700; text-align: center; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-heading-row h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); }
.leaderboard-note { color: var(--mint-strong); font-size: 11px; font-weight: 700; }
.leaderboard-grid { display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); align-items: stretch; gap: 12px; }
.leaderboard-card { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 12px 28px rgba(30, 77, 64, .06); }
.leaderboard-card.rank-1 { border-color: #d7b45b; box-shadow: 0 16px 34px rgba(180, 137, 42, .14); }
.leaderboard-rank { position: absolute; z-index: 1; top: 10px; left: 10px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--dark-mint); color: var(--mint); font: 700 13px "Space Grotesk", sans-serif; }
.rank-1 .leaderboard-rank { width: 36px; height: 36px; background: #d7b45b; color: #fff; font-size: 16px; }
.leaderboard-photo-wrap { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #dff4ea; }
.leaderboard-photo { display: block; background: #dff4ea; }
.leaderboard-info { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: 12px 13px 14px; }
.leaderboard-info h2 { margin: 0; font-size: 15px; line-height: 1.08; }
.rank-1 .leaderboard-info h2 { font-size: 18px; }
.leaderboard-votes { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; margin: auto 0 0; padding-top: 12px; color: var(--muted); text-align: left; }
.leaderboard-votes strong { color: var(--dark-mint); font: 700 20px "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; }
.leaderboard-votes span { font-size: 11px; }
@media (max-width: 760px) { .leaderboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.leaderboard-card.rank-1 { grid-column: 1 / -1; } }
@media (max-width: 760px) { .voting-info { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 430px) { .voting-info { margin-bottom: 46px; padding: 20px; }.voting-info-grid { grid-template-columns: 1fr; gap: 8px; }.voting-info-grid div { padding: 12px; } }
@media (max-width: 430px) { .section-heading-row { align-items: flex-start; flex-direction: column; gap: 8px; }.leaderboard-section { margin-bottom: 48px; }.sponsors-section { margin-bottom: 46px; }.sponsor-card { min-width: calc(50% - 6px); flex-basis: calc(50% - 6px); min-height: 112px; padding: 14px 10px 12px; }.sponsor-card img { height: 52px; }.rank-1 .leaderboard-info h2 { font-size: 16px; } }
.participant-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 9px 0 19px; padding-bottom: 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }.participant-toolbar strong { color: inherit; font: inherit; }.toolbar-note { display: flex; align-items: center; gap: 8px; color: var(--mint-strong); font-weight: 600; }.toolbar-note .pulse { background: #f2b85b; box-shadow: 0 0 0 4px rgba(242, 184, 91, .13); }
.participant-search { margin: 0 0 24px; }
.participant-search > label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.participant-search-field { display: flex; align-items: center; gap: 9px; border: 1px solid var(--mint-strong); border-radius: 11px; padding: 0 13px; background: var(--white); transition: border-color .2s ease, box-shadow .2s ease; }
.participant-search-field:focus-within { border-color: var(--mint-strong); box-shadow: 0 0 0 3px rgba(58,166,127,.12); }
.participant-search-field > span { display: grid; flex: 0 0 20px; place-items: center; height: 20px; color: var(--mint-strong); font-size: 20px; line-height: 1; }
.participant-search-field input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 12px 0; background: transparent; color: var(--ink); font-size: 13px; line-height: 19px; }
.participant-search-field input::placeholder { color: #9aa9a3; }
.participant-search-status { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.leaderboard-search { margin-bottom: 20px; }
.leaderboard-search-results { margin-top: 16px; margin-bottom: 28px; }
.participant-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }.participant-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--white); box-shadow: 0 12px 28px rgba(30, 77, 64, .045); transition: transform .2s ease, box-shadow .2s ease; }.participant-card:hover { transform: translateY(-4px); box-shadow: 0 18px 35px rgba(30, 77, 64, .1); }.participant-photo-wrap { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #dff4ea; }.participant-photo { width: 100%; height: 100%; display: block; object-fit: cover; }.participant-number { position: absolute; top: 11px; right: 11px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.9); color: var(--dark-mint); font: 700 11px "Space Grotesk", sans-serif; }.participant-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(58px, auto) auto; align-items: start; gap: 8px; flex: 1; padding: 15px 14px 16px; }.participant-label { margin: 0 0 5px; color: var(--mint-strong); font-size: 9px; font-weight: 700; letter-spacing: .1em; }.participant-info h2 { margin: 0; font-size: 16px; letter-spacing: -.03em; }.vote-count { text-align: right; }.vote-count span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }.vote-count strong { color: var(--ink); font: 600 20px "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.participant-select-field { display: block; margin-top: 15px; }.select-label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 11px; font-weight: 600; }.participant-select-field select { width: 100%; margin-bottom: 0; border: 1px solid var(--line); border-radius: 10px; padding: 14px 42px 14px 13px; outline: 0; appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='m3 5 4 4 4-4' stroke='%231e4d40' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 14px; color: var(--ink); font: 600 14px "DM Sans", sans-serif; }.participant-select-field select:focus { border-color: var(--mint-strong); box-shadow: 0 0 0 3px rgba(58,166,127,.12); }.participant-select-field select option { padding: 10px; font: 500 14px "DM Sans", sans-serif; }.participant-preview { display: flex; align-items: center; gap: 11px; margin-top: 2px; padding: 14px; border-radius: 11px; background: #eef8f3; }.preview-label { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .08em; }.participant-preview strong { color: var(--dark-mint); font: 600 17px "Space Grotesk", sans-serif; }.preview-divider { flex: 1; }.confirm-button { width: 100%; margin-top: 13px; border: 0; border-radius: 10px; padding: 14px 12px; background: var(--mint); color: var(--dark-mint); font-size: 12px; font-weight: 700; transition: .2s ease; }.confirm-button:hover:not(:disabled) { background: #a3e2c9; }.confirm-button:disabled { cursor: not-allowed; opacity: .46; }.confirm-status { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; font-size: 11px; line-height: 1.5; }.confirm-status.success { background: rgba(185,235,216,.16); color: var(--mint); }.confirm-status.error { background: rgba(255,184,174,.16); color: #ffc1b9; }
.main-quantity-field { display: block; margin-top: 15px; }.quantity-input-wrap { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }.quantity-input-wrap:focus-within { border-color: var(--mint-strong); box-shadow: 0 0 0 3px rgba(58,166,127,.12); }.quantity-input-wrap input { width: 100%; border: 0; outline: 0; padding: 14px 13px; text-align: center; background: transparent; color: var(--ink); font-weight: 600; }.quantity-input-wrap > .quantity-unit { padding-right: 13px; color: var(--muted); font-size: 12px; } input[type="number"] { -moz-appearance: textfield; appearance: textfield; } input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; appearance: none; } .quantity-stepper { display: flex; flex: 0 0 28px; align-self: stretch; flex-direction: column; justify-content: center; } .quantity-step-button { display: grid; place-items: center; width: 100%; height: 50%; margin: 0; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; } .quantity-step-button:focus-visible { outline: 2px solid var(--mint-strong); outline-offset: -2px; } .quantity-step-button .lucide { width: 12px; height: 12px; stroke-width: 2.25; }
.main-total-preview { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; padding: 13px 14px; border-radius: 10px; background: #eef8f3; color: var(--muted); font-size: 12px; }.main-total-preview strong { color: var(--dark-mint); font: 600 18px "Space Grotesk", sans-serif; }
.quantity-field .quantity-input-wrap { margin-top: 4px; border: 0; background: transparent; }
.quantity-field .quantity-input-wrap input { margin-top: 0; padding: 0; }
#qris-form > .primary-button { margin-top: 15px; }
.vote-actions { display: grid; gap: 15px; margin-top: 15px; }
.vote-actions .primary-button, .vote-actions .danger-button { margin-top: 0; }
.danger-button { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 1px solid #e3b5ae; border-radius: 11px; padding: 13px 18px; background: #fff0ed; color: #a64e44; font-weight: 700; transition: .2s ease; }
.danger-button:hover:not(:disabled) { background: #ffe4df; border-color: #c9786c; transform: translateY(-1px); }
.danger-button:disabled { cursor: not-allowed; opacity: .46; }
.photo-crop-editor { margin-top: 15px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fbfdfc; }
.photo-crop-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.photo-crop-heading h3 { margin: 5px 0 0; color: var(--ink); font-size: 16px; }
.crop-zoom-value { color: var(--dark-mint); font: 600 13px "Space Grotesk", sans-serif; }
.photo-crop-preview { position: relative; width: min(100%, 240px); aspect-ratio: 3 / 4; margin: 14px auto 0; overflow: hidden; border-radius: 10px; background: #dff4ea; cursor: grab; touch-action: none; user-select: none; }
.photo-crop-preview:active { cursor: grabbing; }
.photo-crop-preview:focus-visible { outline: 3px solid rgba(58,166,127,.35); outline-offset: 3px; }
.photo-crop-preview canvas { width: 100%; height: 100%; display: block; pointer-events: none; }
.photo-crop-help { margin: 10px 0 13px; color: var(--muted); font-size: 10px; text-align: center; }
.crop-controls { display: grid; gap: 10px; }
.crop-zoom-field { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.crop-zoom-field input { width: 100%; accent-color: var(--mint-strong); }
.photo-crop-actions { display: grid; gap: 8px; margin-top: 14px; }
.photo-crop-actions .primary-button { margin-top: 0; }

/* Keep public photos dimensioned by CSS during responsive reflow. */
.leaderboard-photo,
.participant-photo { width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: 50% 50%; transform-origin: center center; }

.participant-card { cursor: pointer; }
.leaderboard-card { cursor: pointer; }
.photo-crop-actions .secondary-button { width: 100%; }
.photo-crop-status { margin: 10px 0 0; padding: 9px 10px; border-radius: 8px; background: #e9f8f0; color: #287959; font-size: 10px; line-height: 1.4; }
.photo-crop-status.error { background: #fff0ed; color: #b8564c; }
.leaderboard-participant-number { display: block; width: fit-content; margin: 0 0 5px; color: var(--mint-strong); font-size: 9px; font-weight: 700; letter-spacing: .1em; line-height: 1.2; }
.leaderboard-participant-number-label,
.leaderboard-participant-number-value { display: inline-block; }
.index-header { position: relative; }
.index-header .event-title { font-size: clamp(24px, 4vw, 42px); }
.admin-maintenance-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 18px 45px rgba(30, 77, 64, .055); }
.admin-maintenance-copy { min-width: 0; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.admin-maintenance-copy .section-kicker { margin-bottom: 7px; }
.admin-maintenance-copy h2 { margin: 0; font-size: clamp(21px, 3vw, 28px); }
.admin-maintenance-copy p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.maintenance-toggle { min-width: 220px; margin: 0; border: 0; border-radius: 10px; padding: 13px 16px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700; text-align: center; }
.maintenance-toggle:hover:not(:disabled) { background: var(--dark-mint); }
.maintenance-toggle:disabled { cursor: wait; opacity: .7; }
.index-footer { align-items: center; justify-content: center; flex-direction: column; gap: 7px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); text-align: center; }
.index-status { width: min(700px, 100%); margin: 18px auto 0; }
.reset-button { width: 100%; margin-top: 9px; border: 0; background: transparent; color: var(--muted); font-size: 11px; }.reset-button:hover { color: var(--mint-strong); text-decoration: underline; }.cancel-payment-button { width: 100%; margin-top: 9px; border: 1px solid #e3b5ae; border-radius: 10px; padding: 12px; background: #fff8f6; color: #b8564c; font-size: 11px; font-weight: 700; }.cancel-payment-button:hover:not(:disabled) { background: #ffefeb; }.cancel-payment-button:disabled { cursor: wait; opacity: .65; }.payment-intent-status { margin: 11px 0 0; padding: 10px 12px; border-radius: 8px; font-size: 11px; line-height: 1.5; }.payment-intent-status.success { background: #e3f7ed; color: #287959; }.payment-intent-status.error { background: #fff0ed; color: #b8564c; }
.cancel-payment-button { border: 0; border-radius: 0; padding: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 400; }.cancel-payment-button:hover:not(:disabled) { background: transparent; color: var(--mint-strong); text-decoration: underline; }.cancel-payment-button:disabled { cursor: wait; opacity: .65; }
#generate-modal-qr { justify-content: center; gap: 8px; }
.voting-modal { width: min(92vw, 540px); max-height: 90vh; overflow: auto; border: 0; border-radius: 21px; padding: 28px; color: var(--ink); box-shadow: 0 24px 80px rgba(19,35,31,.25); }.voting-modal::backdrop { background: rgba(19,35,31,.54); backdrop-filter: blur(3px); }.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.modal-heading .section-kicker { margin-bottom: 9px; }.modal-heading h2 { font-size: 27px; }.modal-participant { margin: 7px 0 0; color: var(--muted); font-size: 13px; }.modal-close { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #eef6f2; color: var(--ink); font: 400 20px/1 Arial, sans-serif; }.modal-meta { display: grid; grid-template-columns: .7fr 1.25fr 1fr; gap: 10px; margin-top: 28px; }.modal-meta > div, .quantity-field { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 12px; border-radius: 10px; background: #f3f8f5; }.modal-meta span { color: var(--muted); font-size: 9px; }.modal-meta strong { margin-top: 6px; color: var(--dark-mint); font: 600 16px "Space Grotesk", sans-serif; }.quantity-field input { width: 100%; margin-top: 4px; border: 0; outline: 0; background: transparent; color: var(--dark-mint); font: 600 16px "Space Grotesk", sans-serif; }.modal-total { display: flex; justify-content: space-between; align-items: center; margin: 19px 0 14px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }.modal-total strong { color: var(--ink); font: 600 23px "Space Grotesk", sans-serif; }.modal-qr-result { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }.modal-qr-result .qr-frame { width: min(100%, 250px); margin: 0 auto; }.modal-qr-result .payment-summary { color: var(--muted); }.modal-qr-result .payment-summary strong { color: var(--ink); }.modal-qr-result .secondary-button { background: var(--white); }.modal-qr-result .dark-button { background: var(--dark-mint); color: var(--mint); }
.admin-guide { display: flex; flex-direction: column; }.guide-list { margin-top: 52px; }.guide-list > div { display: flex; gap: 18px; align-items: flex-start; padding: 19px 0; border-top: 1px solid rgba(185,235,216,.2); }.guide-list > div:last-child { border-bottom: 1px solid rgba(185,235,216,.2); }.guide-list span { color: var(--mint); font: 600 11px "Space Grotesk", sans-serif; }.guide-list p { margin: 0; color: rgba(255,255,255,.74); font-size: 13px; line-height: 1.45; }.guide-total { margin-top: auto; padding-top: 25px; color: rgba(255,255,255,.6); font-size: 11px; }.guide-total strong { display: block; margin-top: 7px; color: var(--mint); font: 600 19px "Space Grotesk", sans-serif; }
.voting-modal { width: min(92vw, 540px); max-height: 90vh; overflow: auto; border: 0; border-radius: 21px; padding: 28px; color: var(--ink); box-shadow: 0 24px 80px rgba(19,35,31,.25); }.voting-modal::backdrop { background: rgba(19,35,31,.54); backdrop-filter: blur(3px); }.modal-heading { display: flex; justify-content: space-between; gap: 15px; }.modal-heading .section-kicker { margin-bottom: 9px; }.modal-heading h2 { font-size: 27px; }.modal-participant { margin: 7px 0 0; color: var(--muted); font-size: 13px; }.modal-close { width: 31px; height: 31px; border: 0; border-radius: 50%; background: #eef6f2; color: var(--ink); font-size: 22px; line-height: 1; }.modal-meta { display: grid; grid-template-columns: .7fr 1.25fr 1fr; gap: 10px; margin-top: 28px; }.modal-meta > div, .quantity-field { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 12px; border-radius: 10px; background: #f3f8f5; }.modal-meta span { color: var(--muted); font-size: 9px; }.modal-meta strong { margin-top: 6px; color: var(--dark-mint); font: 600 16px "Space Grotesk", sans-serif; }.quantity-field input { width: 100%; margin-top: 4px; border: 0; outline: 0; background: transparent; color: var(--dark-mint); font: 600 16px "Space Grotesk", sans-serif; }.modal-total { display: flex; justify-content: space-between; align-items: center; margin: 19px 0 14px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }.modal-total strong { color: var(--ink); font: 600 23px "Space Grotesk", sans-serif; }.modal-qr-result { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }.modal-qr-result .qr-frame { width: min(100%, 250px); margin: 0 auto; }.modal-qr-result .payment-summary { color: var(--muted); }.modal-qr-result .payment-summary strong { color: var(--ink); }.modal-qr-result .secondary-button { background: var(--white); }.modal-qr-result .dark-button { background: var(--dark-mint); color: var(--mint); }
.server-status { margin: 0 0 30px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #e9f8f0; color: #287959; font-size: 11px; line-height: 1.5; }.server-status.success { background: #e9f8f0; color: #287959; }
.vote-button { grid-column: 1 / -1; width: 100%; border: 1px solid #b9ebd8; border-radius: 8px; padding: 9px 10px; background: #effaf5; color: #287959; font-size: 11px; font-weight: 700; transition: .2s ease; }.vote-button:hover:not(:disabled) { background: var(--mint); color: var(--dark-mint); }.vote-button:disabled { cursor: wait; opacity: .65; }
@media (max-width: 780px) { .page-shell { padding: 28px 18px; }.hero { margin-bottom: 30px; }.workspace { grid-template-columns: 1fr; }.qr-panel { min-height: 0; }.merchant-card { margin-top: 42px; }.qr-empty { min-height: 270px; } }
@media (max-width: 560px) { .index-header { display: block; margin-bottom: 30px; padding-bottom: 18px; }.index-header .event-title { font-size: 25px; }.hero { margin-top: 0; } }
@media (max-width: 560px) { .voting-modal { padding: 22px 18px; }.modal-meta { grid-template-columns: 1fr 1fr; }.quantity-field { grid-column: 1 / -1; }.modal-heading h2 { font-size: 23px; } }
@media (max-width: 980px) { .participant-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 580px) { .participants-header { margin-bottom: 30px; padding-bottom: 20px; }.participant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }.participant-info { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 8px; padding: 12px 11px 13px; }.vote-count { grid-column: 1; display: flex; justify-content: space-between; align-items: center; margin-top: 0; text-align: left; }.vote-count span { margin: 0; }.participant-info h2 { font-size: 14px; }.participant-toolbar { margin-top: 9px; }.toolbar-note { font-size: 0; }.toolbar-note .pulse { font-size: initial; }.vote-button { grid-column: 1; margin-top: 0; } }
@media (max-width: 580px) { .admin-maintenance-panel { align-items: stretch; flex-direction: column; gap: 16px; padding: 20px; }.admin-maintenance-copy { width: 100%; }.form-panel { padding: 20px; }.maintenance-toggle { width: 100%; min-width: 0; } }
@media (max-width: 700px) { .admin-header { align-items: stretch; flex-direction: column; gap: 24px; margin-bottom: 42px; }.admin-actions { align-items: stretch; min-width: 0; }.maintenance-toggle { width: 100%; } }
@media (max-width: 560px) { .voting-modal { padding: 22px 18px; }.modal-meta { grid-template-columns: 1fr 1fr; }.quantity-field { grid-column: 1 / -1; }.modal-heading h2 { font-size: 23px; } }
@media (max-width: 430px) { .form-panel, .qr-panel { padding: 20px; border-radius: 18px; }.merchant-card .verified { display: none; } footer { flex-direction: column; gap: 7px; } }
.qr-warning { margin: 0 0 16px; padding: 10px 12px; border-left: 3px solid #d94b4b; border-radius: 7px; background: #fff0f0; color: #b52f38; font-size: 11px; line-height: 1.5; }
.proof-upload { display: flex; align-items: center; gap: 11px; margin-top: 18px; padding: 13px; border: 1px dashed #a8c9bb; border-radius: 12px; background: #f5fbf7; cursor: pointer; transition: border-color .2s ease, background .2s ease; }.proof-upload:hover { border-color: var(--mint-strong); background: #edf9f2; }.proof-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; background: var(--mint); color: var(--dark-mint); font: 700 18px "Space Grotesk", sans-serif; }.proof-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }.proof-copy strong { color: var(--ink); font-size: 12px; }.proof-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.proof-browse { padding: 7px 9px; border-radius: 7px; background: #e5f4eb; color: var(--mint-strong); font-size: 10px; font-weight: 700; }.hidden-file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }.proof-upload:focus-within { outline: 3px solid rgba(58,166,127,.18); outline-offset: 2px; }.proof-preview-wrap { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }.proof-preview { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 8px; object-fit: cover; }.proof-file-info { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; }.proof-file-info strong { color: var(--ink); font-size: 11px; }.proof-file-name { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.proof-remove { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border: 0; border-radius: 8px; background: #fff0f0; color: #b52f38; font-size: 20px; line-height: 1; cursor: pointer; }.proof-remove:hover { background: #ffdede; }.proof-remove:focus-visible { outline: 3px solid rgba(217,75,75,.2); outline-offset: 2px; }
/* Keep completed Telegram submissions readable even though the button is disabled. */
.confirm-button.sent, .confirm-button.sent:disabled { background: #b9ebd8; color: #1e4d40; opacity: 1; cursor: default; }
.confirm-button.loading, .confirm-button.loading:disabled { opacity: 1; cursor: wait; }
.confirm-status.success { background: #e3f7ed; color: #287959; }
.confirm-status.error { background: #fff0ed; color: #b8564c; border: 1px solid #f2c4be; }
.voting-modal.payment-complete .qr-frame { display: none; }.voting-modal.payment-complete .proof-upload { pointer-events: none; opacity: .62; }.voting-modal.payment-complete .quantity-field { opacity: .62; }
/* The QRIS warning is critical and should be readable at a glance. */
.qr-warning { padding: 14px 15px; border-left-width: 5px; color: #9f202b; font-size: 14px; font-weight: 700; line-height: 1.55; }
.qr-warning strong { display: block; margin-bottom: 5px; }
.qr-warning ul { margin: 0; padding-left: 20px; }
.qr-warning li + li { margin-top: 3px; }

.modal-qr-result .payment-summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin: 0; text-align: center; }
.modal-qr-result .payment-summary span { color: var(--dark-mint); font-size: 13px; font-weight: 600; line-height: 1.35; }
.modal-qr-result .payment-summary strong { font-size: 25px; }
.modal-qr-result .payment-unique-code { color: var(--muted); font-size: 11px; font-weight: 600; }
.modal-qr-result .qr-frame { margin-top: 14px; }
.modal-qr-result #qrcode { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; }
.modal-qr-result #qrcode canvas,
.modal-qr-result #qrcode img { display: block; width: 100% !important; height: 100% !important; max-width: 100%; max-height: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.modal-qr-result .qris-template-frame { position: relative; display: block; width: min(100%, 284px); aspect-ratio: 1136 / 1600; margin: 14px auto 0; padding: 0; overflow: hidden; border-radius: 14px; background: var(--white); }
.qris-template-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.qris-template-frame #qrcode { position: absolute; top: 31.7%; left: 22.5%; width: 55% !important; height: auto !important; aspect-ratio: 1; padding: 2.7%; background: var(--white); }
.qris-template-frame #qrcode canvas,
.qris-template-frame #qrcode img { width: 100% !important; height: 100% !important; }
.payment-success-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 230px; margin-top: 14px; padding: 28px 20px; border: 2px solid #8bd7b5; border-radius: 18px; background: #e9fff3; color: #1e4d40; text-align: center; }
.payment-success-panel[hidden], .payment-toast[hidden] { display: none; }
.payment-success-icon { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 5px; border-radius: 50%; background: #3aa67f; color: #fff; font: 700 38px/1 "Space Grotesk", sans-serif; box-shadow: 0 8px 20px rgba(58,166,127,.24); }
.payment-success-panel strong { font: 700 24px/1.2 "Space Grotesk", sans-serif; }
.payment-success-panel > span:last-child { color: #287959; font-size: 14px; font-weight: 600; }
.modal-qr-result .payment-success-panel { min-height: 0; margin: 14px 0 0; padding: 18px 16px; }
.modal-qr-result .payment-success-icon { width: 52px; height: 52px; font-size: 30px; }
.modal-qr-result .payment-success-panel strong { font-size: 20px; }
.payment-success-panel .payment-success-detail { color: #287959; font-size: 14px; font-weight: 600; line-height: 1.45; }
.voting-modal .modal-meta { grid-template-columns: 1fr 1fr; }
.payment-toast { position: fixed; top: max(22px, env(safe-area-inset-top)); right: auto; bottom: auto; left: 50%; z-index: 10000; display: flex; align-items: center; gap: 12px; width: min(390px, calc(100vw - 32px)); margin: 0; padding: 14px 15px; border: 1px solid #8bd7b5; border-radius: 14px; background: #effcf5; color: #1e4d40; box-shadow: 0 16px 40px rgba(19,35,31,.18); animation: payment-toast-in .25s ease-out; transform: translateX(-50%); }
.payment-toast-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: #3aa67f; color: #fff; font-weight: 700; }
.payment-toast p { display: block; min-width: 0; flex: 1 1 auto; margin: 0; color: #1e4d40; font-size: 12px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.payment-toast button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: #287959; font-size: 22px; line-height: 1; cursor: pointer; }
@keyframes payment-toast-in { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Keep vote controls aligned when participant names wrap differently. */
.participant-info { grid-template-rows: minmax(58px, auto) auto 1fr; }
.participant-info .vote-button { align-self: end; }
@media (max-width: 580px) {
  .participant-info { grid-template-rows: minmax(42px, auto) auto 1fr; }
}
.confirm-button .proof-loading { display: none; align-items: center; justify-content: center; gap: 7px; }
.confirm-button.loading .proof-button-label, .confirm-button.sent .proof-loading { display: none; }
.confirm-button.loading .proof-loading { display: inline-flex; }
.proof-dots { display: inline-flex; align-items: center; gap: 3px; height: 1em; }
.proof-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: proof-dot-wave 1s ease-in-out infinite; }
.proof-dots i:nth-child(2) { animation-delay: .14s; }
.proof-dots i:nth-child(3) { animation-delay: .28s; }
@keyframes proof-dot-wave { 0%, 60%, 100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .proof-dots i { animation: none; opacity: .85; } }
.reset-button { display: block; width: 100%; margin-top: 16px; padding: 10px 12px 2px; border-top: 1px solid var(--line); }
.reset-button { margin-top: 20px; padding: 14px 12px; border: 1px solid #e3b5ae; border-radius: 10px; background: #fff0ed; color: #b8564c; font-size: 14px; font-weight: 700; }
.reset-button:hover { background: #ffe4df; color: #9f4037; text-decoration: none; }

.maintenance-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 9999; }

.admin-transactions { margin-top: 30px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 18px 45px rgba(30, 77, 64, .055); }
.admin-summary { margin: 0 0 30px; }
.admin-summary-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.admin-summary-heading h2 { color: var(--mint-strong); font-size: 22px; }
.admin-summary-heading span { color: var(--muted); font-size: 11px; }
.admin-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-summary-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: 0 12px 28px rgba(30, 77, 64, .045); }
.admin-summary-card span, .admin-summary-card small { display: block; color: var(--muted); font-size: 11px; }
.admin-summary-card strong { display: block; margin: 8px 0 4px; overflow: hidden; color: var(--ink); font: 700 26px/1.05 "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.admin-summary-card-primary { border-color: var(--mint-strong); background: #eef8f3; }
.admin-summary-card-primary strong { color: var(--dark-mint); }
@media (max-width: 900px) { .admin-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .admin-summary-heading { align-items: flex-start; flex-direction: column; gap: 6px; }.admin-summary-grid { gap: 10px; }.admin-summary-card { padding: 14px; }.admin-summary-card strong { font-size: 22px; } }
.participant-select-field select, .quantity-input-wrap input { font-size: 12px; }
.admin-webhook-events { margin-top: 24px; }
.admin-transactions-heading { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.admin-transactions-heading h2 { margin: 0; color: var(--mint-strong); }
.admin-transactions-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.admin-transaction-filters { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(130px, 1fr)); align-items: end; gap: 15px; margin-bottom: 15px; }
.admin-transaction-filters label { display: flex; flex-direction: column; gap: 9px; color: var(--muted); font-size: 11px; font-weight: 600; }
.admin-transaction-filters input, .admin-transaction-filters select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 13px; outline: 0; background: var(--white); color: var(--ink); font-size: 12px; }
.admin-transaction-filters input:focus, .admin-transaction-filters select:focus { border-color: var(--mint-strong); box-shadow: 0 0 0 3px rgba(58,166,127,.12); }
.admin-transaction-filters select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='m3 5 4 4 4-4' stroke='%231e4d40' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 14px; }
.admin-transaction-filters .secondary-button { min-height: 42px; margin: 0; white-space: nowrap; }
.admin-transactions-status { display: none; }
.admin-transactions-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.admin-transactions-table { width: 100%; min-width: 1160px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.admin-transactions-table th, .admin-transactions-table td { padding: 15px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; white-space: nowrap; }
.admin-transactions-table th { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.admin-transactions-table td { font-size: 12px; }
.admin-transactions-table tbody tr:last-child td { border-bottom: 0; }
.admin-transactions-table .transaction-id { max-width: 180px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-family: monospace; }
.admin-transactions-table .transaction-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.admin-manual-confirm-button { border: 1px solid var(--mint-strong); border-radius: 8px; padding: 8px 10px; background: #eefaf4; color: var(--dark-mint); font-size: 10px; font-weight: 700; white-space: nowrap; }
.admin-manual-confirm-button:hover { background: var(--mint); }
.admin-delete-transaction-button { margin-left: 8px; border: 1px solid #e5aaa4; border-radius: 8px; padding: 8px 10px; background: #fff4f2; color: #b84c43; font-size: 10px; font-weight: 700; white-space: nowrap; }
.admin-delete-transaction-button:hover { background: #ffe8e4; }
.admin-transaction-status-badge { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 700; }
.admin-transaction-status-badge.status-paid { background: #dff6e9; color: #1d8058; }
.admin-transaction-status-badge.status-pending { background: #fff3d8; color: #9a6a12; }
.admin-transaction-status-badge.status-cancelled { background: #ffebe8; color: #b84c43; }
.admin-transaction-status-badge.status-ambiguous { background: #eee8ff; color: #6550a6; }
.admin-transaction-status-badge.status-matched { background: #dff6e9; color: #1d8058; }
.admin-transaction-status-badge.status-unmatched { background: #fff3d8; color: #9a6a12; }
.admin-transaction-status-badge.status-delivered { background: #dff6e9; color: #1d8058; }
.admin-transaction-status-badge.status-retry { background: #fff3d8; color: #9a6a12; }
.admin-transaction-status-badge.status-review { background: #eee8ff; color: #6550a6; }
.admin-transaction-status-badge.status-disabled { background: #eef2f0; color: #60746c; }
.admin-transactions-pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 15px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.admin-transactions-pagination > div { display: flex; gap: 15px; }
.admin-transactions-pagination .secondary-button { margin: 0; padding: 10px 13px; font-size: 11px; }
.manual-payment-dialog { width: min(92vw, 440px); border: 1px solid var(--line); border-radius: 18px; padding: 28px; color: var(--ink); box-shadow: 0 24px 80px rgba(19,35,31,.25); }
.manual-payment-dialog::backdrop { background: rgba(19,35,31,.54); backdrop-filter: blur(3px); }
.manual-payment-dialog h2 { margin: 0 0 12px; font-size: 25px; }
.manual-payment-description, .manual-payment-warning { color: var(--muted); font-size: 13px; line-height: 1.5; }
.manual-payment-warning { margin: 18px 0 24px; padding: 12px; border-radius: 10px; background: #fff3d8; color: #805b19; }
.manual-payment-actions { display: flex; justify-content: flex-end; gap: 10px; }
.manual-payment-actions button { margin: 0; }

@media (max-width: 900px) { .admin-transaction-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }.admin-transaction-filters label:first-child { grid-column: 1 / -1; }.admin-transaction-filters .secondary-button { justify-self: start; } }
@media (max-width: 580px) { .admin-transactions { margin-top: 30px; padding: 20px; border-radius: 18px; }.admin-transactions-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 15px; }.admin-transaction-filters { grid-template-columns: 1fr; }.admin-transaction-filters label:first-child { grid-column: auto; }.admin-transactions-pagination { align-items: flex-start; flex-direction: column; }.admin-transactions-pagination > div { width: 100%; }.admin-transactions-pagination .secondary-button { flex: 1; } }
.maintenance-overlay[hidden] { display: none; }
.maintenance-modal { background: #fffcf8; padding: 40px; border-radius: 20px; text-align: center; max-width: 400px; width: 90%; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.maintenance-icon { background: #a65d24; color: white; width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; margin: 0 auto 20px; transform: rotate(10deg); }
.maintenance-modal h2 { color: #8b4513; margin: 0 0 12px; font-size: 24px; font-family: 'Space Grotesk', sans-serif; text-transform: uppercase; line-height: 1.2; }
.maintenance-modal p { color: #5a4b41; margin: 0 0 24px; font-size: 14px; line-height: 1.5; }
.maintenance-btn { background: #8b4513; color: white; border: none; padding: 12px 24px; border-radius: 24px; font-weight: 600; font-family: 'Space Grotesk', sans-serif; cursor: pointer; transition: transform 0.2s, background 0.2s; }
.maintenance-btn:hover { background: #70360e; transform: scale(1.05); }
.maintenance-btn:active { transform: scale(0.95); }
.participant-preview { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; }
.participant-preview > div { min-width: 0; }
.participant-preview > div:last-child { min-width: 78px; text-align: right; }
.preview-label { display: block; margin-bottom: 5px; white-space: nowrap; }
.participant-preview strong { display: block; margin: 0; line-height: 1.08; overflow-wrap: anywhere; }
.preview-divider { display: none; }
@media (max-width: 560px) { .participant-preview { gap: 14px; padding: 14px; }.participant-preview > div:last-child { min-width: 70px; } }
.participant-preview { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.participant-preview > div { min-width: 0; }
.participant-preview > div:last-child { min-width: 82px; text-align: right; }
.participant-preview .preview-label { display: block; margin-bottom: 5px; white-space: nowrap; }
.participant-preview strong { display: block; margin: 0; line-height: 1.08; overflow-wrap: anywhere; }
.participant-preview .preview-divider { display: none; }
@media (max-width: 560px) { .participant-preview { gap: 14px; padding: 14px; }.participant-preview > div:last-child { min-width: 72px; } }
.participant-preview-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: stretch; margin-top: 2px; padding: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #eef8f3; }
.participant-preview-photo-wrap { position: relative; min-height: 96px; overflow: hidden; border-radius: 9px; background: #dff4ea; }
.participant-preview-photo { position: absolute; display: block; max-width: none; }
.participant-preview-number { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; min-width: 25px; height: 25px; padding: 0 5px; border-radius: 7px; background: rgba(255,255,255,.92); color: var(--dark-mint); font: 700 10px "Space Grotesk", sans-serif; }
.participant-preview-content { display: flex; min-width: 0; flex-direction: column; justify-content: center; }
.participant-preview-content > strong { color: var(--dark-mint); font: 600 16px "Space Grotesk", sans-serif; line-height: 1.15; overflow-wrap: anywhere; }
.participant-preview-votes { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 9px; border-top: 1px solid rgba(30,77,64,.12); }
.participant-preview-votes .preview-label { margin: 0; }
.participant-preview-votes strong { color: var(--ink); font: 600 17px "Space Grotesk", sans-serif; }
.participant-preview-navigation { position: relative; display: block; width: min(100%, 312px); margin: 15px auto 0; }
.participant-preview-navigation[hidden] { display: none; }
.participant-preview-navigation .participant-preview-card { grid-template-columns: 1fr; gap: 15px; align-items: center; margin: 0; padding: 14px; text-align: center; }
.participant-preview-navigation .participant-navigation-button { position: absolute; z-index: 1; top: 102px; transform: translateY(-50%); transition: none; }
.participant-preview-navigation #previous-participant { left: calc(50% - 115px); }
.participant-preview-navigation #next-participant { right: calc(50% - 115px); }
.participant-navigation-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--dark-mint); font: 700 20px/1 "Space Grotesk", sans-serif; cursor: pointer; transition: .2s ease; }
.participant-navigation-button:hover:not(:disabled) { border-color: var(--line); background: var(--white); }
.participant-navigation-button:disabled { cursor: not-allowed; opacity: .35; }
.participant-preview-photo-wrap { width: 132px; height: 176px; min-height: 0; margin: 0 auto; }
.participant-preview-content { width: 100%; align-items: center; }
.participant-preview-content > strong { max-width: 100%; }
.participant-preview-votes { width: 100%; }

/* Keep the public participant typography isolated from the admin page. */
body.participants-site * { font-family: "Poppins", sans-serif !important; }
body.participants-site { font-size: 14px; }
body.participants-site .participant-label,
body.participants-site .preview-label,
body.participants-site .modal-heading > div { flex: 1; text-align: center; }
/* Keep the participant card details in a predictable vertical order. */
body.participants-site .participant-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
body.participants-site .participant-info > div:first-child {
  min-height: 58px;
  text-align: left;
}
body.participants-site .participant-info .participant-label,
body.participants-site .participant-info h2 {
  text-align: left;
}
body.participants-site .participant-info .vote-count {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  text-align: left;
}
body.participants-site .participant-info .vote-count span { margin: 0; }
body.participants-site .participant-info .vote-button {
  flex: 0 0 auto;
  margin-top: 9px;
}
body.participants-site .participant-info .vote-button:hover:not(:disabled) { background: #16814d; color: var(--white); }
body.participants-site .modal-heading h2 { text-align: center; }
body.participants-site .modal-participant { margin: 15px 0 0; font-size: 20px; font-weight: 600; line-height: 1.4; text-align: center; }
body.participants-site #voting-modal .modal-participant-photo-wrap { position: relative; display: block; width: min(150px, 100%); height: auto; aspect-ratio: 3 / 4; margin: 15px auto 0; overflow: hidden; border: 2px solid #111; border-radius: 12px; background: #eef8f3; }
body.participants-site #voting-modal .modal-participant-photo { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
body.participants-site #voting-modal .modal-participant-photo { box-sizing: border-box; border: 0; border-radius: 0; }
body.participants-site .modal-meta span,
body.participants-site .participant-number { font-size: 11px; }
body.participants-site .vote-count span,
body.participants-site .modal-participant,
body.participants-site .payment-summary { font-size: 12px; }
body.participants-site .modal-close { font-family: Arial, sans-serif !important; }
body.participants-site .section-subtitle { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
body.participants-site .participant-search-field > svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--mint-strong); }
body.participants-site .participant-card,
body.participants-site .leaderboard-card,
body.participants-site .sponsor-card { border-radius: 18px; box-shadow: 0 18px 45px rgba(30, 77, 64, .055); }
body.participants-site .participant-search-field input { min-height: 48px; font-size: 13px; }
body.participants-site .participant-search > label { margin-bottom: 9px; font-size: 12px; font-weight: 600; }
body.participants-site .participant-search-status { margin-top: 9px; font-size: 13px; }
body.participants-site .voting-modal { border-radius: 18px; padding: 22px 26px; }
body.participants-site:has(#voting-modal[open]) { overflow: hidden; }
body.participants-site .voting-modal,
body.participants-site .voting-modal h2,
body.participants-site .voting-modal button,
body.participants-site .voting-modal input,
body.participants-site .voting-modal strong,
body.participants-site .voting-modal span,
body.participants-site .voting-modal p,
body.participants-site .voting-modal li { font-family: Poppins, sans-serif; letter-spacing: normal; }
body.participants-site .voting-modal:has(.modal-qr-result:not([hidden])) .modal-total { display: none; }
body.participants-site .modal-meta { gap: 15px; margin-top: 15px; }
body.participants-site .modal-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
body.participants-site .modal-meta .quantity-field { grid-column: 1 / -1; }
body.participants-site .modal-meta .supporter-phone-field { margin-top: 0; }
body.participants-site .modal-meta > div { justify-content: flex-start; gap: 9px; padding: 0; border: 0; background: transparent; }
body.participants-site .modal-meta > div strong { display: flex; align-items: center; min-height: 48px; margin-top: 0; padding: 14px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-family: Poppins, sans-serif; font-size: 12px; font-weight: 600; line-height: 1.2; }
body.participants-site .modal-meta > div > span:first-child,
body.participants-site .supporter-phone-field > span:first-child { display: flex; align-items: flex-start; min-height: 0; color: var(--muted); font: 600 11px/1.25 Poppins, sans-serif; letter-spacing: normal; text-align: left; }
body.participants-site #voting-modal .modal-meta .quantity-field { border: 1px solid var(--line); }
body.participants-site .modal-meta span { font-size: 12px; }
body.participants-site .voting-modal .quantity-field { grid-column: 1 / -1; min-height: 86px; }
body.participants-site .modal-total > span { color: var(--ink); font-size: 23px; font-weight: 600; }
body.participants-site .modal-heading h2 { font-size: clamp(24px, 5vw, 28px); line-height: 1.15; }
body.participants-site .modal-participant { font-size: 14px; }
body.participants-site .modal-meta strong,
body.participants-site .quantity-field input { font-size: 17px; }
body.participants-site .quantity-field input { font-size: 40px; line-height: 1; }
body.participants-site .quantity-field .quantity-input-wrap { position: relative; }
body.participants-site .quantity-field .quantity-input-wrap input { width: 100%; padding-right: 0; }
body.participants-site .quantity-field .quantity-stepper { position: absolute; top: 0; right: 0; }
body.participants-site .quantity-field .quantity-stepper { top: 0; right: 8px; height: 100%; flex-basis: 36px; }
body.participants-site .quantity-field .quantity-step-button .lucide { width: 18px; height: 18px; stroke-width: 2.5; }
body.participants-site .supporter-phone-field { display: flex; flex-direction: column; gap: 9px; margin-top: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
body.participants-site .supporter-phone-field > span:first-child { min-width: 0; }
body.participants-site .supporter-phone-field em { margin-left: 4px; color: #c94b43; font-style: normal; font-weight: 700; }
body.participants-site .supporter-phone-field input { min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 13px; background: var(--white); color: var(--ink); font-family: Poppins, sans-serif; font-size: 12px; font-weight: 600; line-height: 1.2; outline: 0; }
body.participants-site .modal-meta > div,
body.participants-site .modal-meta .supporter-phone-field,
body.participants-site .modal-meta .quantity-field { width: 100%; box-sizing: border-box; }
body.participants-site .supporter-phone-field input:focus { border-color: var(--mint-strong); box-shadow: 0 0 0 3px rgba(58,166,127,.12); }
body.participants-site .supporter-phone-field small { color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.45; }
body.participants-site .modal-total > span { font-size: 14px; font-weight: 600; }
body.participants-site .modal-total > strong { font-size: 24px; }
body.participants-site .pending-payment-banner { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 15px 0 0; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff8e8; color: var(--ink); }
body.participants-site .pending-payment-banner strong { font-size: 14px; }
body.participants-site .pending-payment-banner p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
body.participants-site .pending-payment-banner button { margin: 0; white-space: nowrap; }
body.participants-site .payment-intent-status { margin-top: 15px; padding: 11px 12px; font-size: 13px; line-height: 1.5; text-align: center; }
body.participants-site .pending-resume-button { display: block; width: 100%; margin-top: 12px; border: 1px solid var(--mint-strong); border-radius: 10px; padding: 11px 13px; background: var(--white); color: var(--dark-mint); font-size: 13px; font-weight: 700; }
body.participants-site .qr-warning { margin-bottom: 15px; padding: 14px 15px; border: 2px solid #d94b4b; border-radius: 10px; font-size: 13px; line-height: 1.5; }
body.participants-site .qr-warning strong { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15px; text-align: center; }
body.participants-site .qr-warning strong .lucide { width: 24px; height: 24px; stroke-width: 2.5; }
body.participants-site .qr-warning li { margin-top: 6px; }
body.participants-site .modal-qr-result .payment-summary span { font-size: 14px; }
body.participants-site .modal-qr-result .payment-summary { margin-top: 15px; }
body.participants-site .modal-qr-result .payment-summary strong { font-size: 24px; }
body.participants-site .modal-qr-result .payment-unique-code { font-size: 13px; }
body.participants-site .modal-qr-result .qr-frame { margin-top: 15px; }
body.participants-site .modal-qr-result .modal-payment-countdown { display: block; width: 100%; margin: 15px 0 0; color: var(--dark-mint); font: 600 16px/1.35 Poppins, sans-serif; text-align: center; }
body.participants-site .payment-expiry-note { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }
body.participants-site .cancel-payment-button { font-size: 13px; }
body.participants-site .cancel-payment-button { margin-top: 15px; padding: 12px 14px; border: 1px solid #e3b5ae; border-radius: 10px; background: #fff8f6; color: #b8564c; font-weight: 700; text-decoration: none; }
body.participants-site #voting-modal .modal-participant { margin: 15px 0 0; color: var(--muted); font-size: 20px; font-weight: 600; line-height: 1.4; text-align: center; }
body.participants-site #voting-modal .cancel-payment-button { border: 0; background: #c94b43; color: var(--white); text-decoration: none; }
body.participants-site #voting-modal .cancel-payment-button:hover:not(:disabled) { background: #b33f38; color: var(--white); text-decoration: none; }
body.participants-site .modal-exit-button { width: 100%; margin-top: 15px; padding: 12px 14px; border: 1px solid #e5aaa4; border-radius: 10px; background: #fff4f2; color: #b84c43; font-size: 13px; font-weight: 700; }
@media (max-width: 580px) { body.participants-site .modal-meta { grid-template-columns: 1fr; } body.participants-site .modal-meta .supporter-phone-field, body.participants-site .modal-meta .quantity-field { grid-column: 1 / -1; } }
@media (max-width: 580px) { body.participants-site .pending-payment-banner { align-items: stretch; flex-direction: column; } body.participants-site .pending-payment-banner button { width: 100%; } }

/* Public voting page refresh. Keep admin styles above unchanged. */
body.participants-site {
  min-height: 100dvh;
  background: #fbfdfc;
  color: var(--ink);
  scroll-behavior: smooth;
}

body.participants-site .page-shell {
  max-width: 1120px;
  padding: 22px 32px calc(42px + env(safe-area-inset-bottom));
}

body.participants-site .skip-link {
  position: fixed;
  z-index: 30;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--dark-mint);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-150%);
}

body.participants-site .skip-link:focus { transform: translateY(0); }
body.participants-site .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body.participants-site [id] { scroll-margin-top: 100px; }

body.participants-site .participants-header {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
  margin: -22px -32px 15px;
  padding: 18px 32px 14px;
  border-bottom: 1px solid rgba(223, 232, 227, .9);
  background: var(--white);
}

body.participants-site .header-copy { min-width: 0; text-align: center; }
body.participants-site .event-title { overflow: hidden; font-size: clamp(25px, 4vw, 40px); line-height: 1.08; text-overflow: ellipsis; white-space: nowrap; }
body.participants-site .event-subtitle { margin-top: 4px; font-size: 14px; }
body.participants-site .header-notifications { position: relative; width: 40px; }
body.participants-site .header-notifications summary { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--dark-mint); cursor: pointer; list-style: none; }
body.participants-site .header-notifications summary::-webkit-details-marker { display: none; }
body.participants-site .header-notifications summary:focus-visible { outline: 3px solid rgba(58, 166, 127, .25); outline-offset: 2px; }
body.participants-site .header-notifications summary .lucide { width: 23px; height: 23px; }
body.participants-site .header-notification-dot { position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border: 2px solid var(--white); border-radius: 50%; background: #dc3545; }
body.participants-site .header-notification-panel { position: absolute; z-index: 30; top: 48px; right: 0; width: min(280px, calc(100vw - 32px)); padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 12px 30px rgba(30, 77, 64, .14); text-align: left; }
body.participants-site .header-notification-panel strong { display: block; color: var(--ink); font-size: 12px; }
body.participants-site .header-notification-panel p { margin: 6px 0 10px; color: var(--muted); font-size: 11px; line-height: 1.5; text-wrap: pretty; }
body.participants-site .header-notification-panel a { color: #16814d; font-size: 11px; font-weight: 700; text-decoration: none; }
body.participants-site .header-notification-panel a:hover, body.participants-site .header-notification-panel a:focus-visible { text-decoration: underline; }
body.participants-site .header-menu { position: relative; z-index: 30; width: 40px; }
body.participants-site .header-menu summary { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--dark-mint); cursor: pointer; list-style: none; }
body.participants-site .header-menu summary::-webkit-details-marker { display: none; }
body.participants-site .header-menu summary:focus-visible { outline: 3px solid rgba(58, 166, 127, .25); outline-offset: 2px; }
body.participants-site .header-menu nav { position: absolute; top: 48px; left: 0; display: grid; width: 150px; gap: 3px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 12px 30px rgba(30, 77, 64, .12); }
body.participants-site .header-menu nav a { padding: 9px 10px; border-radius: 8px; color: var(--dark-mint); font-size: 12px; font-weight: 600; text-decoration: none; }
body.participants-site .header-menu nav a:hover, body.participants-site .header-menu nav a:focus-visible { background: #eef8f3; outline: 0; }
body.participants-site .header-menu nav button { width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--dark-mint); font: 600 12px Poppins, sans-serif; text-align: left; cursor: pointer; }
body.participants-site .header-menu nav button:hover, body.participants-site .header-menu nav button:focus-visible { background: #eef8f3; outline: 0; }
body.participants-site .welcome-guide-modal { width: min(92vw, 460px); max-height: 90dvh; margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--white); color: var(--ink); box-shadow: 0 24px 70px rgba(19, 35, 31, .22); }
body.participants-site .welcome-guide-modal::backdrop { background: rgba(19, 35, 31, .52); }
body.participants-site .welcome-guide-content { max-height: 90dvh; overflow: auto; padding: 28px; }
body.participants-site .welcome-guide-step[hidden] { display: none; }
body.participants-site #welcome-choice-step { text-align: center; }
body.participants-site #welcome-participant-step > .welcome-guide-kicker,
body.participants-site #welcome-participant-step > h2,
body.participants-site #welcome-participant-step > .welcome-guide-copy { text-align: center; }
body.participants-site #welcome-participant-step > .welcome-guide-kicker { display: none; }
body.participants-site .welcome-inline-greeting { color: var(--mint-strong); font-weight: 700; }
body.participants-site .welcome-guide-kicker { margin: 0 0 9px; color: var(--mint-strong); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
body.participants-site .welcome-guide-step h2 { margin: 0; font-size: clamp(23px, 5vw, 30px); line-height: 1.15; text-wrap: balance; }
body.participants-site .welcome-guide-copy { margin: 10px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.55; text-wrap: pretty; }
body.participants-site .welcome-confirm-participant { margin: 14px 0 22px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--dark-mint); font-size: 13px; font-weight: 700; text-align: center; }
body.participants-site .welcome-confirm-photo-wrap { position: relative; width: min(100%, 150px); aspect-ratio: 3 / 4; margin: 16px auto 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #e5f8e8; }
body.participants-site .welcome-confirm-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
body.participants-site #welcome-confirm-step { text-align: center; }
body.participants-site #welcome-confirm-step > .welcome-guide-kicker { display: none; }
body.participants-site #welcome-confirm-step .welcome-guide-actions button { justify-content: center; text-align: center; }
body.participants-site .welcome-guide-actions { display: grid; gap: 10px; }
body.participants-site .welcome-guide-actions button { min-height: 48px; margin: 0; justify-content: center; text-align: center; }
body.participants-site .welcome-guide-actions button:hover { transform: none; }
body.participants-site .welcome-guide-actions .secondary-button { border: 1.5px solid #77b99b; }
body.participants-site .welcome-guide-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -8px 0 18px; padding: 8px 0; border: 0; background: transparent; color: var(--dark-mint); font: 600 12px Poppins, sans-serif; cursor: pointer; }
body.participants-site .welcome-guide-back .lucide { width: 16px; height: 16px; }
body.participants-site .welcome-guide-search { display: flex; align-items: center; gap: 9px; min-height: 48px; margin-bottom: 12px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--mint-strong); }
body.participants-site .welcome-guide-search:focus-within { outline: 3px solid rgba(58, 166, 127, .25); outline-offset: 2px; }
body.participants-site .welcome-guide-search .lucide { width: 19px; height: 19px; flex: 0 0 19px; }
body.participants-site .welcome-guide-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 13px Poppins, sans-serif; }
body.participants-site .welcome-participant-list { display: grid; gap: 7px; max-height: min(45dvh, 390px); overflow: auto; padding: 2px; }
body.participants-site .welcome-participant-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); color: var(--ink); font: 600 13px Poppins, sans-serif; text-align: left; cursor: pointer; }
body.participants-site .welcome-participant-option:hover, body.participants-site .welcome-participant-option:focus-visible { border-color: #78c79c; background: #f3fbf6; outline: 0; }
body.participants-site .welcome-participant-option small { flex: 0 0 auto; color: var(--muted); font-size: 10px; font-weight: 500; }
body.participants-site .welcome-participant-status { margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
body.participants-site:has(#welcome-guide-modal[open]) { overflow: hidden; }

body.participants-site .live-strip { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 52px; margin-bottom: 15px; padding: 8px 14px; border: 1px solid #cfe8db; border-radius: 15px; background: #f8fcfa; color: var(--ink); font-size: 12px; text-align: center; }
body.participants-site .scroll-reveal,
body.participants-site .scroll-reveal-item { visibility: hidden; opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease; will-change: opacity, transform; }
body.participants-site .scroll-reveal.is-visible,
body.participants-site .scroll-reveal-item.is-visible { visibility: visible; opacity: 1; transform: none; }
body.participants-site .scroll-reveal-no-motion { transition: none !important; }
body.participants-site .participant-card.scroll-reveal-item.is-visible:hover,
body.participants-site .leaderboard-card.scroll-reveal-item.is-visible:hover { transform: translateY(-4px); }
body.participants-site .scroll-reveal-item:nth-child(2) { transition-delay: .05s; }
body.participants-site .scroll-reveal-item:nth-child(3) { transition-delay: .1s; }
body.participants-site .scroll-reveal-item:nth-child(4) { transition-delay: .15s; }
body.participants-site .scroll-reveal-item:nth-child(5) { transition-delay: .2s; }
body.participants-site .scroll-reveal-item:nth-child(6) { transition-delay: .25s; }
body.participants-site .live-badge { color: var(--dark-mint); font-weight: 700; }
body.participants-site .live-badge { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
body.participants-site .live-dot { display: inline-block; width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #15934d; }
body.participants-site .live-badge .live-dot { animation: live-pulse 1.6s ease-in-out infinite; }
body.participants-site .event-closed-badge { color: #6a5b22; }
body.participants-site .event-closed-badge .live-dot { background: #c49a27; animation: none; }
body.participants-site .live-divider { width: 1px; height: 18px; background: var(--line); }
body.participants-site .recent-support-section { position: sticky; top: calc(15px + env(safe-area-inset-top)); z-index: 20; display: flex; align-items: center; min-height: 42px; margin: 0 20px 15px; padding: 7px 12px; overflow: hidden; border: 1px solid #cfe8db; border-radius: 13px; background: rgba(248, 252, 250, .98); box-shadow: 0 6px 16px rgba(30, 77, 64, .07); }
body.participants-site .recent-support-viewport { min-width: 0; overflow: hidden; }
body.participants-site .recent-support-track { display: flex; width: max-content; animation: recent-support-marquee 100s linear infinite; }
body.participants-site .recent-support-track.is-empty { width: 100%; animation: none; }
body.participants-site .recent-support-empty { color: var(--muted); font-size: 10px; white-space: nowrap; }
body.participants-site .recent-support-group { display: flex; align-items: center; flex: 0 0 auto; gap: 28px; padding-right: 28px; }
body.participants-site .recent-support-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; line-height: 1.3; white-space: nowrap; }
body.participants-site .recent-support-item + .recent-support-item::before { content: "✦"; margin-right: 22px; color: var(--mint-strong); }
body.participants-site .recent-support-item .lucide { width: 13px; height: 13px; flex: 0 0 13px; color: #16814d; stroke-width: 2.5; }
body.participants-site .recent-support-item time { color: var(--dark-mint); font-variant-numeric: tabular-nums; }
body.participants-site .recent-support-phone { color: var(--dark-mint); font-variant-numeric: tabular-nums; }

body.participants-site .server-status { margin: 0 0 16px; }
body.participants-site .voting-info { display: block; margin-bottom: 15px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 10px 26px rgba(30, 77, 64, .055); }
body.participants-site .voting-info-heading { align-items: center; margin-bottom: 16px; }
body.participants-site .voting-info-heading,
body.participants-site .leaderboard-section > .section-heading-row { padding-bottom: 12px; border-bottom: 1px solid #e3eee8; }
body.participants-site .voting-info h1, body.participants-site .sponsors-heading h1, body.participants-site .section-heading-row h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.08; }
body.participants-site .section-subtitle { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; text-wrap: pretty; }
body.participants-site .voting-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body.participants-site .voting-stat-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-width: 0; padding: 13px; border: 1px solid #e3eee8; border-radius: 13px; background: #fbfdfc; }
body.participants-site .voting-stat-icon { display: grid; place-items: center; width: 37px; height: 37px; grid-row: 1 / span 2; border-radius: 50%; background: #e5f8e8; color: #117c42; }
body.participants-site .voting-stat-icon .lucide { width: 21px; height: 21px; }
body.participants-site .voting-stat-card p { margin: 0; color: var(--muted); font-size: 11px; }
body.participants-site .voting-stat-card strong { min-width: 0; color: var(--ink); font: 700 clamp(16px, 2vw, 19px)/1.15 "Poppins", sans-serif; font-variant-numeric: tabular-nums; }
body.participants-site .voting-stat-card strong { white-space: nowrap; }
body.participants-site .voting-stat-card strong small { display: inline; margin: 0; color: var(--muted); font-size: 11px; font-weight: 500; white-space: nowrap; }
body.participants-site .voting-info-warning, body.participants-site .voting-info-contact { grid-column: 1 / -1; border-radius: 13px; padding: 14px 15px; }
body.participants-site .voting-info-warning { border: 1px solid #ffd5aa; background: #fffaf4 !important; color: #6d4630; }
body.participants-site .voting-info-warning { display: flex; align-items: center; gap: 10px; }
body.participants-site .warning-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: #a24e1c; }
body.participants-site .warning-icon .lucide { width: 21px; height: 21px; }
body.participants-site .warning-copy { min-width: 0; padding: 0; border-radius: 0; background: transparent; }
body.participants-site .warning-copy > strong { display: block; margin: 0; color: #a24e1c; font-size: 12px; text-transform: uppercase; }
body.participants-site .warning-copy ul { margin: 6px 0 0; padding-left: 17px; color: var(--ink); font-size: 11px; line-height: 1.5; }
body.participants-site .voting-info-warning li + li { margin-top: 3px; }
body.participants-site .voting-info-closed { display: flex; align-items: center; gap: 10px; grid-column: 1 / -1; padding: 14px 15px; border: 1px solid #cdebdc; border-radius: 13px; background: #f2fbf6; color: var(--ink); }
body.participants-site .closed-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: #dff4e7; color: #167747; }
body.participants-site .closed-icon .lucide { width: 21px; height: 21px; }
body.participants-site .voting-info-closed strong { display: block; color: var(--dark-mint); font-size: 12px; }
body.participants-site .voting-info-closed p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
body.participants-site .voting-info-contact { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #cdebdc !important; background: #f7fcf9 !important; }
body.participants-site .contact-copy { display: flex; align-items: center; gap: 10px; min-width: 0; }
body.participants-site .voting-info-grid .contact-copy, body.participants-site .voting-info-grid .contact-copy > div { padding: 0; border-radius: 0; background: transparent; }
body.participants-site .contact-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: transparent; color: #16814d; }
body.participants-site .contact-icon .lucide, body.participants-site .contact-icon svg { width: 21px; height: 21px; }
body.participants-site .contact-copy strong { display: block; color: var(--dark-mint); font-size: 12px; text-transform: uppercase; }
body.participants-site #generate-modal-qr:disabled { background: #e7f0eb; color: #527064; cursor: not-allowed; opacity: 1; transform: none; }
body.participants-site #generate-modal-qr:disabled:hover { background: #e7f0eb; transform: none; }
body.participants-site .contact-copy p { margin: 3px 0 0; color: var(--ink); font-size: 12px; }
body.participants-site .contact-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 180px; padding: 11px 15px; border-radius: 10px; background: #16814d; color: var(--white); font-size: 12px; font-weight: 700; text-decoration: none; }
body.participants-site .contact-button:hover, body.participants-site .contact-button:focus-visible { background: #106b3f; outline: 0; }

body.participants-site .sponsors-section { margin: 0 20px 15px; }
body.participants-site .sponsors-heading { align-items: flex-end; margin-bottom: 13px; }
body.participants-site .sponsors-grid { display: flex; flex-wrap: nowrap; gap: 10px; padding: 2px 2px 9px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
body.participants-site .sponsor-card { flex: 0 0 142px; min-width: 142px; min-height: 116px; gap: 8px; padding: 13px 11px 10px; border-radius: 15px; box-shadow: 0 8px 20px rgba(30, 77, 64, .06); scroll-snap-align: start; }
body.participants-site .sponsor-card img { height: 58px; }
body.participants-site .sponsor-card span { font-size: 10px; }
body.participants-site .carousel-dots { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 14px; margin-top: 7px; }
body.participants-site .carousel-dot { width: 18px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: #e2ebe6; cursor: pointer; }
body.participants-site .carousel-dot.is-active { width: 24px; background: #16814d; }
body.participants-site .carousel-dot:focus-visible { outline: 3px solid rgba(58, 166, 127, .3); outline-offset: 3px; }

body.participants-site .leaderboard-section { margin-bottom: 15px; padding: 18px; border: 1px solid #e1eee8; border-radius: 20px; background: var(--white); box-shadow: 0 10px 26px rgba(30, 77, 64, .055); }
body.participants-site .leaderboard-section > .section-heading-row { align-items: flex-end; margin-bottom: 14px; }
body.participants-site .leaderboard-note { color: var(--dark-mint); font-size: 12px; line-height: 1.45; font-weight: 700; }
body.participants-site .leaderboard-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
body.participants-site .leaderboard-card { display: flex; min-width: 0; overflow: visible; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--white); color: var(--ink); text-align: left; box-shadow: 0 10px 24px rgba(30, 77, 64, .07); cursor: pointer; }
body.participants-site .leaderboard-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(30, 77, 64, .11); }
body.participants-site .leaderboard-card:focus-visible, body.participants-site .participant-card:focus-visible { outline: 3px solid rgba(58, 166, 127, .35); outline-offset: 3px; }
body.participants-site .leaderboard-rank { z-index: 10; top: 9px; left: 9px; display: grid; place-items: center; width: 36px; height: 36px; border: 3px solid rgba(255, 255, 255, .94); border-radius: 50%; background: #16814d; color: var(--white); font: 700 15px/1 "Space Grotesk", sans-serif; font-variant-numeric: tabular-nums; box-shadow: 0 4px 10px rgba(19, 72, 52, .2), inset 0 0 0 1px rgba(255, 255, 255, .16); }
body.participants-site .leaderboard-card.rank-1 { z-index: 2; border: 2px solid #d7b45b; box-shadow: 0 14px 30px rgba(180, 137, 42, .14); }
body.participants-site .leaderboard-card.rank-1 .leaderboard-rank { top: 9px; left: 9px; width: 36px; height: 36px; border-color: rgba(255, 255, 255, .98); background: #d7b45b; font-size: 15px; box-shadow: 0 5px 12px rgba(141, 99, 18, .24), inset 0 0 0 1px rgba(255, 248, 202, .4); }
body.participants-site .leaderboard-crown { position: absolute; z-index: 11; top: -21px; left: 50%; display: none; width: 44px; height: 36px; color: #d7a82f; filter: drop-shadow(0 2px 1px rgba(141, 99, 18, .22)); transform: translateX(-50%) rotate(-4deg); }
body.participants-site .leaderboard-crown svg { display: block; width: 100%; height: 100%; }
body.participants-site .leaderboard-card.rank-1 .leaderboard-crown { display: block; }
body.participants-site .leaderboard-photo-wrap { display: block; width: 100%; flex: 0 0 auto; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 14px 14px 0 0; }
body.participants-site .leaderboard-info { display: flex; align-items: center; flex: 1; min-width: 0; flex-direction: column; padding: 10px 11px 12px; text-align: center; }
body.participants-site .leaderboard-participant-number { display: block; width: 100%; margin: 0 0 5px; color: var(--mint-strong); font-size: 8px; font-weight: 700; text-align: center; }
body.participants-site .leaderboard-name { display: block; width: 100%; min-height: 35px; color: var(--ink); font: 700 17px/1.12 "Poppins", sans-serif; text-align: center; text-wrap: pretty; }
body.participants-site .leaderboard-votes { display: flex; align-items: baseline; justify-content: center; width: 100%; gap: 5px; margin: auto 0 0; padding-top: 10px; text-align: center; white-space: nowrap; }
body.participants-site .leaderboard-votes span { font-size: 10px; }
body.participants-site .leaderboard-votes strong { font-size: 18px; font-variant-numeric: tabular-nums; }
body.participants-site .leaderboard-vote-change { width: 100%; margin-top: 5px; font-size: 10px; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
body.participants-site .leaderboard-vote-change .lucide,
body.participants-site .participant-vote-change .lucide { width: 12px; height: 12px; vertical-align: -2px; stroke-width: 2.5; }
body.participants-site .leaderboard-vote-change.is-positive { color: #16814d; }
body.participants-site .leaderboard-vote-change.is-negative { color: #d94141; }
body.participants-site .leaderboard-vote-change.is-neutral { color: var(--muted); }
body.participants-site .leaderboard-support { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 34px; margin-top: 9px; border: 1px solid #16814d; border-radius: 9px; background: #16814d; color: var(--white); font-size: 14px; font-weight: 700; line-height: 1; }
body.participants-site .leaderboard-support { width: 100%; }
body.participants-site .sponsors-grid,
body.participants-site .leaderboard-grid { scrollbar-width: none; -ms-overflow-style: none; }
body.participants-site .sponsors-grid::-webkit-scrollbar,
body.participants-site .leaderboard-grid::-webkit-scrollbar { display: none; }

body.participants-site .participants-section { margin: 0 20px 20px; }
body.participants-site .participants-heading { align-items: end; margin-bottom: 14px; }
body.participants-site .participant-count { color: var(--muted); font-size: 12px; line-height: 1.45; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.participants-site .participant-search { margin: 0 0 16px; }
body.participants-site .participant-search-field { min-height: 48px; border-color: #cfe3d9; border-radius: 13px; box-shadow: 0 4px 12px rgba(30, 77, 64, .03); }
body.participants-site .participant-search-field > .lucide { width: 22px; height: 22px; color: #278963; }
body.participants-site .participant-search-field input { font-size: 13px; }
body.participants-site .participant-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body.participants-site .participant-card { display: flex; min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--white); color: var(--ink); text-align: left; box-shadow: 0 8px 22px rgba(30, 77, 64, .06); cursor: pointer; }
body.participants-site .participant-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30, 77, 64, .1); }
body.participants-site .participant-photo-wrap { display: block; }
body.participants-site .participant-number { z-index: 10; top: 9px; left: 9px; right: auto; width: 30px; height: 30px; border-radius: 50%; background: #16814d; color: var(--white); font-size: 10px; }
body.participants-site .participant-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(44px, auto) auto auto 1fr; gap: 8px; padding: 11px 11px 12px; }
body.participants-site .participant-label { display: block; margin: 0 0 4px; color: var(--mint-strong); font-size: 8px; letter-spacing: .02em; }
body.participants-site .participant-name { display: block; color: var(--ink); font: 700 14px/1.13 "Poppins", sans-serif; text-wrap: pretty; }
body.participants-site .vote-count { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; text-align: left; }
body.participants-site .vote-count span { margin: 0; color: var(--muted); font-size: 10px; }
body.participants-site .vote-count strong { color: var(--dark-mint); font-size: 17px; font-variant-numeric: tabular-nums; }
body.participants-site .participant-vote-change { grid-column: 1 / -1; width: 100%; margin-top: -2px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; line-height: 1.2; text-align: center; white-space: nowrap; }
body.participants-site .participant-vote-change.is-positive { color: #16814d; }
body.participants-site .participant-vote-change.is-negative { color: #d94141; }
body.participants-site .participant-vote-change.is-neutral { color: var(--muted); }
body.participants-site .vote-button { display: flex; align-items: center; justify-content: center; gap: 5px; grid-column: 1 / -1; align-self: end; min-height: 34px; margin-top: 9px; padding: 0 10px; border: 1px solid #16814d; border-radius: 9px; background: #16814d; color: var(--white); font-size: 14px; font-weight: 700; line-height: 1; }
body.participants-site .vote-button .lucide, body.participants-site .leaderboard-support .lucide { display: block; width: 14px; height: 14px; flex: 0 0 14px; stroke-width: 2.5; }

body.participants-site footer { margin-top: 26px; padding-top: 18px; color: var(--muted); font-size: 10px; line-height: 1.45; }
body.participants-site .bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: none; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .98); box-shadow: 0 -8px 22px rgba(30, 77, 64, .07); }
body.participants-site .bottom-nav-link { display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 44px; flex-direction: column; border-radius: 10px; color: var(--muted); font-size: 9px; font-weight: 600; text-decoration: none; }
body.participants-site .bottom-nav-link .lucide { width: 21px; height: 21px; }
body.participants-site .bottom-nav-link.is-active, body.participants-site .bottom-nav-link:hover, body.participants-site .bottom-nav-link:focus-visible { color: #16814d; outline: 0; }

body.participants-site .voting-modal { width: min(92vw, 540px); max-height: 92dvh; border-radius: 23px; padding: 24px; }
body.participants-site .voting-modal::backdrop { background: rgba(19, 35, 31, .54); backdrop-filter: none; }
body.participants-site .modal-kicker { margin: 0 0 6px; color: var(--mint-strong); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
body.participants-site .modal-heading h2 { text-wrap: balance; }
body.participants-site .modal-participant-photo-wrap { width: min(150px, 100%); height: auto; aspect-ratio: 3 / 4; margin: 16px auto 0; overflow: hidden; border: 0; border-radius: 14px; background: #eef8f3; }
body.participants-site .modal-participant { margin-top: 12px; color: var(--ink); font-size: 17px; font-weight: 700; text-align: center; text-wrap: balance; }
body.participants-site .modal-payment-countdown { font-variant-numeric: tabular-nums; }
body.participants-site .payment-toast { z-index: 30; }
body.participants-site .maintenance-overlay { z-index: 40; }

@media (max-width: 900px) {
  body.participants-site .participant-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.participants-site .leaderboard-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body.participants-site .page-shell { padding-right: 16px; padding-left: 16px; padding-bottom: calc(106px + env(safe-area-inset-bottom)); }
  body.participants-site .participants-header { margin-right: -16px; margin-left: -16px; padding-right: 16px; padding-left: 16px; }
  body.participants-site .event-title { max-width: 240px; margin-right: auto; margin-left: auto; overflow: visible; font-size: clamp(20px, 6vw, 29px); text-wrap: balance; text-overflow: clip; white-space: normal; }
  body.participants-site .header-notifications, body.participants-site .header-notifications summary, body.participants-site .header-menu, body.participants-site .header-menu summary { width: 34px; height: 34px; }
  body.participants-site .header-notifications summary .lucide { width: 20px; height: 20px; }
  body.participants-site .header-notification-panel { top: 42px; }
  body.participants-site .live-strip { gap: 9px; font-size: 10px; }
  body.participants-site .voting-info-heading, body.participants-site .sponsors-heading, body.participants-site .leaderboard-section > .section-heading-row, body.participants-site .participants-heading { position: relative; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
  body.participants-site .voting-info-heading > div, body.participants-site .sponsors-heading > div, body.participants-site .leaderboard-section > .section-heading-row > div, body.participants-site .participants-heading > div { width: 100%; text-align: center; }
  body.participants-site .leaderboard-note, body.participants-site .participant-count { position: static; align-self: center; margin-top: 8px; }
  body.participants-site .voting-info { padding: 16px; }
  body.participants-site .leaderboard-section { padding: 16px; }
  body.participants-site .voting-info-grid { gap: 8px; }
  body.participants-site .voting-stat-card { gap: 6px; padding: 9px 7px; }
  body.participants-site .voting-stat-icon { width: 28px; height: 28px; }
  body.participants-site .voting-stat-icon .lucide { width: 16px; height: 16px; }
  body.participants-site .voting-stat-card p { font-size: 9px; }
  body.participants-site .voting-stat-card strong { font-size: 13px; white-space: nowrap; overflow-wrap: normal; }
  body.participants-site .voting-stat-card strong small { font-size: 8px; white-space: nowrap; }
  body.participants-site .voting-info-contact { align-items: stretch; flex-direction: column; }
  body.participants-site .recent-support-section { margin-right: 16px; margin-left: 16px; }
  body.participants-site .sponsors-section { margin-right: 16px; margin-left: 16px; }
  body.participants-site .participants-section { margin-right: 16px; margin-left: 16px; }
  body.participants-site .contact-button { width: 100%; }
  body.participants-site .leaderboard-grid { display: flex; align-items: stretch; gap: 10px; padding: 24px 2px 9px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  body.participants-site .leaderboard-card { flex: 0 0 214px; scroll-snap-align: start; }
  body.participants-site .leaderboard-name { font-size: 16px; }
  body.participants-site .participant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.participants-site .participant-info { grid-template-columns: 1fr; grid-template-rows: minmax(42px, auto) auto auto 1fr; padding: 10px; }
  body.participants-site .participant-name { font-size: 13px; }
  body.participants-site .vote-count { grid-column: 1; }
  body.participants-site .bottom-nav { display: grid; }
  body.participants-site .voting-modal { align-self: end; width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; padding: 22px 18px calc(20px + env(safe-area-inset-bottom)); }
}

@media (max-width: 390px) {
  body.participants-site .welcome-guide-modal { width: calc(100vw - 24px); max-height: 92dvh; border-radius: 20px; }
  body.participants-site .welcome-guide-content { max-height: 92dvh; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  body.participants-site .voting-info-grid { grid-template-columns: 1fr; }
  body.participants-site .voting-stat-card { grid-template-columns: auto minmax(0, 1fr); }
  body.participants-site .voting-stat-icon { width: 36px; height: 36px; }
  body.participants-site .voting-stat-card p { font-size: 10px; }
  body.participants-site .voting-stat-card strong { font-size: 16px; white-space: nowrap; overflow-wrap: normal; }
  body.participants-site .voting-stat-card strong small { white-space: nowrap; }
  body.participants-site .leaderboard-card { flex-basis: 202px; }
}

@media (max-width: 480px) {
  body.participants-site .voting-info-grid { grid-template-columns: 1fr; }
  body.participants-site .voting-stat-card strong { white-space: nowrap; overflow-wrap: normal; }
  body.participants-site .voting-stat-card strong small { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  body.participants-site { scroll-behavior: auto; }
  body.participants-site .scroll-reveal,
  body.participants-site .scroll-reveal-item { visibility: visible; opacity: 1; transform: none; transition: none; will-change: auto; }
  body.participants-site .participant-card, body.participants-site .leaderboard-card { transition: none; }
  body.participants-site .live-badge .live-dot, body.participants-site .payment-toast, body.participants-site .recent-support-track { animation: none; }
}

@keyframes live-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: .62; }
}
@keyframes recent-support-marquee {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
