/* ===== Série G: další návrhy ===== */

/* g1 – jméno nad pruhem, procento a hlasy uvnitř pruhu */
.g1 .rows { top: 176px; gap: 14px; }
.g1 .row { height: 158px; grid-template-columns: auto 1fr; grid-template-rows: 62px 96px; grid-template-areas: "no name" "bar bar"; column-gap: 18px; }
.g1 .no { grid-area: no; font-size: 44px; font-weight: 700; color: var(--ink); } .g1 .name { grid-area: name; font-size: 56px; }
.g1 .bar { grid-area: bar; height: 96px; border-radius: 0; } .g1 .bar i { border-radius: 0; --minw: 520px; }
.g1 .pct { grid-area: bar; z-index: 2; justify-self: start; align-self: center; margin-left: 28px; font-size: 60px; color: var(--on); } .g1 .pct .i { width: auto; } .g1 .pct .s { color: var(--on); }
.g1 .votes { grid-area: bar; z-index: 2; justify-self: end; align-self: center; margin-right: 28px; font-size: 40px; color: var(--ink); } .g1 .votes b { color: var(--ink); }

/* g2 – stupně vítězů (pořadí 4 · 2 · 1 · 3 · 5) */
.g2 .rows { flex-direction: row; left: 120px; right: 120px; top: 330px; gap: 120px; justify-content: space-between; }
.g2 .row { width: 240px; display: grid; grid-template-rows: 520px auto auto; grid-template-areas: "bar" "name" "votes"; align-items: start; justify-items: center; text-align: center; }
.g2 .bar { grid-area: bar; width: 240px; height: 520px; background: transparent; border-radius: 0; border-bottom: 3px solid #B8B4B0; position: relative; overflow: visible; }
.g2 .bar i { position: absolute; left: 0; bottom: 0; width: 100%; height: calc(520px * var(--wn)); border-radius: 0; }
.g2 .pct { position: absolute; left: 0; width: 240px; justify-content: center; top: calc(520px * (1 - var(--wn)) - 76px); font-size: 60px; } .g2 .pct .i { width: auto; }
.g2 .name { grid-area: name; white-space: normal; text-align: center; font-size: 30px; width: 300px; margin-top: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.25; }
.g2 .no { display: none; } .g2 .votes { grid-area: votes; font-size: 28px; margin-top: 6px; }
.g2 .row:nth-child(4) { order: 1; } .g2 .row:nth-child(2) { order: 2; } .g2 .row:nth-child(1) { order: 3; } .g2 .row:nth-child(3) { order: 4; } .g2 .row:nth-child(5) { order: 5; }
.g2 .rows { top: 300px; }
.g2 .name { font-size: 30px; }

/* g3 – půlkruhové ukazatele */
.g3 .rows { flex-direction: row; left: 48px; right: 48px; top: 240px; gap: 30px; }
.g3 .row { width: 340px; grid-template-rows: 200px auto auto auto; grid-template-areas: "pct" "no" "name" "votes"; justify-items: center; text-align: center; align-content: start; }
.g3 .pct { grid-area: pct; position: relative; width: 340px; height: 200px; overflow: hidden; font-size: 56px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.g3 .pct::before { content: ""; position: absolute; left: 0; top: 0; width: 340px; height: 340px; border-radius: 50%; background: conic-gradient(from 270deg, var(--c) calc(var(--w) * .5), var(--track) 0 50%, transparent 0);
  -webkit-mask: radial-gradient(circle, transparent 0 62%, #000 62.5%); mask: radial-gradient(circle, transparent 0 62%, #000 62.5%); }
.g3 .pct > * { position: relative; z-index: 1; } .g3 .pct .i { width: auto; }
.g3 .no { grid-area: no; font-size: 32px; margin-top: 16px; } .g3 .name { grid-area: name; font-size: 40px; white-space: normal; overflow: visible; text-align: center; }
.g3 .votes { grid-area: votes; font-size: 34px; margin-top: 8px; } .g3 .bar { display: none; }

/* g4 – bubliny (plocha úměrná podílu) */
.g4 .rows { flex-direction: row; left: 48px; right: 48px; top: 230px; gap: 16px; align-items: flex-start; justify-content: center; }
.g4 .row { --d: calc(sqrt(var(--sh)) * 95px); width: var(--d); grid-template-rows: var(--d) auto auto auto; grid-template-areas: "pct" "no" "name" "votes"; justify-items: center; text-align: center; align-content: start; }
.g4 .pct { grid-area: pct; width: var(--d); height: var(--d); border-radius: 50%; background: var(--c); color: var(--on); display: flex; align-items: center; justify-content: center; font-size: calc(var(--d) * .2); }
.g4 .pct .i { width: auto; } .g4 .pct .s { color: inherit; }
.g4 .no { grid-area: no; font-size: 30px; margin-top: 16px; } .g4 .name { grid-area: name; font-size: 36px; white-space: normal; overflow: visible; text-align: center; }
.g4 .votes { grid-area: votes; font-size: 32px; margin-top: 6px; } .g4 .bar { display: none; }

/* g5 – plakát: obří procento a jméno */
.g5 .rows { gap: 0; top: 176px; }
.g5 .row { height: 168px; grid-template-columns: 600px 1fr auto; grid-template-rows: 1fr 1fr; grid-template-areas: "pct name votes" "pct no votes"; border-bottom: 2px solid var(--line); }
.g5 .row::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 18px; background: var(--c); }
.g5 .pct { grid-area: pct; font-size: 126px; margin-left: 56px; } .g5 .name { grid-area: name; font-size: 62px; align-self: end; }
.g5 .no { grid-area: no; font-size: 34px; align-self: start; } .g5 .votes { grid-area: votes; font-size: 44px; } .g5 .bar { display: none; }

/* g6 – skutečná osa 0–25 % */
.g6 .axis { display: block; position: absolute; left: 48px; right: 48px; top: 172px; height: 34px; font-size: 26px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.g6 .axis span { position: absolute; transform: translateX(-50%); } .g6 .axis span:nth-child(1) { left: 0; transform: none; }
.g6 .axis span:nth-child(2) { left: 20%; } .g6 .axis span:nth-child(3) { left: 40%; } .g6 .axis span:nth-child(4) { left: 60%; } .g6 .axis span:nth-child(5) { left: 80%; } .g6 .axis span:nth-child(6) { left: 100%; transform: translateX(-100%); }
.g6 .rows { top: 212px; gap: 12px; }
.g6 .row { height: 148px; grid-template-columns: auto 1fr auto; grid-template-rows: 56px 84px; grid-template-areas: "no name votes" "bar bar bar"; }
.g6 .no { grid-area: no; font-size: 36px; margin-right: 16px; } .g6 .name { grid-area: name; font-size: 46px; } .g6 .votes { grid-area: votes; font-size: 36px; }
.g6 .bar { grid-area: bar; height: 84px; border-radius: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 2px), rgba(0,0,0,.14) calc(20% - 2px) 20%), var(--track); }
.g6 .bar i { width: calc(var(--sh) / 25 * 100%); border-radius: 0; }
.g6 .pct { grid-area: bar; z-index: 2; justify-self: start; align-self: center; margin-left: calc(var(--sh) / 25 * 100% + 22px); font-size: 58px; } .g6 .pct .i { width: auto; }
.g6 .row:first-child .pct { margin-left: 0; margin-right: 24px; justify-self: end; color: var(--on); } .g6 .row:first-child .pct .s { color: var(--on); }

/* g7 – vítěz vlevo přes celou výšku, čtyři řádky vpravo */
.g7 .rows { display: grid; grid-template-columns: 660px 1fr; grid-template-rows: repeat(4, 1fr); gap: 16px 24px; top: 172px; bottom: 40px; }
.g7 .row { background: var(--card); border-radius: var(--cr); box-shadow: var(--shadow); padding: 0 34px 0 0; grid-template-columns: 340px auto 1fr auto; grid-template-rows: 1fr 1fr; grid-template-areas: "pct no name votes" "pct bar bar bar"; }
.g7 .pct { grid-area: pct; font-size: 84px; justify-self: end; margin-right: 44px; } .g7 .no { grid-area: no; font-size: 32px; margin-right: 14px; align-self: end; margin-bottom: 8px; }
.g7 .name { grid-area: name; font-size: 44px; align-self: end; } .g7 .votes { grid-area: votes; font-size: 34px; margin-left: 20px; align-self: end; margin-bottom: 10px; }
.g7 .bar { grid-area: bar; height: 32px; align-self: start; margin-top: 12px; }
.g7 .row:first-child { grid-row: 1 / 5; background: var(--c); color: var(--on); padding: 48px; align-content: start; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto auto; grid-template-areas: "no" "name" "pct" "votes" "bar"; }
.g7 .row:first-child .no, .g7 .row:first-child .votes, .g7 .row:first-child .votes b, .g7 .row:first-child .pct .s { color: var(--on); }
.g7 .row:first-child .no { font-size: 48px; margin: 0; } .g7 .row:first-child .name { font-size: 110px; align-self: start; }
.g7 .row:first-child .pct { font-size: 150px; justify-self: start; align-self: center; margin: 0; } .g7 .row:first-child .pct .i { width: auto; }
.g7 .row:first-child .votes { font-size: 54px; margin: 0 0 24px; align-self: start; }
.g7 .row:first-child .bar { height: 56px; background: rgba(0,0,0,.22); margin: 0; } .g7 .row:first-child .bar i { background: rgba(255,255,255,.92); }

/* g8 – kruhy v seznamu */
.g8 .rows { top: 172px; }
.g8 .row { height: 150px; background: var(--card); border-radius: var(--cr); box-shadow: var(--shadow); grid-template-columns: 170px 1fr auto; grid-template-areas: "pct name votes"; padding-right: 40px; }
.g8 .pct { grid-area: pct; justify-self: center; width: 128px; height: 128px; border-radius: 50%; background: conic-gradient(var(--c) var(--w), var(--track) 0); position: relative; font-size: 30px; display: inline-flex; align-items: center; justify-content: center; }
.g8 .pct::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--card); }
.g8 .pct > * { position: relative; } .g8 .pct .i { width: auto; } .g8 .pct .s { font-size: .7em; }
.g8 .no { display: none; } .g8 .name { grid-area: name; font-size: 54px; padding-right: 20px; } .g8 .votes { grid-area: votes; font-size: 42px; } .g8 .bar { display: none; }

/* g10 – elegantní minimum s tenkým pruhem */
.g10 .rows { gap: 0; top: 178px; }
.g10 .row { height: 168px; grid-template-columns: 1fr auto; grid-template-rows: 70px 44px 14px; grid-template-areas: "name pct" "votes pct" "bar bar"; row-gap: 6px; align-content: center; }
.g10 .no { display: none; } .g10 .name { grid-area: name; font-size: 60px; font-weight: 600; } .g10 .votes { grid-area: votes; font-size: 36px; }
.g10 .pct { grid-area: pct; font-size: 108px; align-self: center; } .g10 .bar { grid-area: bar; height: 14px; border-radius: 7px; } .g10 .bar i { border-radius: 7px; }
