:root {
--dd-red: #d71920;
--dd-red-dark: #a90f15;
--dd-black: #101114;
--dd-grey: #676c76;
--dd-light: #f4f5f7;
--dd-white: #ffffff;
--dd-border: rgba(16, 17, 20, 0.12);
--dd-shadow: 0 24px 70px rgba(16, 17, 20, 0.16);
}
.dd-poll-shell {
width: min(100%, 920px);
margin: 24px auto;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
color: var(--dd-black);
box-sizing: border-box;
}
.dd-poll-shell *,
.dd-poll-shell *::before,
.dd-poll-shell *::after {
box-sizing: border-box;
}
.dd-poll-card {
position: relative;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.75);
border-radius: 26px;
background: var(--dd-white);
box-shadow: var(--dd-shadow);
isolation: isolate;
}
.dd-poll-card::before {
content: '';
position: absolute;
inset: 0 0 auto;
height: 7px;
background: linear-gradient(90deg, #7e070c, var(--dd-red), #ff6267, var(--dd-red), #7e070c);
z-index: 3;
}
.dd-poll-card::after {
content: '';
position: absolute;
width: 290px;
height: 290px;
top: -170px;
right: -110px;
border-radius: 50%;
background: radial-gradient(circle, rgba(215, 25, 32, 0.22), rgba(215, 25, 32, 0));
pointer-events: none;
}
.dd-poll-view {
position: relative;
z-index: 1;
padding: 30px 32px 28px;
}
.dd-poll-kicker {
display: inline-flex;
align-items: center;
gap: 9px;
margin: 0 0 18px;
padding: 8px 12px;
border-radius: 999px;
background: rgba(215, 25, 32, 0.09);
color: var(--dd-red-dark);
font-size: 0.76rem;
font-weight: 900;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.dd-poll-kicker-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--dd-red);
box-shadow: 0 0 0 5px rgba(215, 25, 32, 0.12);
}
.dd-poll-heading {
max-width: 570px;
margin: 0;
font-size: clamp(2rem, 5vw, 3.35rem);
line-height: 0.98;
letter-spacing: -0.055em;
font-weight: 950;
}
.dd-poll-heading span {
color: var(--dd-red);
}
.dd-poll-intro {
max-width: 570px;
margin: 12px 0 0;
color: var(--dd-grey);
font-size: 1rem;
line-height: 1.65;
}
.dd-poll-meta {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 12px;
margin: 22px 0 14px;
}
.dd-poll-instruction {
margin: 0;
color: var(--dd-black);
font-size: 0.91rem;
font-weight: 800;
}
.dd-poll-count {
margin: 0;
color: var(--dd-grey);
font-size: 0.84rem;
font-weight: 750;
}
.dd-poll-options {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 11px;
}
.dd-poll-option {
position: relative;
display: flex;
align-items: center;
gap: 14px;
min-height: 56px;
padding: 13px 15px;
border: 1px solid var(--dd-border);
border-radius: 17px;
background: #fff;
cursor: pointer;
transition:
transform 160ms ease,
border-color 160ms ease,
background 160ms ease,
box-shadow 160ms ease;
}
.dd-poll-option:hover {
transform: translateY(-2px);
border-color: rgba(215, 25, 32, 0.38);
box-shadow: 0 12px 28px rgba(16, 17, 20, 0.08);
}
.dd-poll-option:has(input:focus-visible),
.dd-poll-option.dd-has-focus {
outline: 3px solid rgba(215, 25, 32, 0.22);
outline-offset: 3px;
}
.dd-poll-option:has(input:checked),
.dd-poll-option.dd-is-selected {
border-color: rgba(215, 25, 32, 0.72);
background:
linear-gradient(90deg, rgba(215, 25, 32, 0.09), rgba(215, 25, 32, 0.025)),
#fff;
box-shadow: 0 10px 28px rgba(215, 25, 32, 0.10);
}
.dd-poll-option.dd-is-disabled {
opacity: 0.5;
cursor: not-allowed;
}
.dd-poll-option input {
position: absolute;
opacity: 0;
pointer-events: none;
}
.dd-poll-check {
flex: 0 0 auto;
width: 25px;
height: 25px;
display: grid;
place-items: center;
border: 2px solid rgba(16, 17, 20, 0.24);
border-radius: 8px;
background: #fff;
transition: 160ms ease;
}
.dd-poll-check svg {
width: 15px;
height: 15px;
opacity: 0;
transform: scale(0.55);
transition: 160ms ease;
}
.dd-poll-option input:checked + .dd-poll-check,
.dd-poll-option.dd-is-selected .dd-poll-check {
border-color: var(--dd-red);
background: var(--dd-red);
}
.dd-poll-option input:checked + .dd-poll-check svg,
.dd-poll-option.dd-is-selected .dd-poll-check svg {
opacity: 1;
transform: scale(1);
}
.dd-poll-option-text {
color: var(--dd-black);
font-size: 0.98rem;
font-weight: 800;
line-height: 1.3;
}
.dd-poll-actions {
margin-top: 18px;
}
.dd-poll-submit {
width: 100%;
min-height: 54px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
border: 0;
border-radius: 17px;
background: linear-gradient(135deg, var(--dd-red), #a90f15);
color: #fff;
box-shadow: 0 15px 32px rgba(215, 25, 32, 0.26);
cursor: pointer;
font: inherit;
font-size: 0.98rem;
font-weight: 900;
letter-spacing: 0.01em;
transition:
transform 160ms ease,
box-shadow 160ms ease,
opacity 160ms ease;
}
.dd-poll-submit:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 19px 36px rgba(215, 25, 32, 0.32);
}
.dd-poll-submit:disabled {
cursor: not-allowed;
opacity: 0.46;
box-shadow: none;
}
.dd-poll-submit svg {
width: 18px;
height: 18px;
}
.dd-poll-error {
min-height: 22px;
margin: 10px 0 0;
color: var(--dd-red-dark);
font-size: 0.84rem;
font-weight: 800;
text-align: center;
}
.dd-poll-footer {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
margin-top: 14px;
color: #858994;
font-size: 0.76rem;
font-weight: 700;
text-align: center;
}
.dd-poll-footer svg {
width: 14px;
height: 14px;
}
.dd-poll-message-public {
padding: 32px 24px;
text-align: center;
}
.dd-poll-message-public.error {
color: var(--dd-red-dark);
font-weight: 800;
}
.dd-poll-message-public a {
color: var(--dd-red);
font-weight: 800;
}
.dd-thank-you {
display: none;
min-height: 560px;
place-items: center;
text-align: center;
}
.dd-thank-you.dd-is-visible {
display: grid;
animation: ddReveal 420ms ease both;
}
.dd-poll-form-view.dd-is-hidden {
display: none;
}
.dd-thank-you-inner {
width: 100%;
max-width: 540px;
margin: auto;
padding: 24px 0;
}
.dd-thank-you-icon {
position: relative;
width: 96px;
height: 96px;
display: grid;
place-items: center;
margin: 0 auto 24px;
border-radius: 28px;
background: linear-gradient(145deg, var(--dd-red), #8f0c11);
color: #fff;
box-shadow: 0 18px 42px rgba(215, 25, 32, 0.30);
transform: rotate(-4deg);
}
.dd-thank-you-icon::after {
content: '';
position: absolute;
inset: -10px;
border: 1px solid rgba(215, 25, 32, 0.22);
border-radius: 34px;
}
.dd-thank-you-icon svg {
width: 48px;
height: 48px;
}
.dd-thank-you-title {
margin: 0;
font-size: clamp(2.2rem, 6vw, 4rem);
line-height: 0.98;
letter-spacing: -0.055em;
font-weight: 950;
}
.dd-thank-you-title span {
color: var(--dd-red);
}
.dd-thank-you-copy {
max-width: 470px;
margin: 18px auto 0;
color: var(--dd-grey);
font-size: 1.04rem;
line-height: 1.7;
}
.dd-thank-you-banner {
margin-top: 26px;
padding: 17px 18px;
border: 1px solid rgba(215, 25, 32, 0.18);
border-radius: 17px;
background: rgba(215, 25, 32, 0.065);
color: var(--dd-black);
font-size: 0.91rem;
font-weight: 850;
line-height: 1.5;
}
.dd-thank-you-badge {
display: inline-flex;
align-items: center;
gap: 8px;
margin-top: 22px;
padding: 9px 13px;
border-radius: 999px;
background: var(--dd-black);
color: #fff;
font-size: 0.78rem;
font-weight: 900;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.dd-results {
margin-top: 22px;
text-align: left;
}
.dd-results-head {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 14px;
margin-bottom: 14px;
}
.dd-results-title {
margin: 0;
font-size: 1.08rem;
font-weight: 950;
letter-spacing: -0.02em;
}
.dd-results-total {
margin: 0;
color: var(--dd-grey);
font-size: 0.8rem;
font-weight: 800;
white-space: nowrap;
}
.dd-results-list {
display: grid;
gap: 12px;
}
.dd-result-item {
padding: 14px 15px;
border: 1px solid var(--dd-border);
border-radius: 16px;
background: #fff;
}
.dd-result-item.dd-user-choice {
border-color: rgba(215, 25, 32, 0.48);
background:
linear-gradient(90deg, rgba(215, 25, 32, 0.07), rgba(215, 25, 32, 0.015)),
#fff;
}
.dd-result-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
margin-bottom: 9px;
}
.dd-result-label {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
color: var(--dd-black);
font-size: 0.9rem;
font-weight: 850;
line-height: 1.3;
}
.dd-result-label-text {
overflow: hidden;
text-overflow: ellipsis;
}
.dd-result-choice-badge {
flex: 0 0 auto;
padding: 4px 7px;
border-radius: 999px;
background: rgba(215, 25, 32, 0.11);
color: var(--dd-red-dark);
font-size: 0.64rem;
font-weight: 950;
letter-spacing: 0.07em;
text-transform: uppercase;
}
.dd-result-percent {
flex: 0 0 auto;
color: var(--dd-black);
font-size: 0.9rem;
font-weight: 950;
}
.dd-result-track {
position: relative;
overflow: hidden;
height: 9px;
border-radius: 999px;
background: #e8e9ed;
}
.dd-result-fill {
width: 0;
height: 100%;
border-radius: inherit;
background: linear-gradient(90deg, var(--dd-red-dark), var(--dd-red), #ef4a50);
transition: width 900ms cubic-bezier(.2,.8,.2,1);
}
.dd-results-note {
margin: 12px 0 0;
color: #858994;
font-size: 0.74rem;
font-weight: 700;
line-height: 1.45;
text-align: center;
}
.dd-poll-sponsor {
position: absolute;
top: 24px;
right: 30px;
z-index: 4;
display: flex;
flex-direction: column;
align-items: center;
max-width: 120px;
text-align: center;
}
.dd-poll-sponsor-label {
display: block;
margin-bottom: 6px;
color: var(--dd-grey);
font-size: 0.62rem;
font-weight: 900;
letter-spacing: 0.08em;
line-height: 1.2;
text-transform: uppercase;
}
.dd-poll-sponsor img {
max-width: 100%;
max-height: 90px;
width: auto;
height: auto;
object-fit: contain;
display: block;
}
@keyframes ddReveal {
from {
opacity: 0;
transform: translateY(14px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 640px) {
.dd-poll-shell {
margin: 14px auto;
}
.dd-poll-card {
border-radius: 21px;
}
.dd-poll-view {
padding: 26px 18px 22px;
}
.dd-poll-options {
grid-template-columns: 1fr;
}
.dd-poll-option {
min-height: 56px;
border-radius: 15px;
}
.dd-thank-you {
min-height: 520px;
}
.dd-poll-sponsor {
top: 18px;
right: 16px;
max-width: 90px;
}
.dd-poll-sponsor img {
max-height: 60px;
}
.dd-poll-card:has(.dd-poll-sponsor) .dd-poll-heading {
padding-right: 100px;
}
}
@media (prefers-reduced-motion: reduce) {
.dd-poll-shell *,
.dd-poll-shell *::before,
.dd-poll-shell *::after {
scroll-behavior: auto !important;
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
}
}