.toast-vote-root {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  max-width: 340px;
  width: calc(100vw - 40px);
  pointer-events: none;
}

.toast-vote-root .toast-vote {
  pointer-events: auto;
}

.toast-vote {
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.98), rgba(8, 12, 22, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(56, 189, 248, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: toast-vote-enter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
}

.toast-vote.is-exiting {
  animation: toast-vote-exit 0.3s ease-in forwards;
}

@keyframes toast-vote-enter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-vote-exit {
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
}

/* ---- Image ---- */
.toast-vote__image-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  background:
    radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, rgba(16, 23, 39, 0.6), rgba(9, 14, 24, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.toast-vote__image {
  max-width: 88%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* ---- Body ---- */
.toast-vote__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.toast-vote__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.toast-vote__skin-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f6fbff;
  letter-spacing: -0.01em;
}

.toast-vote__pattern-id {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(56, 189, 248, 0.9);
  background: rgba(56, 189, 248, 0.1);
  padding: 1px 7px;
  border-radius: 999px;
}

.toast-vote__callout {
  font-size: 0.66rem;
  color: rgba(214, 231, 244, 0.6);
  font-style: italic;
}

.toast-vote__question {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(246, 251, 255, 0.95);
  text-align: center;
  padding: 2px 0;
}

.toast-vote__hint {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.45;
  color: rgba(214, 231, 244, 0.5);
  text-align: center;
  padding: 0 2px;
}

/* ---- Actions ---- */
.toast-vote__actions {
  display: flex;
  gap: 8px;
}

.toast-vote__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}

.toast-vote__btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.toast-vote__btn--yes {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.25), rgba(22, 163, 74, 0.2));
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.toast-vote__btn--yes:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.35), rgba(22, 163, 74, 0.3));
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.2);
  transform: translateY(-1px);
}

.toast-vote__btn--no {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.15));
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.toast-vote__btn--no:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.25));
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
}

.toast-vote__btn.is-loading {
  opacity: 0.5;
}

/* ---- Loading ---- */
.toast-vote--loading {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-vote__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.toast-vote__loading p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(214, 231, 244, 0.5);
}

.toast-vote__spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-top-color: rgba(56, 189, 248, 0.8);
  border-radius: 50%;
  animation: toast-vote-spin 0.7s linear infinite;
}

@keyframes toast-vote-spin {
  to { transform: rotate(360deg); }
}

/* ---- Thank you card ---- */
.toast-vote--thanks {
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(251, 191, 36, 0.1),
    0 0 24px rgba(251, 191, 36, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.toast-vote__body--thanks {
  padding: 18px 16px 16px;
  gap: 6px;
}

.toast-vote__thanks-icon {
  display: flex;
  justify-content: center;
  color: #fbbf24;
  margin-bottom: 2px;
}

.toast-vote__thanks-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f6fbff;
  text-align: center;
}

.toast-vote__thanks-text {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(214, 231, 244, 0.8);
  text-align: center;
}

.toast-vote__thanks-text a,
.toast-vote__cta-link {
  color: rgba(56, 189, 248, 0.95);
  text-decoration: none;
  font-weight: 600;
}

.toast-vote__thanks-text a:hover,
.toast-vote__cta-link:hover {
  text-decoration: underline;
}

.toast-vote__cta-link {
  display: inline-block;
  margin-top: 4px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.toast-vote__close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: 0;
  color: rgba(214, 231, 244, 0.4);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.toast-vote__close:hover {
  color: #f6fbff;
  background: rgba(255, 255, 255, 0.06);
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
  .toast-vote-root {
    bottom: 12px;
    left: 12px;
    right: 12px;
    max-width: none;
    width: auto;
  }

  .toast-vote__image-wrap {
    height: 110px;
  }

  .toast-vote__body {
    padding: 10px 12px 12px;
  }
}
