/* Votación del mejor disfraz · Calaveritas Cup (mismo estilo que la ruleta) */
:root {
	--bg: #000;
	--panel: #0e0d10;
	--line: #2a2830;
	--cream: #f5efdf;
	--txt: #e9e4d6;
	--muted: #9a958a;
	--pink: #e5007e;
	--orange: #f7941d;
	--purple: #7b2d8e;
	--teal: #00b2bf;
	--yellow: #ffc633;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--txt); font-family: 'Barlow', Arial, sans-serif; font-size: 17px; line-height: 1.45; min-height: 100vh; overflow-x: hidden; }
button, input { font: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.picado { height: 56px; background-repeat: repeat-x; background-size: auto 100%; }
.vt-head { display: flex; align-items: center; justify-content: center; gap: clamp(.8rem, 3vw, 1.6rem); padding: 1rem 16px .2rem; text-align: center; }
.vt-logo { width: clamp(72px, 10vw, 120px); height: auto; flex: none; }
.vt-kicker { margin: 0 0 .2rem; color: var(--teal); font-weight: 600; letter-spacing: .32em; text-transform: uppercase; font-size: clamp(.75rem, 1.4vw, 1rem); }
.vt-title { margin: 0; font-family: 'Rye', Georgia, serif; font-weight: 400; color: var(--cream); font-size: clamp(1.8rem, 5vw, 3.4rem); line-height: 1.05; text-shadow: 3px 3px 0 var(--pink); text-wrap: balance; }

.vt-main { width: 100%; max-width: 1100px; margin: 0 auto; padding: .6rem 16px 3rem; }
.vt-intro { text-align: center; color: var(--cream); font-size: 1.1rem; max-width: 46ch; margin: .8rem auto 1.4rem; }
.vt-closed { font-family: 'Rye', Georgia, serif; color: var(--orange); font-size: 1.6rem; max-width: 30ch; }
.vt-alert { background: rgba(229, 0, 126, .12); border: 2px dashed var(--pink); border-radius: 12px; padding: .8rem 1rem; color: var(--cream); text-align: center; }
.vt-err { color: #ff8fb8; font-weight: 600; margin: .5rem 0; }

/* Tarjetas de participantes */
.vt-grid { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.vt-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: .8rem .7rem 1rem; text-align: center; cursor: pointer; transition: border-color .15s, transform .15s, opacity .15s; }
.vt-card input { position: absolute; opacity: 0; pointer-events: none; }
.vt-card:hover { border-color: var(--orange); }
.vt-card:focus-within { outline: 3px solid var(--teal); outline-offset: 2px; }
.vt-card:has(input:checked) { border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink), 0 10px 30px rgba(229, 0, 126, .25); }
.vt-card.off { opacity: .45; cursor: not-allowed; }
.vt-photo { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #15131a; display: block; }
.vt-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-name { font-family: 'Bungee', Impact, sans-serif; color: var(--cream); font-size: 1rem; line-height: 1.15; overflow-wrap: anywhere; }
.vt-handle { color: var(--teal); font-size: .85rem; font-weight: 600; overflow-wrap: anywhere; }
.vt-mark { position: absolute; top: .5rem; right: .5rem; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: #fff; font-weight: 700; transform: scale(0); transition: transform .15s; }
.vt-card:has(input:checked) .vt-mark { transform: scale(1); }

/* Envío */
.vt-send { max-width: 460px; margin: 1.6rem auto 0; background: var(--panel); border: 2px dashed var(--pink); border-radius: 16px; padding: 1.2rem; }
.vt-count { margin: 0 0 .8rem; font-family: 'Bungee', Impact, sans-serif; color: var(--orange); text-align: center; font-size: 1.1rem; }
.vt-count b { color: var(--cream); }
.lbl, .field label { display: block; color: var(--muted); font-size: .9rem; margin-bottom: .35rem; }
input[type=email], input[name=captcha] { width: 100%; background: #000; color: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; }
input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.field { margin-top: .9rem; }
.field .msg { color: #ff8fb8; font-weight: 600; margin-top: .3rem; font-size: .9rem; }
.cap-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.cap-row img { border-radius: 8px; background: #fff; }
.cap-new { background: transparent; color: var(--cream); border: 1px solid var(--line); border-radius: 8px; width: 2.6rem; height: 2.6rem; cursor: pointer; }
.cap-row input { flex: 1; min-width: 140px; }
.btn { appearance: none; border: 0; border-radius: 999px; background: var(--pink); color: #fff; font-family: 'Bungee', Impact, sans-serif; font-size: 1.15rem; padding: .85rem 1.2rem; cursor: pointer; width: 100%; margin-top: 1rem; }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Gracias y resultados */
.vt-thanks { max-width: 520px; margin: 1.6rem auto; text-align: center; background: var(--panel); border: 2px dashed var(--orange); border-radius: 18px; padding: 1.6rem 1.2rem; }
.vt-thanks h2 { font-family: 'Rye', Georgia, serif; font-weight: 400; color: var(--cream); font-size: 2rem; margin: .4rem 0; }
.vt-thanks ol { list-style: none; padding: 0; margin: .6rem 0; display: grid; gap: .4rem; }
.vt-thanks li { font-family: 'Bungee', Impact, sans-serif; color: var(--orange); font-size: 1.15rem; }
.vt-thanks img { margin: 0 auto; }
.vt-results { max-width: 640px; margin: 2rem auto 0; }
.vt-results h2 { font-family: 'Bungee', Impact, sans-serif; font-weight: 400; color: var(--pink); margin: 0; }
.vt-results ol { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .5rem; }
.vt-results li { position: relative; display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.vt-results li span, .vt-results li b { position: relative; z-index: 1; }
.vt-results li b { font-variant-numeric: tabular-nums; color: var(--cream); }
.vt-results li i { position: absolute; inset: 0 auto 0 0; background: rgba(247, 148, 29, .22); }
@media (prefers-reduced-motion: reduce) { .vt-card, .vt-mark { transition: none; } }
