/* Votes en direct — PWA (MVP 2026-06-13). Thème sombre premium, cohérent natif. */
:root {
  --v-orange: #6750A4;
  --v-purple: #7C3AED;
  --v-gold: #FFD23F;
  --v-bg: #0F0F17;
  --v-card: #1A1A26;
  --v-border: #2A2A3A;
  --v-muted: #9A9AB0;
  --v-green: #22C55E;
  --v-red: #EF4444;
}
.vote-body { background: var(--v-bg); color: #fff; min-height: 100vh; }
.vote-header { background: linear-gradient(135deg, #1B1430, #0B0B12); }
.vote-header .app-header-name { color: #fff; }
.vote-header .app-header-sub { color: var(--v-muted); display: flex; align-items: center; gap: 6px; }
.vote-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--v-red); animation: vLivePulse 1s ease-in-out infinite; }
@keyframes vLivePulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

.vote-root { max-width: 640px; margin: 0 auto; padding: 18px 16px 60px; }
.vote-loading { color: var(--v-muted); text-align: center; padding: 60px 0; }

/* Hero hub */
.v-hero { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.v-hero-ic { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; background: linear-gradient(135deg, var(--v-orange), var(--v-purple)); }
.v-hero h1 { font-size: 22px; font-weight: 900; margin: 0; }
.v-hero .v-livebadge { color: var(--v-red); font-weight: 900; font-size: 11px; display: flex; align-items: center; gap: 5px; margin-top: 2px; }

.v-sub { color: var(--v-muted); font-size: 13px; margin: 4px 0 14px; }
.v-h2 { font-weight: 800; font-size: 16px; margin: 0 0 4px; }

/* Code input */
.v-code-row { display: flex; gap: 8px; }
.v-code-input { flex: 1; background: #F6F6FA; color: #14142B; border: 2px solid #B9B9C6; border-radius: 12px; height: 58px; text-align: center; font-size: 26px; font-weight: 900; letter-spacing: 8px; text-transform: uppercase; }
.v-code-input:focus { outline: none; border-color: var(--v-orange); }

.v-btn { border: none; border-radius: 16px; height: 54px; font-weight: 900; font-size: 15px; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; background: linear-gradient(135deg, var(--v-orange), #7F67BE); width: 100%; }
.v-btn[disabled] { background: var(--v-border); color: var(--v-muted); cursor: not-allowed; }
.v-btn-ghost { background: var(--v-card); border: 1px solid var(--v-border); color: #fff; }
.v-btn-danger { background: rgba(239,68,68,.18); border: 1px solid rgba(239,68,68,.5); color: var(--v-red); height: auto; padding: 8px 14px; width: auto; border-radius: 12px; }
.v-btn-sm { height: 44px; font-size: 13px; padding: 0 16px; width: auto; }

.v-create-card { margin-top: 22px; border-radius: 16px; padding: 16px; cursor: pointer; background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(103, 80, 164,.16)); border: 1px solid rgba(124,58,237,.4); display: flex; align-items: center; gap: 12px; }
.v-create-card .ic { color: var(--v-gold); font-size: 18px; }
.v-create-card .t { font-weight: 800; font-size: 15px; }
.v-create-card .s { color: var(--v-muted); font-size: 12px; }

.v-section-label { color: var(--v-muted); font-weight: 900; font-size: 11px; letter-spacing: .5px; margin: 26px 0 10px; }
.v-list-card { background: var(--v-card); border-radius: 14px; padding: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.v-list-card .grow { flex: 1; min-width: 0; }
.v-list-card .ttl { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-list-card .meta { color: var(--v-muted); font-size: 12px; margin-top: 3px; }
.v-pill { border-radius: 8px; padding: 5px 9px; font-size: 10px; font-weight: 900; }

/* Booth */
.v-booth-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.v-iconbtn { width: 38px; height: 38px; border-radius: 50%; background: var(--v-card); border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.v-booth-title { flex: 1; min-width: 0; }
.v-booth-title h2 { font-size: 17px; font-weight: 900; margin: 0; }
.v-booth-title .meta { color: var(--v-muted); font-size: 12px; margin-top: 2px; }

.v-ring { width: 46px; height: 46px; position: relative; flex: none; }
.v-ring svg { transform: rotate(-90deg); }
.v-ring .lbl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; }

.v-anon { display: flex; align-items: center; gap: 8px; background: rgba(124,58,237,.16); border: 1px solid rgba(124,58,237,.4); border-radius: 12px; padding: 9px 12px; margin-bottom: 10px; font-size: 12px; color: #fff; }
.v-anon .ic { color: var(--v-purple); }

.v-banner { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 9px 12px; margin-bottom: 12px; font-size: 13px; }

.v-opt { position: relative; border-radius: 16px; background: var(--v-card); border: 1px solid var(--v-border); margin-bottom: 10px; overflow: hidden; cursor: pointer; }
.v-opt.sel, .v-opt.mine { border-width: 2px; }
.v-opt.leader { border-width: 2px; box-shadow: 0 0 0 1.5px var(--v-gold), 0 4px 16px rgba(255,210,63,.18); animation: vLeaderPulse 1.1s ease-in-out infinite; }
@keyframes vLeaderPulse { 0%,100% { box-shadow: 0 0 0 1.5px rgba(255,210,63,.55), 0 4px 16px rgba(255,210,63,.12); } 50% { box-shadow: 0 0 0 2px rgba(255,210,63,1), 0 4px 20px rgba(255,210,63,.25); } }
.v-opt-bar { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 16px; transition: width .7s cubic-bezier(.2,.8,.2,1); }
.v-opt-inner { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; }
.v-opt-photo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--v-border); flex: none; }
.v-opt.parts .v-opt-photo { width: 64px; height: 64px; }
.v-opt-label { font-weight: 700; font-size: 15px; flex: 1; }
.v-opt-count { font-size: 12px; font-weight: 800; margin-top: 3px; }
.v-opt-check { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; flex: none; }

.v-receipt { display: flex; align-items: center; gap: 10px; background: rgba(34,197,94,.16); border: 1px solid rgba(34,197,94,.5); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.v-receipt .ic { width: 26px; height: 26px; border-radius: 50%; background: var(--v-green); display: flex; align-items: center; justify-content: center; color: #fff; }

.v-toggle { display: flex; align-items: center; gap: 10px; background: var(--v-card); border-radius: 12px; padding: 10px 12px; margin: 8px 0; cursor: pointer; }
.v-switch { width: 44px; height: 26px; border-radius: 13px; background: var(--v-border); position: relative; transition: background .2s; flex: none; margin-left: auto; }
.v-switch.on { background: var(--v-orange); }
.v-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; }
.v-switch.on::after { left: 21px; }

/* Reveal */
.v-reveal { text-align: center; }
.v-reveal .trophy { font-size: 40px; color: var(--v-gold); }
.v-reveal .rlbl { color: var(--v-muted); font-weight: 900; font-size: 13px; margin: 8px 0 16px; }
.v-winner { border-radius: 22px; padding: 22px; background: linear-gradient(135deg, rgba(255,210,63,.30), rgba(103, 80, 164,.18)); border: 2px solid var(--v-gold); margin-bottom: 16px; }
.v-winner img { width: 120px; height: 120px; border-radius: 18px; object-fit: cover; margin-bottom: 12px; }
.v-winner .wlabel { font-size: 22px; font-weight: 900; }
.v-winner .wstat { color: var(--v-gold); font-weight: 800; font-size: 16px; margin-top: 6px; }

#v-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

/* Creator form */
.v-field { width: 100%; background: #12121C; border: 1px solid var(--v-border); border-radius: 12px; color: #fff; padding: 13px 14px; font-size: 14px; margin-bottom: 8px; }
.v-field::placeholder { color: var(--v-muted); }
.v-opt-edit { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.v-opt-edit .v-field { margin-bottom: 0; }
.v-rm { width: 40px; height: 46px; border-radius: 10px; background: var(--v-card); border: none; color: var(--v-muted); cursor: pointer; flex: none; }
.v-seg { display: flex; gap: 8px; margin-bottom: 14px; }
.v-seg button { flex: 1; border-radius: 10px; background: var(--v-card); border: 1px solid var(--v-border); color: var(--v-muted); padding: 10px 6px; font-size: 12px; font-weight: 800; cursor: pointer; }
.v-seg button.on { background: var(--v-orange); border-color: var(--v-orange); color: #fff; }
.v-clabel { font-weight: 800; font-size: 14px; margin: 16px 0 8px; }
.v-add { background: var(--v-card); border: none; color: #fff; border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 800; cursor: pointer; }
.v-add i { color: var(--v-orange); margin-right: 6px; }

.v-codebox { border-radius: 20px; padding: 20px; text-align: center; background: linear-gradient(135deg, rgba(124,58,237,.25), rgba(103, 80, 164,.18)); border: 1px solid rgba(124,58,237,.4); margin-bottom: 22px; }
.v-codebox .cl { color: var(--v-muted); font-weight: 900; font-size: 11px; }
.v-codebox .code { font-size: 34px; font-weight: 900; margin: 8px 0 14px; }
.v-codebox canvas, .v-codebox img { width: 180px; height: 180px; border-radius: 12px; background: #fff; padding: 10px; }
