/* The vote card (js/vote-card.js, Gage 10-29): a full-screen decision over the Campaign / War Room with a 10 second ring.
   Warm gunmetal, gold stamps and hard-offset shadows like the Council (css/kit.css .cl-*). No emoji: SVG art only. */
.vc { --vc-hue: #4f86de; position: fixed; inset: 0; z-index: 9000; display: flex; justify-content: center; color: var(--fg); background: radial-gradient(120% 70% at 50% 0%, #1d1713 0%, #0a0807 70%), #0a0807; animation: vc-in .18s ease-out both; }
.vc.ca { --vc-hue: #d8423a; }
.vc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--vc-hue); box-shadow: 0 2px 0 #0d0b09; }
.vc-card { position: relative; width: 100%; max-width: 480px; height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: calc(var(--safe-t) + 16px) 14px calc(var(--safe-b) + 10px); outline: none; }
.vc-top { display: flex; align-items: center; gap: 8px; min-height: 52px; }
.vc-kind { flex: 1; min-width: 0; font: 400 15px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.vc-count { padding: 3px 7px 2px; font: 400 13px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: #e6dccb; background: #0f0c0a; border: 1px solid #3b2c1c; }
/* the countdown: a ring that empties over the 10 seconds, with the number inside (calm: just the number) */
.vc-timer { position: relative; flex: none; width: 52px; height: 52px; display: grid; place-items: center; }
.vc-timer b { position: relative; font: 400 24px/1 var(--display); color: #fff; text-shadow: 2px 2px 0 #0d0b09; font-variant-numeric: tabular-nums; }
.vc-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.vc-ring circle { fill: none; stroke-width: 5; }
.vc-ring .bg { stroke: #2c2219; }
.vc-ring .fg { stroke: var(--gold); stroke-linecap: butt; stroke-dasharray: 100; stroke-dashoffset: 0; animation: vc-ring var(--vc-secs, 10s) linear forwards; }
.vc.ca .vc-ring .fg { stroke: #ff8a7a; }
.vc.calm .vc-timer { border: 2px solid #3b2c1c; background: #0f0c0a; box-shadow: 2px 2px 0 #0d0b09; }
.vc-head { display: flex; align-items: center; gap: 10px; }
.vc-ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; }
.vc-ic > svg, .vc-ic > .arm, .vc-ic > .ins { width: 44px; height: 44px; }
.vc-ic .arm svg, .vc-ic > svg { width: 100%; height: 100%; }
.vc-head h2 { flex: 1; min-width: 0; margin: 0; font: 400 27px/1.04 var(--display); letter-spacing: .03em; text-transform: uppercase; color: #fff; text-shadow: 2px 2px 0 #0d0b09; overflow-wrap: anywhere; }
.vc-sub { margin: 0; font-size: 13px; line-height: 1.35; color: #d9cdb8; }
/* the choices: big buttons, one line of consequence each; a long list (candidates) scrolls inside the card */
.vc-choices { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; margin-top: 2px; padding: 2px 3px 6px 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.vc-b { flex: none; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 9px 12px 8px; text-align: left; color: #fff; cursor: pointer;
  background: linear-gradient(#2c4f8f, #1d3d73); border: 2px solid #0d0b09; box-shadow: inset 0 0 0 1px #9fc4ff80, 3px 3px 0 #0d0b09; }
.vc.ca .vc-b { background: linear-gradient(#8f2c2c, #6a1c1c); box-shadow: inset 0 0 0 1px #ffb0a080, 3px 3px 0 #0d0b09; }
.vc-b.y { background: linear-gradient(#5aa04a, #3a7a2e); box-shadow: inset 0 0 0 1px #c4f0b0a0, 3px 3px 0 #0d0b09; }
.vc-b.n { background: linear-gradient(#5a2a26, #3a1714); box-shadow: inset 0 0 0 1px #ff8a7a70, 3px 3px 0 #0d0b09; }
.vc-b:active { transform: translate(2px, 2px); box-shadow: inset 0 0 0 1px #ffffff40, 1px 1px 0 #0d0b09; }
.vc-b span { flex: 1; min-width: 0; display: grid; gap: 3px; }
.vc-b b { font: 400 23px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; overflow-wrap: anywhere; }
.vc-b small { font-size: 13px; line-height: 1.25; color: #f0e6d2; }
.vc-bi { flex: none; width: 30px; height: 30px; }
.vc-bi .arm, .vc-bi .arm svg { width: 100%; height: 100%; }
.vc.many .vc-b { min-height: 54px; padding: 7px 12px 6px; }
.vc.many .vc-b b { font-size: 19px; }
.vc.many .vc-b small { font-size: 12px; }
.vc-foot { flex: none; display: flex; gap: 8px; padding-top: 2px; }
.vc-later { flex: 1; min-height: 46px; padding: 0 10px; font: 400 16px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #bfb5a2; background: transparent; border: 1px solid #3b2c1c; }
.vc-later:active { background: #1c1612; }
.vc.info .vc-b { background: linear-gradient(#2b2724, #0d0b09); box-shadow: inset 0 0 0 1px var(--gold), 3px 3px 0 #0d0b09; }
.vc.info .vc-b b { color: var(--gold); }
body.vote-card-on #toasts { z-index: 9100; }
/* short phones (320 x 568): tighter, so two big buttons and Later always fit */
@media (max-height: 600px) {
  .vc-card { gap: 6px; padding-top: calc(var(--safe-t) + 12px); }
  .vc-top { min-height: 46px; }
  .vc-timer { width: 46px; height: 46px; }
  .vc-timer b { font-size: 21px; }
  .vc-head h2 { font-size: 23px; }
  .vc-ic, .vc-ic > svg, .vc-ic > .arm, .vc-ic > .ins { width: 38px; height: 38px; }
  .vc-sub { font-size: 12px; line-height: 1.3; }
  .vc-b { min-height: 58px; }
  .vc-b b { font-size: 21px; }
  .vc-later { min-height: 42px; }
}
@media (max-width: 340px) { .vc-card { padding-left: 11px; padding-right: 11px; } }
@keyframes vc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes vc-ring { to { stroke-dashoffset: 100; } }
.vc.calm, .vc.calm * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .vc, .vc * { animation: none !important; } .vc-b:active { transform: none; } }

