/* Vote For Us: right-edge slider */
.vote-dock {
  position: fixed;
  right: 0;
  left: auto;
  top: 50%;
  z-index: 80;
  display: flex;
  align-items: stretch;
  transform: translateY(-50%) translateX(calc(100% - 28px));
  transition: transform .28s ease;
}
.vote-dock:hover,
.vote-dock:focus-within,
.vote-dock.is-open {
  transform: translateY(-50%) translateX(0);
}

.vote-dock-tab {
  writing-mode: vertical-rl;
  padding: 16px 7px 14px;
  border: 0;
  border-radius: 10px 0 0 10px;
  background: linear-gradient(180deg, #f0d070, #c9a84c 52%, #9f6b12);
  color: #1a1108;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.vote-dock-pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #1a1108;
  color: #f0d070;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  writing-mode: horizontal-tb;
  animation: votePulse 2.2s ease-in-out infinite;
}
.vote-dock.is-seen .vote-dock-pulse { animation: none; }
.vote-dock-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .45s ease, transform .45s ease;
}
.vote-dock-mark--bang { opacity: 1; transform: scale(1); }
.vote-dock-mark--tick { opacity: 0; transform: scale(.4); }
.vote-dock.is-seen .vote-dock-mark--bang { opacity: 0; transform: scale(.4); }
.vote-dock.is-seen .vote-dock-mark--tick { opacity: 1; transform: scale(1); }
@keyframes votePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(26,17,8,.45); }
  50% { opacity: .35; box-shadow: 0 0 0 6px rgba(26,17,8,0); }
}

.vote-dock-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 8px;
  width: 268px;
  max-height: 72vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(201,168,76,.35);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: #0a0d11;
  box-shadow: -8px 0 28px rgba(0,0,0,.45);
}

.vote-mini {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 10px 8px 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: #14181d;
  color: #f2f4f7;
  text-decoration: none;
}
.vote-mini:hover {
  border-color: rgba(240,208,112,.45);
  background: #1b2026;
  color: #fff;
  text-decoration: none;
}

.vote-mini-slot {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #0a0d11;
  border: 1px solid rgba(255,255,255,.08);
}
.vote-mini-slot img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center;
}
.vote-mini-fallback {
  font-size: 16px;
  font-weight: 800;
  color: #f0d070;
}
.vote-mini-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: center;
}
.vote-mini-done {
  position: absolute;
  top: 6px;
  right: 6px;
  display: none;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0d070;
  color: #1a1108;
  font-size: 10px;
  font-weight: 800;
}
.vote-mini.is-voted .vote-mini-done { display: inline-flex; }

@media (max-width: 700px) {
  .vote-dock-panel { width: 220px; }
}
