/**
 * Exact Give {token} a Vote card from the screenshot.
 * Stock React children stay hidden.
 */

body {
  background: hsl(var(--background)) !important;
  color: hsl(var(--foreground)) !important;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

:root {
  --boost: 43 96% 56%;
  --boost-foreground: 220 20% 7%;
}

.ds-vote-card {
  width: min(28rem, calc(100vw - 32px)) !important;
  max-width: 28rem !important;
  max-height: min(92dvh, 92vh) !important;
  overflow: auto !important;
  padding: 2rem !important;
  background: #121212 !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 1.5rem !important;
  text-align: center !important;
  box-shadow:
    0 0 80px -20px hsl(var(--boost) / 0.3),
    0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
  box-sizing: border-box !important;
}

.ds-vote-card > :not(.ds-vote-skin) {
  display: none !important;
}

/* Hide the stock React modal until the Dex skin is attached. */
#root .fixed.inset-0 .max-w-md.rounded-2xl:not(.ds-vote-card) {
  visibility: hidden !important;
}

.ds-vote-skin {
  position: relative;
  color: #fff;
}

.ds-vote-close {
  position: absolute;
  top: -0.35rem;
  right: -0.15rem;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a8a8a;
  cursor: pointer;
}

.ds-vote-close svg {
  width: 12px;
  height: 12px;
  display: block;
  margin: auto;
}

.ds-vote-heading {
  margin: 0.25rem 0 0.9rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.ds-vote-name,
.ds-vote-count,
.ds-vote-gold {
  color: #f0b90b !important;
}

.ds-vote-word,
.ds-vote-count {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.ds-vote-word {
  color: #f0b90b !important;
}

.ds-vote-word .ds-vote-bolt {
  color: #f0b90b;
  background: #f0b90b;
}

.ds-vote-golden-line {
  color: #f0b90b;
}

.ds-vote-golden-line .ds-vote-gold-label,
.ds-vote-golden-line .ds-vote-count {
  color: #f0b90b !important;
}

.ds-vote-bolt {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='black' d='M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288h111.5L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7H264.5L349.4 44.6z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='black' d='M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288h111.5L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7H264.5L349.4 44.6z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.ds-vote-desc {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #b8b8b8;
}

.ds-vote-note {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #f2f2f2;
}

.ds-vote-golden-line {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.ds-vote-ticker-list {
  background: #121216;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin: 0 auto 1.15rem;
  max-width: 220px;
}

.ds-vote-ticker-row {
  display: block;
  text-align: center;
  line-height: 1.55;
}

.ds-vote-ticker-row.is-faded {
  color: #5c5c66;
  font-size: 0.82rem;
}

.ds-vote-ticker-row.is-faded .ds-vote-gold,
.ds-vote-ticker-row.is-faded .ds-vote-quote {
  color: #5c5c66 !important;
}

.ds-vote-ticker-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: #f0b90b;
  margin-right: 6px;
  vertical-align: middle;
  opacity: 0.55;
}

.ds-vote-ticker-row.is-active {
  color: #f0b90b;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.1rem 0;
}

.ds-vote-ticker-row.is-active .ds-vote-quote {
  color: #f0b90b !important;
}

.ds-vote-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.15rem 0 0.2rem;
  color: #7a7a7a;
  font-size: 0.78rem;
}

.ds-vote-divider::before,
.ds-vote-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #2e2e2e;
}

.ds-vote-cta {
  width: 100%;
}

.ds-vote-card .ds-vote-modal-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  width: 100% !important;
  height: 3rem !important;
  margin-top: 0.85rem !important;
  border-radius: 0.75rem !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  box-shadow: 0 0 30px -5px hsl(var(--boost) / 0.5) !important;
}

.ds-vote-modal-btn .ds-vote-bolt {
  color: #111;
  background: #111;
}

.ds-vote-token-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.ds-vote-card .ds-vote-skip {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin-top: 0.75rem !important;
  padding: 0.5rem 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #8a8a8a !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
}
