.vt-panel { position: relative; margin-bottom: 28px; padding: 32px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.vt-panel h2 { margin: 0; }
.vt-sub { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }

.vt-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; padding: 0 0 24px; list-style: none; border-bottom: 1px solid var(--line); counter-reset: none; }
.vt-steps li { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--muted); font: 600 14.5px/1.25 var(--sans); transition: color 200ms var(--ease-out); }
.vt-steps li + li::before { content: ""; position: absolute; top: 50%; right: calc(100% + 2px); width: 8px; height: 2px; border-radius: 2px; background: var(--line); }
.vt-step-n { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: #cfd0d4; font: 900 15px/1 var(--brand); transition: background-color 220ms var(--ease-out), border-color 220ms var(--ease-out), color 220ms var(--ease-out), transform 220ms var(--ease-out); }
.vt-steps li.is-active { color: #fff; }
.vt-steps li.is-active .vt-step-n { border-color: transparent; background: linear-gradient(135deg, #ffb733, #ffa500 45%, #ff7b00); color: #2a1500; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -3px 0 rgba(105, 26, 10, .35), 0 8px 18px -8px rgba(255, 123, 0, .7); transform: scale(1.06); }
.vt-steps li.is-done { color: #cfe9d4; }
.vt-steps li.is-done .vt-step-n { border-color: rgba(87, 192, 107, .45); background: rgba(87, 192, 107, .12); color: var(--ok); }

.vt-status:empty { display: none; }
.vt-status .alert { margin: 0 0 20px; }

.vt-card { position: relative; min-height: 120px; }
.vt-card .spinner-parent { position: absolute; inset: -12px; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border-radius: 12px; background: rgba(19, 19, 22, .88); color: #fff; font-weight: 600; font-size: 14.5px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 200ms var(--ease-out), visibility 0s linear 200ms; }
.vt-card.voting .spinner-parent { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 200ms var(--ease-out), visibility 0s; }

.vt-label { display: block; margin: 0 0 12px; text-align: center; font-weight: 600; font-size: 15px; color: #fff; }
.vt-name { max-width: 560px; margin: 0 auto; text-align: center; }
.vt-name-row { display: flex; gap: 12px; }
.vt-name-row .input-group { flex: 1; }
.vt-name-row .input-group > * { min-height: 52px; }
.vt-name .alert { text-align: left; }
.vt-hint { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 13.5px; }

.vt-who { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.vt-who img { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; }
.vt-who strong { color: #fff; }

.vt-sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.vt-site { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px 16px 16px 18px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.vt-site-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: rgba(255, 165, 0, .1); color: var(--gold); font-size: 20px; transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.vt-site-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.vt-site-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 600; font-size: 15.5px; }
.vt-site-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); }
.vt-site-ok .bi { font-size: 7px; }
.vt-site-wait { display: none; color: var(--muted); font-size: 13px; line-height: 1.45; }
.vt-site-wait .bi { margin-right: 6px; }
.vote-timer { color: var(--gold-l); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vote-timer:empty::before { content: "Vérification en cours"; color: var(--muted); font-weight: 500; }
.vt-site-wait:has(.vote-timer:empty) .vt-site-wait-lbl { display: none; }
.vt-site-cta { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 10px 14px; border-radius: 9px; background: linear-gradient(135deg, #ffb733, #ffa500 45%, #ff7b00); color: #2a1500; font: 700 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -3px 0 rgba(105, 26, 10, .35); transition: filter 200ms var(--ease-out), opacity 200ms var(--ease-out); }
.vt-site.disabled { cursor: not-allowed; }
.vt-site.disabled .vt-site-ok { display: none; }
.vt-site.disabled .vt-site-wait { display: block; }
.vt-site.disabled .vt-site-ic { background: rgba(255, 255, 255, .05); color: var(--muted); }
.vt-site.disabled .vt-site-cta { filter: grayscale(1); opacity: .45; box-shadow: none; }
.vt-servers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.vt-goal { display: grid; gap: 14px; }
.vt-goal .progress { --bs-progress-height: 14px; }
.vt-goal-text { margin: 0; text-align: center; color: var(--gold-l); font-weight: 600; font-variant-numeric: tabular-nums; }

.vt-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: start; }
.vt-grid.single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.vt-grid .vt-panel { margin-bottom: 0; }

.vt-table { margin: 28px 0 0; }
.vt-table th[scope="row"] { width: 52px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vt-table td:last-child { font-weight: 700; color: var(--gold-l); font-variant-numeric: tabular-nums; }
.vt-table tr.is-me > * { --bs-table-bg-state: rgba(255, 165, 0, .08); }
.vt-table tr.is-me td:first-of-type { color: #fff; font-weight: 600; }
.vt-player { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.vt-player img { flex: none; width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; }
.vt-me { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: var(--muted); font-size: 14.5px; }
.vt-me .bi { color: var(--gold); }

.vt-rewards { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.vt-reward { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.vt-reward-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: rgba(26, 210, 206, .08); color: var(--cyan); font-size: 20px; overflow: hidden; }
.vt-reward-ic img { width: 100%; height: 100%; object-fit: contain; }
.vt-reward-body { display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 0; }
.vt-reward-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vt-reward-name { min-width: 0; color: #fff; font-weight: 600; font-size: 15px; line-height: 1.3; }
.vt-reward-pct { flex: none; color: var(--gold); font: 900 13px/1 var(--brand); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.vt-chance { display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.vt-chance span { display: block; height: 100%; border-radius: inherit; }

@media (hover: hover) and (pointer: fine) {
    .vt-site:not(.disabled):hover { background: #1b1d20; }
    .vt-site:not(.disabled):hover .vt-site-ic { background: rgba(255, 165, 0, .16); color: var(--gold-l); }
    .vt-site:not(.disabled):hover .vt-site-cta { filter: brightness(1.08); }
}

@media (max-width: 991.98px) {
    .vt-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 575.98px) {
    .vt-panel { padding: 24px 18px; }
    .vt-steps { gap: 8px; margin-bottom: 22px; padding-bottom: 20px; }
    .vt-steps li { flex-direction: column; gap: 8px; text-align: center; font-size: 12.5px; }
    .vt-steps li + li::before { top: 17px; right: calc(50% + 26px); width: calc(100% - 44px); }
    .vt-name-row { flex-direction: column; }
    .vt-sites { grid-template-columns: minmax(0, 1fr); }
    .vt-site { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; }
    .vt-site-ic { width: 40px; height: 40px; font-size: 18px; }
    .vt-site-cta { grid-column: 1 / -1; justify-content: center; padding: 12px; font-size: 12px; }
    .vt-table > :not(caption) > * > * { padding: .7rem .5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .vt-steps li.is-active .vt-step-n { transform: none; }
}
