/* Xyrena fan petitions — a fan event, not a form. Rendered inside the theme via the app proxy. */
.xy-vote { --v-coral: #fe855d; --v-teal: #1b7c8a; --v-rose: #c89c9c; --v-gold: #ffd166; --v-border: rgba(255,255,255,0.14); --v-muted: rgba(255,255,255,0.72); max-width: 76rem; margin: 0 auto; padding: 0.5rem 1rem 4rem; }
.xy-vote__loading { opacity: 0.7; }
.xy-vote h1, .xy-vote h2, .xy-vote h3 { margin: 0 0 0.5rem; line-height: 1.02; }
.xy-vote h1 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); letter-spacing: -0.01em; }
.xy-vote h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-top: 2.5rem; }
.xy-vote__kicker { font-size: 0.78em; letter-spacing: 0.22em; text-transform: uppercase; color: var(--v-coral); margin: 0 0 0.6rem; font-weight: 700; }
.xy-vote__muted { color: var(--v-muted); }
.xy-vote__lede { font-size: 1.15em; max-width: 46rem; color: var(--v-muted); }

/* Marquee hero on the leaderboard */
.xy-vote__hero-strip { position: relative; border-radius: 22px; padding: clamp(1.5rem, 4vw, 3rem); margin: 0.5rem 0 1.5rem; overflow: hidden; background: radial-gradient(120% 140% at 0% 0%, rgba(254,133,93,0.35), transparent 55%), radial-gradient(90% 120% at 100% 100%, rgba(27,124,138,0.6), transparent 60%), #0b0b0b; border: 1px solid var(--v-border); }
.xy-vote__hero-strip::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 14px); pointer-events: none; }
.xy-vote__hero-strip > * { position: relative; }
.xy-vote__hero-strip h1, .xy-vote__hero-strip .xy-vote__lede { max-width: min(46rem, 66%); }
.xy-vote__vhs { position: absolute; right: clamp(0.75rem, 4vw, 3rem); top: clamp(0.5rem, 2vw, 1.5rem); transform: rotate(-10deg); pointer-events: none; }
.xy-vote__vhs-emoji { display: block; font-size: clamp(96px, 17vw, 200px); line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; filter: drop-shadow(0 18px 24px rgba(0,0,0,0.5)); }
@media (max-width: 760px) { .xy-vote__hero-strip h1, .xy-vote__hero-strip .xy-vote__lede { max-width: none; } .xy-vote__vhs { position: static; margin: 0 0 0.5rem; transform: rotate(-6deg); } .xy-vote__vhs-emoji { font-size: 84px; } }
.xy-vote__total { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin: 1rem 0 0.2rem; }
.xy-vote__total b { font-size: clamp(2.8rem, 9vw, 6rem); line-height: 0.9; color: var(--v-coral); font-variant-numeric: tabular-nums; }
.xy-vote__total span { font-size: 1.1em; color: var(--v-muted); }
.xy-vote__how { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.8rem; margin: 1.2rem 0 0; }
.xy-vote__how div { border: 1px solid var(--v-border); border-radius: 14px; padding: 0.8rem 0.9rem; font-size: 0.9em; background: rgba(0,0,0,0.35); }
.xy-vote__how b { display: block; color: var(--v-coral); font-size: 1.4em; margin-bottom: 0.15rem; }

/* Leaderboard */
.xy-vote__tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.5rem 0 1rem; align-items: center; }
.xy-vote__tab { border-radius: 999px; border: 1.5px solid var(--v-border); background: transparent; color: inherit; padding: 0.55em 1.1em; cursor: pointer; font: inherit; font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.08em; }
.xy-vote__tab--active { background: var(--v-coral); border-color: var(--v-coral); color: #000; font-weight: 700; }
.xy-vote__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: 1.1rem; }
.xy-vote__card { position: relative; display: block; border-radius: 18px; overflow: hidden; text-decoration: none; color: #fff; background: var(--v-teal); aspect-ratio: 2 / 3; transform: translateZ(0); transition: transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.xy-vote__card:hover { transform: translateY(-6px) scale(1.015); box-shadow: 0 24px 50px rgba(0,0,0,0.5); }
.xy-vote__card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xy-vote__card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.92) 100%); }
.xy-vote__rank { position: absolute; top: 0.7rem; left: 0.7rem; width: 2.2rem; height: 2.2rem; border-radius: 999px; display: grid; place-items: center; background: rgba(0,0,0,0.6); border: 1.5px solid rgba(255,255,255,0.3); font-weight: 700; font-size: 0.95em; backdrop-filter: blur(4px); }
.xy-vote__rank--1 { background: var(--v-gold); color: #000; border-color: var(--v-gold); }
.xy-vote__rank--2 { background: #d9d9d9; color: #000; border-color: #d9d9d9; }
.xy-vote__rank--3 { background: #c98a4b; color: #000; border-color: #c98a4b; }
.xy-vote__card-badge { position: absolute; top: 0.8rem; right: 0.7rem; }
.xy-vote__card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.xy-vote__card-title { font-size: 1.15em; font-weight: 700; line-height: 1.1; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.xy-vote__count { font-size: 1.9em; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.xy-vote__count small { font-size: 0.42em; font-weight: 400; color: var(--v-muted); margin-left: 0.35em; text-transform: uppercase; letter-spacing: 0.06em; }
.xy-vote__bar { height: 0.45rem; border-radius: 999px; background: rgba(255,255,255,0.18); overflow: hidden; }
.xy-vote__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--v-coral), #ffb48f); transition: width 0.9s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 12px rgba(254,133,93,0.6); }
.xy-vote__card-sign { align-self: flex-start; background: var(--v-coral); color: #000; font-weight: 700; font-size: 0.78em; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; padding: 0.45em 1em; margin-top: 0.2rem; }
.xy-vote__card--empty { aspect-ratio: auto; background: transparent; box-shadow: none; }
.xy-vote__badge { display: inline-block; font-size: 0.7em; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.28em 0.7em; border-radius: 999px; background: rgba(0,0,0,0.6); border: 1px solid var(--v-coral); color: var(--v-coral); font-weight: 700; backdrop-filter: blur(4px); }
.xy-vote__badge--hot { border-color: var(--v-gold); color: var(--v-gold); }
.xy-vote__badge--done { border-color: #51cf66; color: #51cf66; }

/* Campaign hero */
.xy-vote__hero { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 2rem; align-items: start; margin-top: 0.5rem; }
@media (max-width: 760px) { .xy-vote__hero { grid-template-columns: minmax(0, 1fr); } .xy-vote__hero-img { max-width: 18rem; } }
.xy-vote__hero-img { width: 100%; border-radius: 18px; aspect-ratio: 2 / 3; object-fit: cover; background: var(--v-teal); box-shadow: 0 30px 60px rgba(0,0,0,0.55); }
.xy-vote__bignum { font-size: clamp(3.4rem, 9vw, 6.5rem); font-weight: 700; line-height: 0.9; color: var(--v-coral); font-variant-numeric: tabular-nums; margin: 0.8rem 0 0.2rem; }
.xy-vote__milestones { display: flex; justify-content: space-between; font-size: 0.72em; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v-muted); margin-top: 0.35rem; }
.xy-vote__milestones b { color: var(--v-coral); }
/* Social strip: votes · shares · this week, like the action bar under a post. */
.xy-vote__social { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.xy-vote__stat { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.45em 0.9em; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); font-size: 0.88em; color: var(--v-text, #fff); font-variant-numeric: tabular-nums; }
.xy-vote__stat svg { flex: none; opacity: 0.85; }
.xy-vote__stat b { font-weight: 700; }
.xy-vote__stat--share { border-color: rgba(254,133,93,0.55); background: rgba(254,133,93,0.1); color: var(--v-coral); }
.xy-vote__stat--share span { color: var(--v-text, #fff); }
.xy-vote__stat--zero { border-style: dashed; background: transparent; }
.xy-vote__stat--hot { border-color: rgba(255,214,102,0.5); color: var(--v-gold); }
.xy-vote__stat--bump { animation: xy-bump 0.5s ease-out; }
@keyframes xy-bump { 0% { transform: scale(1); } 35% { transform: scale(1.12); background: rgba(254,133,93,0.3); } 100% { transform: scale(1); } }
.xy-vote__panel { background: var(--v-teal); border: 2px solid var(--v-rose); border-radius: 18px; padding: 1.25rem; margin: 1rem 0; }
.xy-vote__panel--plain { background: rgba(255,255,255,0.03); border: 1px solid var(--v-border); }
.xy-vote__btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; border-radius: 999px; padding: 0.75em 1.5em; border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer; font: inherit; text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85em; }
.xy-vote__btn--primary { background: var(--v-coral); border-color: var(--v-coral); color: #000; font-weight: 700; box-shadow: 0 10px 30px rgba(254,133,93,0.35); }
.xy-vote__btn--big { font-size: 1.05em; padding: 1em 2.4em; }
.xy-vote__btn[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.xy-vote__row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.xy-vote__field { display: block; margin: 0.6rem 0; }
.xy-vote__field > span { display: block; font-size: 0.78em; letter-spacing: 0.06em; text-transform: uppercase; color: var(--v-muted); margin-bottom: 0.3rem; }
.xy-vote textarea, .xy-vote input[type="text"], .xy-vote input[type="tel"], .xy-vote input[type="number"], .xy-vote select { width: 100%; background: rgba(0,0,0,0.55); color: inherit; border: 1px solid var(--v-border); border-radius: 10px; padding: 0.65em 0.8em; font: inherit; }
.xy-vote__check { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0.5rem 0; font-size: 0.92em; cursor: pointer; }
.xy-vote__check input { width: auto; margin: 0.25em 0 0; flex: none; accent-color: var(--v-coral); }
.xy-vote__consent { font-size: 0.76em; color: var(--v-muted); line-height: 1.45; margin: 0.6rem 0; }
.xy-vote__error { color: #ff8a8a; margin: 0.5rem 0; }
.xy-vote__success { color: #51cf66; margin: 0.5rem 0; }
.xy-vote__share { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.6rem 0; }
.xy-vote__share .xy-vote__btn { font-size: 0.78em; padding: 0.6em 1.1em; }
.xy-vote__signers { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.6rem; }
.xy-vote__signer { border: 1px solid var(--v-border); border-radius: 12px; padding: 0.7rem 0.85rem; font-size: 0.92em; background: rgba(0,0,0,0.25); }
.xy-vote__signer strong { font-weight: 600; }
.xy-vote__signer q { display: block; margin-top: 0.3rem; color: var(--v-muted); quotes: "“" "”"; }
.xy-vote__counter { font-size: 0.8em; color: var(--v-muted); text-align: right; }
.xy-vote__disclaimer { font-size: 0.74em; color: var(--v-muted); }
.xy-vote__exists { border-left: 3px solid var(--v-coral); padding-left: 0.8rem; margin: 0.6rem 0; }
.xy-vote__pulse { animation: xy-pulse 1.8s ease-in-out infinite; }
@keyframes xy-pulse { 0%, 100% { box-shadow: 0 10px 30px rgba(254,133,93,0.35); } 50% { box-shadow: 0 10px 40px rgba(254,133,93,0.75); } }
@media (prefers-reduced-motion: reduce) { .xy-vote__pulse { animation: none; } .xy-vote__card { transition: none; } }
.xy-vote__legal { margin: 2.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--v-border); font-size: 0.72em; line-height: 1.5; color: var(--v-muted); }
.xy-vote__tagbox { margin-top: 0.9rem; padding: 0.9rem 1rem; border-radius: 12px; border: 1px dashed var(--v-coral); background: rgba(254,133,93,0.06); }
.xy-vote__tagbox strong { display: block; color: var(--v-coral); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8em; margin-bottom: 0.25rem; }
.xy-vote__tagbox p { margin: 0 0 0.5rem; font-size: 0.92em; }
.xy-vote__sharenote { margin: 0.6rem 0 0.4rem; padding: 0.75rem 0.9rem; border-radius: 10px; background: rgba(254,133,93,0.14); border: 1px solid var(--v-coral); font-size: 0.92em; line-height: 1.45; }
.xy-vote__sharenote[hidden] { display: none; }
/* Guided image-share popup */
.xy-vote__overlay { --v-coral: #fe855d; --v-teal: #1b7c8a; --v-rose: #c89c9c; --v-gold: #ffd166; --v-border: rgba(255,255,255,0.14); --v-muted: rgba(255,255,255,0.72); font-family: inherit; position: fixed; inset: 0; background: rgba(0,0,0,0.78); z-index: 9999; display: grid; place-items: center; padding: 1rem; backdrop-filter: blur(6px); }
.xy-vote__modal { position: relative; color: #fff; width: min(60rem, 100%); max-height: 92vh; overflow: auto; background: #0e0e0e; border: 1px solid var(--xy-rose, #c89c9c); border-radius: 18px; padding: 1.25rem; color: #fff; box-shadow: 0 40px 80px rgba(0,0,0,0.6); }
.xy-vote__modal-close { position: absolute; top: 0.5rem; right: 0.7rem; background: transparent; border: 0; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.xy-vote__modal-grid { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 680px) { .xy-vote__modal-grid { grid-template-columns: 1fr; } .xy-vote__modal-preview { max-width: 12rem; margin: 0 auto; } }
.xy-vote__modal-img { width: 100%; border-radius: 12px; aspect-ratio: 9 / 16; object-fit: cover; background: #1b7c8a; box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.xy-vote__modal-body h3 { margin: 0.2rem 0 0.4rem; }
.xy-vote__modal-status { min-height: 1.4em; font-size: 0.85em; color: #51cf66; margin: 0.5rem 0; }
.xy-vote__modal-steps { padding-left: 1.5rem; margin: 0.6rem 0 0.8rem; display: grid; gap: 0.7rem; list-style: decimal; color: #fff; }
.xy-vote__modal-steps li { line-height: 1.4; color: #fff; padding-left: 0.2rem; }
.xy-vote__modal-steps li::marker { color: var(--v-coral); font-weight: 700; }
.xy-vote__modal-body > .xy-vote__btn--primary { margin: 0.9rem 0 0.4rem; }
.xy-vote__modal-body > p.xy-vote__muted:first-of-type { margin: 0 0 0.6rem; }
.xy-vote__modal-steps li span { display: block; }
.xy-vote__btn--mini { font-size: 0.7em; padding: 0.35em 0.8em; margin-top: 0.3rem; }
.xy-vote__overlay .xy-vote__btn { background: transparent; color: #fff; border: 1.5px solid #fff; }
.xy-vote__overlay .xy-vote__btn--primary { background: var(--v-coral); border-color: var(--v-coral); color: #000; }
.xy-vote__overlay .xy-vote__btn--mini { font-size: 0.7em; padding: 0.35em 0.8em; margin-top: 0.3rem; }
