/* Vote: what a vote pays once, the name box, then one card per list (SPEC 8.1). Each card: a drawn tile (the list's name in Geist on a warm tint, no
   third-party logo), one Vote link (the whole card is its target), and the player's status on that list, which vote.js fills in once a name is shown.
   Two across from 641px, one on a phone. Every target is at least 44px tall. */
[hidden] { display: none !important; }
.vt-pay { max-width: var(--read); margin: 0 0 var(--sp-5); padding: var(--sp-4) var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.vt-pay .vt-once { margin: 0 0 var(--sp-2); color: var(--text-2); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.vt-pay p { margin: 0; font-size: 18px; line-height: 1.5; max-width: none; }
.vt-pay .vt-once + p + p { margin-top: 2px; color: var(--text-2); }

/* the name box */
.vt-you { max-width: var(--read); margin: 0 0 var(--sp-5); padding: var(--sp-4) var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.vt-form { margin: 0; }
.vt-label { display: block; margin: 0 0 var(--sp-2); font: 600 15px/1.3 var(--sans); color: var(--text); }
.vt-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.vt-input { flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 0 var(--sp-4); font: 400 16px/1.2 var(--sans); color: var(--text);
  background: var(--surface-2); border: 1px solid var(--control-border); border-radius: var(--radius-sm); }
.vt-input:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.vt-show { min-height: 44px; }
.vt-help { margin: var(--sp-2) 0 0; color: var(--text-2); font-size: 14px; line-height: 1.5; max-width: none; }
.vt-msg { margin: var(--sp-2) 0 0; min-height: 0; color: var(--ember-soft); font-size: 14px; line-height: 1.5; max-width: none; }
.vt-msg:empty { display: none; }
.vt-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); }
.vt-who p { margin: 0; font-size: 18px; line-height: 1.5; max-width: none; color: var(--text); }
.vt-who strong { font-weight: 600; color: var(--ember-soft); }
.vt-not { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-2); color: var(--text-2); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.vt-not:hover { color: var(--text); }
.vt-not:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: var(--radius-sm); }

.vt-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); margin: 0 0 var(--sp-4); padding: 0; list-style: none; }
.vt-card { position: relative; container-type: inline-size; display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; padding: var(--sp-5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-mid) var(--ease); }
.vt-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), var(--shadow-lift); }
.vt-card:has(.vt-go:focus-visible) { border-color: var(--ember); }
.vt-card.vt-voted { border-color: rgba(255,106,26,.45); }

/* the tile: the name set in Geist 600 on a tint of the flame, so four lists read as four things without borrowing anyone's logo */
.vt-t1 { --tint: 255, 106, 26; }
.vt-t2 { --tint: 255, 197, 61; }
.vt-t3 { --tint: 255, 61, 31; }
.vt-t4 { --tint: 255, 178, 122; }
.vt-tile { position: relative; display: flex; align-items: center; justify-content: center; min-height: 96px; margin: 0; padding: var(--sp-4) 44px;
  font: 600 min(24px, 5.6cqi)/1.25 var(--sans); letter-spacing: 0; text-align: center; color: var(--text);
  background: linear-gradient(135deg, rgba(var(--tint), .22), rgba(var(--tint), .05)), var(--surface-2);
  border: 1px solid rgba(var(--tint), .28); border-radius: var(--radius-sm); }
.vt-tname { min-width: 0; overflow-wrap: normal; word-break: normal; }   /* a domain wraps after a dot or a dash and never inside a word */
.vt-ext { position: absolute; top: var(--sp-3); right: var(--sp-3); color: var(--ember-soft); transition: transform var(--t-fast) var(--ease); }
.vt-card:hover .vt-ext { transform: translate(2px, -2px); }

/* the one link: it stretches over the whole card */
.vt-go { width: 100%; min-height: 44px; }
.vt-go::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.vt-card:hover .btn-primary { background: var(--ember-hover); box-shadow: 0 8px 24px rgba(255,106,26,.28); }
.vt-card:hover .btn-secondary { border-color: rgba(255,214,180,.3); background: var(--surface-2); }

.vt-state { margin: 0; padding-top: var(--sp-3); border-top: 1px solid var(--border); font-size: 15px; line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--ember-soft); }
.vt-voted .vt-state { color: var(--text-2); }

.vt-hourly { max-width: var(--read); margin: 0 0 var(--sp-3); color: var(--text-2); font-size: 14px; }
.vt-hourly, .vt-rule { max-width: var(--read); }
.vt-rule { margin: 0 0 var(--sp-2); color: var(--text-2); font-size: 14px; }

@media (min-width: 641px) { .vt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); } }
@media (max-width: 640px) { .vt-card { padding: var(--sp-4); } .vt-tile { padding-inline: 36px; } .vt-you { padding: var(--sp-4); } .vt-show { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .vt-card, .vt-ext { transition: none; } .vt-card:hover { transform: none; } .vt-card:hover .vt-ext { transform: none; } }

/* ---- 19 Oct redesign: the lists as compact rows on the left, Top voters on the right ---- */
.vt-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
@media (min-width: 1000px) { .vt-layout { grid-template-columns: minmax(0, 1fr) 360px; } }
.vt-pay, .vt-you, .vt-hourly, .vt-rule { max-width: none; }

/* what a vote pays: one quiet strip */
.vt-pay { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--sp-5); padding: var(--sp-3) var(--sp-5); }
.vt-pay .vt-once { margin: 0; font-size: 12px; }
.vt-pay p { font-size: 16px; }
.vt-pay .vt-once + p + p { margin-top: 0; }

/* each list: one row. Its name, its status, the Vote button on the right */
.vt-cards { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); margin-bottom: var(--sp-5); counter-reset: vt; }
.vt-card { flex-direction: row; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4); counter-increment: vt; }
.vt-card:hover { transform: none; }
.vt-card::before { content: counter(vt); flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px;
  font: 700 15px/1 var(--display); color: rgb(var(--tint)); background: rgba(var(--tint), .14); box-shadow: inset 0 0 0 1px rgba(var(--tint), .3); }
.vt-tile { flex: 1 1 auto; min-height: 0; justify-content: flex-start; padding: 0; background: none; border: 0; font: 600 17px/1.3 var(--sans); text-align: left; }
.vt-ext { position: static; margin-left: 8px; color: var(--text-3); }
.vt-state { order: 2; flex: none; margin: 0; padding: 0; border: 0; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.vt-go { order: 3; flex: none; width: auto; min-width: 112px; }
@media (max-width: 560px) {
  .vt-card { flex-wrap: wrap; }
  .vt-tile { flex-basis: calc(100% - 48px); }
  .vt-go { flex: 1 1 100%; }
  .vt-state { order: 4; }
}

/* the name box, under the lists */
.vt-you { padding: var(--sp-4); }

/* Top voters */
.vt-board { padding: var(--sp-4) var(--sp-5) var(--sp-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.vt-board h2 { margin: 0 0 var(--sp-3); font-size: 22px; }
.vt-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 0 0 var(--sp-3); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
.vt-tab { min-height: 38px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font: 600 14px/1 var(--sans); cursor: pointer; }
.vt-tab:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.vt-tab[aria-selected="true"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -3px 0 var(--ember), inset 0 0 0 1px var(--border-strong); }
.vt-tab:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.vt-list { list-style: none; margin: 0; padding: 0; }
.vt-row { display: flex; align-items: center; gap: var(--sp-3); min-height: 44px; padding: 6px 0; border-top: 1px solid var(--border); }
.vt-row:first-child { border-top: 0; }
.vt-rk { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font: 700 13px/1 var(--sans);
  color: var(--text-2); background: var(--surface-2); font-variant-numeric: tabular-nums; }
.vt-m1 .vt-rk { background: #F5B841; color: #1A120D; }
.vt-m2 .vt-rk { background: #C9CED6; color: #1A120D; }
.vt-m3 .vt-rk { background: #D08B52; color: #1A120D; }
.vt-face { flex: none; width: 28px; height: 28px; image-rendering: pixelated; border-radius: 4px; background: var(--surface-2); }
.vt-who-n { flex: 1 1 auto; min-width: 0; color: var(--text); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.vt-who-n:hover { color: var(--ember-soft); text-decoration: underline; }
.vt-ct { flex: none; color: var(--text-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.vt-board-empty { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.vt-since { margin: var(--sp-3) 0 0; color: var(--text-2); font-size: 13px; line-height: 1.4; }

/* ---- the bold pass (28 Nov 2026): the page stands on the ground. What a vote pays is a line under the lead; a list is a row between hairlines,
   its number a plain numeral; the name box and Top voters lose their panels. Before, eleven boxes stood on this page for seven links. ---- */
.vt-pay { display: block; margin: 0 0 var(--sp-5); padding: 0; background: none; border: 0; border-radius: 0; }
.vt-pay .vt-once { margin: 0 0 6px; font: 600 12px/1.4 var(--sans); letter-spacing: .1em; color: var(--text-3); }
.vt-pay p { font-size: 17px; line-height: 1.55; max-width: 62ch; }
.vt-pay .vt-once + p + p { margin-top: 2px; font-size: 15px; }
.vt-cards { gap: 0; margin-bottom: var(--sp-6); border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
.vt-card, .vt-card:hover { background: none; border: 0; border-radius: 0; box-shadow: none; }
.vt-card { min-height: 64px; padding: 10px 0; gap: var(--sp-4); }
.vt-card + .vt-card { border-top: 1px solid var(--border); }
.vt-card.vt-voted, .vt-card:has(.vt-go:focus-visible) { border-color: var(--border); }
.vt-card::before { width: 24px; height: auto; border-radius: 0; background: none; box-shadow: none; font: 800 22px/1 var(--display); color: var(--ember); justify-items: start; }
.vt-voted::before { color: var(--text-3); }
.vt-card:hover .vt-tname { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.vt-go::after { border-radius: 0; }
.vt-you { margin: 0 0 var(--sp-5); padding: 0; background: none; border: 0; border-radius: 0; }
.vt-label { font: 600 12px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.vt-help { max-width: 62ch; color: var(--text-3); font-size: 13px; }
.vt-hourly, .vt-rule { max-width: 62ch; color: var(--text-3); font-size: 13px; }
.vt-board { padding: 0; background: none; border: 0; border-radius: 0; }
.vt-board h2 { margin: 0 0 var(--sp-3); font-size: 20px; }
.vt-tabs { display: flex; gap: var(--sp-5); padding: 0; margin: 0; background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--border-strong); }
.vt-tab { min-height: 44px; padding: 0; border-radius: 0; font-size: 14px; }
.vt-tab:hover { background: none; }
.vt-tab[aria-selected="true"] { background: none; box-shadow: inset 0 -2px 0 var(--ember); }
.vt-list .vt-row { min-height: 48px; }
@media (min-width: 1000px) { .vt-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-8); } }
.vt-cards > .vt-card { width: 100%; max-width: none; margin: 0; }
.vt-form .vt-row { min-height: 0; padding: 0; border-top: 0; }
/* a phone keeps a list on one line: the number, the name, a small Vote button; what the player has there goes under the name */
@media (max-width: 560px) {
  .vt-card { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-rows: 1fr auto; align-items: center; gap: 2px 12px; min-height: 60px; padding: 8px 0; }
  .vt-tile { grid-column: 2; grid-row: 1; font-size: 15px; }
  .vt-go { grid-column: 3; grid-row: 1 / span 2; min-width: 84px; width: auto; }
  .vt-state { grid-column: 2; grid-row: 2; white-space: normal; }
  .vt-card::before { grid-row: 1 / span 2; font-size: 20px; }
  .vt-ext { display: none; }
}
