/* 作品投票：入口、Category（一覧／1点ずつ／評価済み）、作品詳細 */
a.button {
  display: inline-block;
  border: 1px solid var(--line);
  background: white;
  color: #202437;
  border-radius: 12px;
  padding: 12px 19px;
  font-weight: 600;
  text-decoration: none;
}
a.button:hover {
  border-color: #bac1ed;
  background: #f5f6ff;
}
.vote-back {
  display: inline-block;
  margin-bottom: 14px;
  color: #4758d9;
  font-size: 14px;
  font-weight: 600;
}
.vote-contest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  margin-bottom: 24px;
}
.vote-contest > img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 320px;
  object-fit: cover;
  background: #202944;
}
.vote-contest-body {
  padding: 32px;
}
.vote-contest-body h2 {
  margin: 14px 0 8px;
  font-size: 24px;
  overflow-wrap: anywhere;
}
.vote-contest-body p {
  margin: 0;
  color: #646e85;
  font-size: 14px;
}
.vote-contest-body h3 {
  margin: 26px 0 12px;
  font-size: 15px;
}
.vote-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.vote-category {
  padding: 12px 22px;
  border-radius: 12px;
  background: #e8ebfc;
  color: #3846b8;
  font-weight: 700;
  text-decoration: none;
}
.vote-category:hover {
  background: #dce1fb;
}
.vote-tabs a {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 17px;
  border-radius: 12px;
  color: #202437;
  text-decoration: none;
}
.vote-tabs a.active {
  background: #e8ebfc;
  color: #4758d9;
}
.vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.vote-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.vote-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vote-thumb:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.vote-mark {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #202437cc;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.vote-rated-item {
  display: grid;
  gap: 8px;
}
.vote-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.vote-switch button {
  padding: 8px 6px;
  font-size: 13px;
}
.vote-switch .chosen,
.vote-info .chosen {
  background: #e8ebfc;
  border-color: #8f9cf0;
  color: #3846b8;
}
.vote-undo {
  margin-bottom: 14px;
  font-size: 14px;
}
.vote-pick .vote-image img {
  height: clamp(260px, calc(100dvh - 500px), 520px);
}
.vote-info > a {
  color: #4758d9;
  font-weight: 600;
  font-size: 14px;
}
.vote-description {
  white-space: pre-wrap;
  margin-top: 20px;
  overflow-wrap: anywhere;
}
.vote-info h2 {
  overflow-wrap: anywhere;
}
.vote-info .badge + h2,
.vote-info .eyebrow + .badge {
  margin-top: 12px;
}
@media (max-width: 720px) {
  .vote-contest {
    grid-template-columns: minmax(0, 1fr);
  }
  .vote-contest > img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .vote-contest-body {
    padding: 22px;
  }
  .vote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .vote-tabs {
    overflow-x: auto;
  }
  .vote-tabs a {
    white-space: nowrap;
    padding: 9px 13px;
  }
  .vote-pick .vote-image img {
    height: min(36dvh, 280px);
  }
}
.save-actions a.button {
  font-size: 13px;
  padding: 8px 12px;
}
.vote-contest-body p a {
  color: #4758d9;
  font-weight: 600;
}
