/* Aukuro – village leaders + elections: card line, "Vyksta rinkimai" pill, gold leader seal (main page) and the /rinkimai/ page. */
.vleader .head2d, .rk-main .head2d { image-rendering: pixelated; flex: none; box-shadow: 0 0 0 2px #000; }

/* village card / village view: the leader line */
.vleader { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: -2px 0 10px; font-size: 15px; }
.vleader .vl-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.vleader .vl-txt b { color: #fff; }
.vleader .vl-txt .muted { font-size: 13px; }
.vleader.none .vl-txt > span:first-child { color: #c9cbd8; }
.vleader.big { font-size: 17px; margin: 14px 0 0; }
.vleader.big .vl-txt .muted { font-size: 14px; }
.vote-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; font: 600 13px/1.4 var(--font-head); color: #1b1300;
  background: #ffc83d; border: 2px solid #000; text-decoration: none; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); white-space: nowrap; }
.vote-pill::before { content: ""; width: 7px; height: 7px; background: #c0281e; box-shadow: 0 0 0 1px #000; animation: rk-blink 1.4s steps(2) infinite; }
a.vote-pill:hover { background: #ffe07a; }
@keyframes rk-blink { 50% { opacity: .25; } }
.vview-more { display: inline-block; margin-top: 12px; color: #ffff55; font: 600 15px var(--font-head); text-shadow: 2px 2px 0 #000; }

/* the leader seal: gold chip with a round wax-seal mark */
.leader-seal { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px 1px 2px; font: 600 13px/1.5 var(--font-head); color: #2a1a00;
  background: linear-gradient(#ffe39a, #e2a92f); border: 2px solid #000; box-shadow: inset 0 2px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(120,70,0,.45);
  white-space: nowrap; max-width: 100%; min-width: 0; text-shadow: none; }
.leader-seal .ls-t { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.leader-seal i { display: inline-grid; place-items: center; width: 17px; height: 17px; flex: none; font-style: normal; font-size: 11px; line-height: 1;
  color: #ffd76a; background: radial-gradient(circle at 35% 30%, #c4402f, #7a1610); border-radius: 50%; box-shadow: 0 0 0 1px #000; }
.chip.leader-seal { padding: 3px 9px 3px 4px; font-size: 14px; }
.pfoot .leader-seal { font-size: 12px; }

/* ------------------------------------------------------------------ /rinkimai/ */
.rk-rules ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.rk-rules li::marker { color: #ffc83d; }
.rk-rules b { color: #fff; }
.rk-village { --vc: #8a7bd8; scroll-margin-top: 70px; display: grid; grid-template-columns: 112px 1fr; gap: 24px; position: relative;
  box-shadow: inset 4px 0 0 var(--vc), inset 0 0 0 2px rgba(255,255,255,.04); }
.rk-flag { display: grid; justify-items: center; align-content: start; padding-top: 6px; min-height: 160px; }
.rk-flag .ab-canvas { filter: drop-shadow(4px 6px 4px rgba(0,0,0,.45)); position: sticky; top: 12px; }
.rk-flag .ab-img { width: 64px; height: 128px; }
.rk-body { min-width: 0; }
.rk-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 14px; }
.rk-village h2.rk-name { color: #fff; }
.rk-leader { display: flex; align-items: center; gap: 14px; padding: 12px; background: rgba(0,0,0,.28); border: 2px solid #000;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--vc) 45%, transparent); }
.rk-leader.none { box-shadow: inset 0 0 0 2px rgba(255,255,255,.06); }
.rk-ltxt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.rk-lname { font: 600 22px/1.1 var(--font-head); color: #fff; text-shadow: 2px 2px 0 var(--mc-shadow); }
.rk-election { margin-top: 16px; padding: 14px; border: 2px solid #000; background: linear-gradient(rgba(255,200,61,.08), rgba(0,0,0,.25));
  box-shadow: inset 0 0 0 2px rgba(255,200,61,.35); }
.rk-el-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.rk-countdown { margin-top: 10px; font-size: 17px; }
.rk-countdown b { font: 600 24px var(--font-head); color: #fff; text-shadow: 2px 2px 0 var(--mc-shadow); font-variant-numeric: tabular-nums; }
.rk-turnout { display: grid; gap: 4px; margin-top: 8px; max-width: 360px; }
.rk-turnout .bar, .rk-bars .bar { display: block; height: 10px; background: rgba(255,255,255,.08); border: 2px solid #000; }
.rk-turnout .bar i, .rk-bars .bar i { display: block; height: 100%; background: var(--vc); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.rk-village h3 { margin: 18px 0 10px; }
.rk-cands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.rk-cands li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; background: rgba(0,0,0,.3); border: 2px solid #000; }
.rk-cands li > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rk-cands strong { color: #fff; font: 600 17px var(--font-head); }
.rk-cands q { color: #dfe2ee; font-style: italic; overflow-wrap: anywhere; quotes: "„" "“"; }
.rk-election > p:last-child { margin: 12px 0 0; }
.rk-result p { margin: 0 0 8px; }
.rk-result b { color: #fff; }
.rk-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 520px; }
.rk-bars li { display: grid; grid-template-columns: minmax(80px, 140px) 1fr 36px; align-items: center; gap: 10px; }
.rk-bars .nm { min-width: 0; line-height: 1.2; overflow-wrap: anywhere; }
.rk-bars li.win .nm { color: #ffc83d; font-weight: 600; }
.rk-bars li.win .nm::before { content: "⚜ "; }
.rk-bars li b { text-align: right; font-variant-numeric: tabular-nums; }
.rk-tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rk-tbl table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rk-tbl th { text-align: left; font: 600 14px var(--font-head); color: var(--muted); padding: 4px 10px 6px 0; border-bottom: 2px solid rgba(255,255,255,.12); white-space: nowrap; }
.rk-tbl td { padding: 6px 10px 6px 0; border-bottom: 1px dashed rgba(255,255,255,.08); white-space: nowrap; }
.rk-tbl td.nm { display: flex; align-items: center; gap: 8px; color: #fff; }
.rk-nohist { margin: 16px 0 0; }
@media (max-width: 600px) {
  .rk-village { grid-template-columns: 1fr; gap: 10px; }
  .rk-flag { min-height: 0; }
  .rk-flag .ab-canvas { position: static; }
  .rk-head { justify-content: center; text-align: center; }
  .rk-bars li { grid-template-columns: minmax(70px, 110px) 1fr 30px; }
}
@media (prefers-reduced-motion: reduce) { .vote-pill::before { animation: none; } }
