/* Thumbnail vote -- see vote.js. Sizes on the main screen use --u (1% of
   the glass width, set by console.js) so it scales with the artwork. The
   grid stays in the top ~3/4 of the glass: Ethan's head covers the bottom
   middle in the console close-up. */

.vt {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: calc(var(--u) * 1.6);
  box-sizing: border-box;
}
.vt-head {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * 0.6);
}
.cscreen.is-main .vt-title {
  margin: 0;
  font-size: calc(var(--u) * 5);
  line-height: 1;
  white-space: nowrap;
}
.vt-sub {
  font-size: calc(var(--u) * 2.9);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.7;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.vt-msg {
  margin: auto 0;
  max-width: 80%;
  font-size: calc(var(--u) * 4.4);
  line-height: 1.15;
  text-align: center;
}
.vt-retry { align-self: center; font-size: calc(var(--u) * 4); padding: calc(var(--u) * 1.4) calc(var(--u) * 4); }

.vt-grid {
  display: grid;
  grid-template-columns: repeat(2, calc(var(--u) * 35.5));
  gap: calc(var(--u) * 1.6) calc(var(--u) * 2.2);
}
.vt-tile {
  position: relative;
  width: calc(var(--u) * 35.5);
  aspect-ratio: 16 / 9;
  padding: 0;
  border: calc(var(--u) * 0.6) solid #0c3b3f;
  border-radius: calc(var(--u) * 1.4);
  overflow: hidden;
  background: #0c3b3f;
  font: inherit; /* buttons don't inherit the lab font on their own */
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vt-tile:hover, .vt-tile:focus-visible {
  transform: scale(1.03);
  box-shadow: 0 0 0 calc(var(--u) * 0.7) #b8f28a;
  outline: none;
}
.vt-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-share {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--u) * 5);
  background: rgba(12, 59, 63, 0.82);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: calc(var(--u) * 1.4);
  color: #fff;
  font-size: calc(var(--u) * 3.4);
}
.vt-share i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(132, 255, 254, 0.45);
  transition: width 0.8s ease;
}
.vt-share b { position: relative; font-weight: inherit; }
.vt-tile.is-lead .vt-share i { background: rgba(184, 242, 138, 0.7); }
.vt-tile.is-mine { border-color: #b8f28a; }
.vt-mine {
  position: absolute;
  right: calc(var(--u) * 1);
  top: calc(var(--u) * 1);
  padding: calc(var(--u) * 0.6) calc(var(--u) * 1.6);
  border-radius: 999px;
  background: #b8f28a;
  color: #0c3b3f;
  font-size: calc(var(--u) * 2.6);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.vt-foot {
  margin: 0;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 1);
  font-size: calc(var(--u) * 3);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.75;
}
.vt-foot img { height: 1.4em; width: auto; }

/* ---- one thumbnail big, on the glass (vote.js paintBig) ----
   Back + mini strip on top, the thumbnail nearly glass-wide between two
   arrows, the vote button bottom right (the bottom middle is behind
   Ethan's head). */
.vt.is-big {
  width: calc(100% + var(--u) * 8);
  margin: calc(var(--u) * -2.5) calc(var(--u) * -4) 0;
  gap: calc(var(--u) * 1.4);
}
.vt-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--u) * 2);
  padding: 0 calc(var(--u) * 6);
  box-sizing: border-box;
}
.vt-back {
  font: inherit;
  font-size: calc(var(--u) * 3.4);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: calc(var(--u) * 1) calc(var(--u) * 2.6);
  border: 0;
  border-radius: 999px;
  background: rgba(12, 59, 63, 0.12);
  color: #0c3b3f;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
}
.vt-back:hover, .vt-back:focus-visible { background: rgba(12, 59, 63, 0.24); outline: none; }
.vt-minis { display: flex; gap: calc(var(--u) * 1.3); }
.vt-minis button {
  width: calc(var(--u) * 7);
  aspect-ratio: 16 / 9;
  padding: 0;
  border: calc(var(--u) * 0.5) solid transparent;
  border-radius: calc(var(--u) * 0.6);
  background: #0c3b3f;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
  box-sizing: content-box;
}
.vt-minis button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-minis button.is-on { border-color: #f5b72b; }
.vt-minis button:hover:not(.is-on), .vt-minis button:focus-visible { border-color: rgba(12, 59, 63, 0.5); outline: none; }
.vt-stage {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 1.8);
}
.vt-big {
  position: relative;
  flex: 0 0 calc(var(--u) * 77);
  aspect-ratio: 16 / 9;
  border: calc(var(--u) * 0.5) solid #0c3b3f;
  border-radius: calc(var(--u) * 1.4);
  overflow: hidden;
  background: #0c3b3f;
}
.vt-big.is-mine { border-color: #b8f28a; }
.vt-big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-nav {
  flex: 0 0 auto;
  width: calc(var(--u) * 4.6);
  height: calc(var(--u) * 4.6);
  border-radius: 50%;
  border: calc(var(--u) * 0.35) solid #0c3b3f;
  background: transparent;
  color: #0c3b3f;
  font: inherit;
  font-size: calc(var(--u) * 3.6);
  line-height: 1;
  padding: 0 0 calc(var(--u) * 0.4);
  cursor: pointer;
  pointer-events: auto;
}
.vt-nav:hover, .vt-nav:focus-visible { background: rgba(12, 59, 63, 0.12); outline: none; }
/* who's voting: a strip across the bottom of the picture */
.vt-whobar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 1.4);
  padding: calc(var(--u) * 1.4);
  background: rgba(12, 59, 63, 0.86);
}
.vt-ask { color: #fff; font-size: calc(var(--u) * 3); letter-spacing: 0.04em; text-transform: uppercase; margin-right: calc(var(--u) * 1); }
.vt-who {
  font: inherit;
  font-size: calc(var(--u) * 3);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: calc(var(--u) * 0.8) calc(var(--u) * 2.4);
  border-radius: 999px;
  border: calc(var(--u) * 0.4) solid #84fffe;
  background: transparent;
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
}
.vt-who.is-on { background: #84fffe; color: #0c3b3f; }
.vt-act {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: calc(var(--u) * 2);
  padding: 0 calc(var(--u) * 8.5);
  box-sizing: border-box;
}
.vt-btn {
  font: inherit;
  font-size: calc(var(--u) * 4.2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: calc(var(--u) * 1.4) calc(var(--u) * 3);
  border: 0;
  border-radius: calc(var(--u) * 1.6);
  background: #b8f28a;
  color: #0c3b3f;
  cursor: pointer;
  pointer-events: auto;
}
.vt-btn:hover:not(:disabled), .vt-btn:focus-visible { background: #fff; outline: none; }
.vt-btn:disabled { opacity: 0.45; cursor: default; }
.vt-note { font-size: calc(var(--u) * 3.6); letter-spacing: 0.04em; text-transform: uppercase; }
.vt-err { font-size: calc(var(--u) * 2.8); color: #b3261e; }
@media (prefers-reduced-motion: reduce) {
  .vt-tile, .vt-share i { transition: none; }
}

/* ---- several live polls (vote.js paintList / Next poll) ---- */
.vt { position: relative; }
.vt-corner {
  position: absolute;
  left: 0;
  top: calc(var(--u) * -0.6);
  font-size: calc(var(--u) * 2.8);
  padding: calc(var(--u) * 0.7) calc(var(--u) * 2);
}
.vt-done {
  width: calc(var(--u) * 73.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--u) * 2);
}
.vt-done .vt-foot { opacity: 0.85; }
.vt-next { font-size: calc(var(--u) * 3.2); padding: calc(var(--u) * 1) calc(var(--u) * 2.6); }
/* the list: two columns of cards, kept clear of Ethan's head below */
.vt-list {
  width: 100%;
  max-height: calc(var(--u) * 44);
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--u) * 1.8);
  align-content: start;
  pointer-events: auto;
}
.vt-card {
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: calc(var(--u) * 1.2);
  padding: calc(var(--u) * 1.2);
  border: calc(var(--u) * 0.5) solid #0c3b3f;
  border-radius: calc(var(--u) * 1.8);
  background: #fff;
  color: #0c3b3f;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vt-card:hover, .vt-card:focus-visible { transform: scale(1.02); box-shadow: 0 0 0 calc(var(--u) * 0.6) #b8f28a; outline: none; }
.vt-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--u) * 0.6);
}
.vt-card-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--u) * 0.6);
  background: #0c3b3f;
}
.vt-card-row { display: flex; align-items: center; justify-content: space-between; gap: calc(var(--u) * 1); padding: 0 calc(var(--u) * 0.6) calc(var(--u) * 0.2); }
.vt-card-t { font-size: calc(var(--u) * 3.4); line-height: 1; text-transform: uppercase; letter-spacing: 0.03em; }
.vt-card-tag {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 0.8);
  padding: calc(var(--u) * 0.7) calc(var(--u) * 1.8);
  border-radius: 999px;
  background: #b8f28a;
  font-size: calc(var(--u) * 2.8);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vt-card-tag img { height: 1.3em; width: auto; }
.vt-card.is-done { background: rgba(255, 255, 255, 0.55); }
.vt-card.is-done .vt-card-grid img { opacity: 0.6; }
.vt-card.is-done .vt-card-tag { background: transparent; box-shadow: inset 0 0 0 calc(var(--u) * 0.35) #0c3b3f; }

/* round icon buttons: back to the poll list (‹) and back to the grid (icon) */
.vt-round {
  flex: 0 0 auto;
  width: calc(var(--u) * 5.6);
  height: calc(var(--u) * 5.6);
  display: grid;
  place-items: center;
  padding: 0 0 calc(var(--u) * 0.3);
  border: calc(var(--u) * 0.4) solid #0c3b3f;
  border-radius: 50%;
  background: transparent;
  color: #0c3b3f;
  font: inherit;
  font-size: calc(var(--u) * 4.2);
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}
.vt-round:hover, .vt-round:focus-visible { background: rgba(12, 59, 63, 0.12); outline: none; }
.vt-round svg { width: 62%; height: 62%; fill: currentColor; }
.vt-round.vt-corner { position: absolute; left: 0; top: 0; padding: 0 0 calc(var(--u) * 0.3); font-size: calc(var(--u) * 4.2); }

/* the grid as a voting screen: tap to pick, View big / Select below */
.vt-grid { position: relative; }
.vt-grid .vt-whobar { border-radius: 0 0 calc(var(--u) * 1.4) calc(var(--u) * 1.4); }
.vt-tile.is-sel { border-color: #f5b72b; box-shadow: 0 0 0 calc(var(--u) * 0.6) #f5b72b; }
.vt-gridact {
  width: calc(var(--u) * 73.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--u) * 2);
}
.vt-btn.is-ghost { background: transparent; box-shadow: inset 0 0 0 calc(var(--u) * 0.45) #0c3b3f; }
.vt-btn.is-ghost:hover, .vt-btn.is-ghost:focus-visible { background: rgba(12, 59, 63, 0.12); }
.vt-gridact .vt-btn { font-size: calc(var(--u) * 3.4); padding: calc(var(--u) * 1.1) calc(var(--u) * 2.6); }

/* big view: mini strip centred over the picture, grid button stays left */
.vt-bar { position: relative; justify-content: center; }
.vt-bar > .vt-round { position: absolute; left: calc(var(--u) * 6); top: 50%; transform: translateY(-50%); }

.vt-pair { display: inline-flex; align-items: center; gap: calc(var(--u) * 1.6); }

/* big view: View small (bottom left) and the vote button (bottom right) */
.vt-act { justify-content: space-between; }
.vt-act .vt-btn { font-size: calc(var(--u) * 3.4); padding: calc(var(--u) * 1.1) calc(var(--u) * 2.6); }

/* ---- anchored controls ----
   Every vote view puts its buttons in the same spots on the glass, so they
   don't jump as the content changes: one row along the bottom (left: View
   big / View small; right: Select / Switch + Cast vote / Next poll) and the
   back arrow top left. Positioned against the main screen box itself. */
.vt, .vt.is-big { position: static; }
.vt-gridact, .vt-act, .vt-done {
  position: absolute;
  left: calc(var(--u) * 11.5);
  right: calc(var(--u) * 11.5);
  bottom: calc(var(--u) * 6);
  width: auto;
  min-height: calc(var(--u) * 6.4);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--u) * 2);
}
.vt-gridact .vt-btn, .vt-act .vt-btn, .vt-done .vt-btn {
  font-size: calc(var(--u) * 3.4);
  padding: calc(var(--u) * 1.1) calc(var(--u) * 2.6);
}
.vt-act .vt-note { margin-left: auto; }
.vt-round.vt-corner { position: absolute; left: calc(var(--u) * 5); top: calc(var(--u) * 4); }
/* View big / View small: same size, so the swap reads as one button */
.vt-gridact > .vt-btn.is-ghost, .vt-act > .vt-btn.is-ghost { min-width: calc(var(--u) * 21); }
