@charset "UTF-8";

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vote-main {
  min-height: calc(100vh - 120px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  min-height: calc(100dvh - 120px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 18px 16px 28px;
}

.vote-panel {
  overflow: hidden;
  padding: 20px 14px 18px;
  border: 1px solid var(--sl-line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--sl-surface) 0%, #fffafa 100%);
  box-shadow: 0 10px 28px rgba(150, 15, 15, 0.09);
}

.vote-panel-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 2px 18px;
}

.vote-group-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid #f8d7d1;
  border-radius: 13px;
  color: var(--sl-brand-deep);
  background: linear-gradient(145deg, #fff3f0, #ffe6e1);
}

.vote-group-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.vote-group-copy {
  min-width: 0;
}

.vote-group-copy h2 {
  margin: 0;
  color: var(--sl-ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.vote-group-copy p {
  margin: 3px 0 0;
  color: var(--sl-muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.vote-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vote-option {
  display: block;
  min-width: 0;
  padding: 3px 1px 2px;
  border-radius: 14px;
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.vote-option:focus-visible {
  outline: 2px solid var(--sl-brand-deep);
  outline-offset: 2px;
}

.vote-option-media {
  position: relative;
  display: block;
}

.vote-option-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--sl-brand-soft);
  box-shadow: 0 5px 13px rgba(150, 15, 15, 0.14);
}

.vote-option-photo img {
  display: block;
  width: 108%;
  max-width: none;
  height: auto;
  margin: -4%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vote-option-badge {
  position: absolute;
  right: -1px;
  bottom: -1px;
  display: grid;
  place-items: center;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid #fff;
  color: #fff;
  background: linear-gradient(135deg, #ff7a7a, var(--sl-brand-deep));
  box-shadow: 0 3px 7px rgba(150, 15, 15, 0.24);
}

.vote-option-badge svg {
  width: 55%;
  height: 55%;
}

.vote-option-name {
  display: block;
  min-height: 32px;
  margin-top: 9px;
  color: var(--sl-ink);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.vote-option:active {
  background: var(--sl-brand-soft);
  transform: translateY(1px);
}

.vote-option:active .vote-option-photo img {
  transform: scale(1.05);
}

.vote-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  margin-top: 16px;
  padding: 10px 16px;
  border: 1px solid #ff9d3d;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff9414 0%, #f87500 100%);
  box-shadow: 0 8px 18px rgba(238, 108, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.33);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.vote-cta > svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.vote-cta > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.vote-cta-arrow {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.vote-cta:active {
  transform: translateY(1px) scale(0.99);
  filter: brightness(0.97);
  box-shadow: 0 5px 12px rgba(238, 108, 0, 0.2);
}

.vote-cta:focus-visible {
  outline: 2px solid var(--sl-brand-deep);
  outline-offset: 3px;
}

@media (hover: hover) {
  .vote-option:hover {
    background: var(--sl-brand-soft);
  }

  .vote-option:hover .vote-option-photo img {
    transform: scale(1.05);
  }

  .vote-cta:hover {
    filter: brightness(1.04);
    box-shadow: 0 10px 22px rgba(238, 108, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.33);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vote-option,
  .vote-option-photo img,
  .vote-cta {
    transition: none;
  }
}

@media (max-width: 359px) {
  .vote-main {
    padding-inline: 12px;
  }

  .vote-panel {
    padding-inline: 11px;
  }

  .vote-grid {
    gap: 7px;
  }

  .vote-option-name {
    font-size: 11px;
  }
}
