.polls-shell[data-pip="on"] {
  --pip-look-x: 0px;
  --pip-look-y: 0px;
  --pip-eye-shift-x: 0px;
  --pip-eye-shift-y: 0px;
  --pip-eye-scale: 1;
  --pip-pupil-scale: 1;
  --pip-mouth-scale: 1;
  --pip-brow: 0px;
  --pip-squish: 1;
  --pip-float: 0px;
}

.polls-shell[data-pip="on"] .pulse-gremlin-wrap {
  position: relative;
  --gremlin-size: 52px;
  width: var(--gremlin-size);
  height: var(--gremlin-size);
  flex: 0 0 auto;
  overflow: visible;
}

.polls-shell[data-pip="on"] .pulse-gremlin {
  position: relative;
  width: var(--gremlin-size);
  height: var(--gremlin-size);
  pointer-events: none;
  z-index: 2;
  --gremlin-x: 0px;
  --gremlin-y: 0px;
  --gremlin-rot: 0deg;
  --gremlin-lean-x: 0px;
  --gremlin-lean-y: 0px;
  --gremlin-scale: 1;
  --gremlin-pupil-x: 0px;
  --gremlin-pupil-y: 0px;
  --gremlin-pupil-scale: 1;
  --gremlin-eye-scale-x: 1;
  --gremlin-eye-scale-y: 1;
  --gremlin-blink: 1;
  transform: translate(calc(var(--gremlin-x) + var(--gremlin-lean-x)), calc(var(--gremlin-y) + var(--gremlin-lean-y)))
    rotate(var(--gremlin-rot)) scale(var(--gremlin-scale));
  transition: transform 220ms ease;
  will-change: transform;
}

.polls-shell[data-pip="on"] .pulse-gremlin.is-roaming {
  position: fixed;
  left: var(--gremlin-fixed-left, 0px);
  top: var(--gremlin-fixed-top, 0px);
  z-index: 18;
  transition: transform 420ms ease;
}

.polls-shell[data-pip="on"] .pulse-gremlin.is-blocking {
  pointer-events: auto;
  z-index: 16;
}

.polls-shell[data-pip="on"] .pulse-gremlin__shadow {
  position: absolute;
  left: 50%;
  top: 72%;
  width: 42px;
  height: 12px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0) 70%);
  opacity: 0;
  filter: blur(2px);
  transition: opacity 200ms ease;
  pointer-events: none;
}

.polls-shell[data-pip="on"] .pulse-gremlin.is-scooting .pulse-gremlin__shadow,
.polls-shell[data-pip="on"] .pulse-gremlin.is-peeking .pulse-gremlin__shadow,
.polls-shell[data-pip="on"] .pulse-gremlin.is-roaming .pulse-gremlin__shadow,
.polls-shell[data-pip="on"] .pulse-gremlin.is-blocking .pulse-gremlin__shadow {
  opacity: 0.55;
}

.polls-shell[data-pip="on"] .pulse-gremlin__wobble {
  width: 100%;
  height: 100%;
  animation: gremlin-wobble 6.6s ease-in-out infinite;
}

.polls-shell[data-pip="on"] .pulse-gremlin__body {
  width: 100%;
  height: 100%;
  display: block;
}

.polls-shell[data-pip="on"] .pulse-gremlin__shape {
  stroke: rgba(111, 129, 170, 0.35);
  stroke-width: 0.6;
}

.polls-shell[data-pip="on"] .pulse-gremlin__highlight {
  pointer-events: none;
}

.polls-shell[data-pip="on"] .pulse-gremlin__eye-white {
  fill: #f8fafc;
  stroke: rgba(30, 41, 59, 0.14);
  stroke-width: 0.6;
}

.polls-shell[data-pip="on"] .pulse-gremlin__eyes {
  transform: scale(var(--gremlin-eye-scale-x), calc(var(--gremlin-eye-scale-y) * var(--gremlin-blink)));
  transform-origin: center;
  transform-box: fill-box;
  transition: transform 180ms ease;
}

.polls-shell[data-pip="on"] .pulse-gremlin__pupil {
  fill: #18223f;
  transform: translate(var(--gremlin-pupil-x), var(--gremlin-pupil-y)) scale(var(--gremlin-pupil-scale));
  transform-origin: center;
  transform-box: fill-box;
  transition: transform 140ms ease;
  will-change: transform;
}

.polls-shell[data-pip="on"] .pulse-gremlin__spark {
  fill: rgba(248, 250, 252, 0.9);
}

.polls-shell[data-pip="on"] .pulse-gremlin__mouth {
  fill: none;
  stroke: #1f2c4b;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: none;
}

.polls-shell[data-pip="on"] .pulse-gremlin__mouth--o {
  fill: #1f2c4b;
  stroke: none;
}

.polls-shell[data-pip="on"] .pulse-gremlin__blush {
  fill: rgba(241, 168, 186, 0.3);
}

.polls-shell[data-pip="on"] .pulse-gremlin[data-mouth="line"] .pulse-gremlin__mouth--line,
.polls-shell[data-pip="on"] .pulse-gremlin[data-mouth="grin"] .pulse-gremlin__mouth--grin,
.polls-shell[data-pip="on"] .pulse-gremlin[data-mouth="o"] .pulse-gremlin__mouth--o {
  display: block;
}

.polls-shell[data-pip="on"] .pulse-gremlin[data-expression="surprised"] {
  --gremlin-eye-scale-x: 1.08;
  --gremlin-eye-scale-y: 1.18;
  --gremlin-pupil-scale: 0.92;
}

.polls-shell[data-pip="on"] .pulse-gremlin[data-expression="side_eye"] {
  --gremlin-eye-scale-x: 1;
  --gremlin-eye-scale-y: 0.9;
  --gremlin-pupil-scale: 1;
}

.polls-shell[data-pip="on"] .pulse-gremlin[data-expression="half_lidded"] {
  --gremlin-eye-scale-x: 0.98;
  --gremlin-eye-scale-y: 0.82;
}

.polls-shell[data-pip="on"] .pulse-gremlin[data-expression="wide_eye"] {
  --gremlin-eye-scale-x: 1.12;
  --gremlin-eye-scale-y: 1.24;
  --gremlin-pupil-scale: 0.88;
}

.polls-shell[data-pip="on"] .pulse-gremlin[data-expression="blank_stare"] {
  --gremlin-pupil-scale: 0.95;
}

.polls-shell[data-pip="on"] .pulse-gremlin.is-bouncing {
  animation: gremlin-bounce 420ms ease-out 1;
}

.polls-shell[data-pip="on"] .pulse-gremlin.is-blinking {
  --gremlin-blink: 0.2;
}

.polls-shell[data-pip="on"] .pulse-gremlin.is-scooting {
  transition: transform 260ms ease;
}

.polls-shell[data-pip="on"] .pulse-gremlin.is-peeking {
  transition: transform 360ms ease;
}

.polls-shell[data-pip="on"] .pulse-gremlin.has-trail::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 60%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  filter: blur(1px);
  opacity: 0;
  animation: gremlin-trail 360ms ease-out 1;
}

.polls-shell[data-pip="on"] .pulse-progress-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 100%;
  overflow: visible;
}

.polls-shell[data-pip="on"] .pulse-progress {
  overflow: visible;
}

.polls-shell[data-pip="on"] .pip {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  transform: translateY(var(--pip-float)) scale(var(--pip-squish));
  filter: drop-shadow(0 8px 14px rgba(48, 74, 126, 0.14));
  animation: pip-breathe 4.4s ease-in-out infinite;
  transition: transform 130ms ease, filter 160ms ease;
}

.polls-shell[data-pip="on"] .pip.is-happy {
  animation: pip-breathe 4.4s ease-in-out infinite, pip-happy-pop 320ms ease-out 1;
}

.polls-shell[data-pip="on"] .pip::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
}

.polls-shell[data-pip="on"] .pip svg {
  width: 100%;
  height: 100%;
  display: block;
}

.polls-shell[data-pip="on"] .pip .pip-face {
  fill: #1d2d4f;
  stroke: #1d2d4f;
}

.polls-shell[data-pip="on"] .pip .pip-eye-shells {
  opacity: 0.98;
  transform-origin: center;
  transform-box: fill-box;
  transform: translate(var(--pip-eye-shift-x), var(--pip-eye-shift-y)) scale(var(--pip-eye-scale));
}

.polls-shell[data-pip="on"] .pip .pip-brows {
  stroke: #506399;
  transform: translateY(var(--pip-brow));
  transform-origin: center;
  transform-box: fill-box;
  transition: transform 160ms ease;
  opacity: 0.9;
}

.polls-shell[data-pip="on"] .pip .pip-pupils {
  transform: translate(var(--pip-look-x), var(--pip-look-y)) scale(var(--pip-pupil-scale));
  transform-origin: center;
  transform-box: fill-box;
  transition: transform 180ms ease;
}

.polls-shell[data-pip="on"] .pip .pip-pupil {
  fill: #22335f;
}

.polls-shell[data-pip="on"] .pip .pip-cheek {
  fill: #f7b8c8;
  opacity: 0.35;
}

.polls-shell[data-pip="on"] .pip.is-blink .pip-eye-shells,
.polls-shell[data-pip="on"] .pip.is-blink .pip-pupils {
  opacity: 0.12;
}

.polls-shell[data-pip="on"] .pip .pip-eyes-squint,
.polls-shell[data-pip="on"] .pip .pip-mouth,
.polls-shell[data-pip="on"] .pip .pip-mouth-flat,
.polls-shell[data-pip="on"] .pip .pip-mouth-smile,
.polls-shell[data-pip="on"] .pip .pip-mouth-smirk,
.polls-shell[data-pip="on"] .pip .pip-mouth-o {
  display: none;
}

.polls-shell[data-pip="on"] .pip .pip-mouth {
  transform: scale(var(--pip-mouth-scale));
  transform-origin: center;
}

.polls-shell[data-pip="on"] .pip[data-mouth="smile"] .pip-mouth-smile,
.polls-shell[data-pip="on"] .pip[data-mouth="o"] .pip-mouth-o,
.polls-shell[data-pip="on"] .pip[data-mouth="flat"] .pip-mouth-flat,
.polls-shell[data-pip="on"] .pip[data-mouth="smirk"] .pip-mouth-smirk {
  display: block;
}

.polls-shell[data-pip="on"] .pip .pip-badge {
  fill: #5075d1;
  opacity: 0;
  transform: scale(0.6);
  transform-origin: center;
  transition: opacity 150ms ease, transform 150ms ease;
}

.polls-shell[data-pip="on"] .pip[data-state="hover_a"],
.polls-shell[data-pip="on"] .pip[data-state="hover_b"] {
  --pip-float: -1px;
  filter: drop-shadow(0 10px 18px rgba(48, 74, 126, 0.2));
}

.polls-shell[data-pip="on"] .pip[data-state="pressed"] {
  filter: drop-shadow(0 6px 12px rgba(48, 74, 126, 0.18));
}

.polls-shell[data-pip="on"] .pip[data-state="thinking"] .pip-pupils,
.polls-shell[data-pip="on"] .pip[data-state="thinking"] .pip-eye-shells {
  opacity: 0.9;
}

.polls-shell[data-pip="on"] .pip[data-level="3"] .pip-badge,
.polls-shell[data-pip="on"] .pip[data-level="4"] .pip-badge,
.polls-shell[data-pip="on"] .pip[data-level="5"] .pip-badge {
  opacity: 0.95;
  transform: scale(1);
}

.polls-shell[data-pip="on"] .pip-bubble-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.polls-shell[data-pip="on"] .pip-bubble,
.polls-shell[data-pip="on"] .pip-line-wrap {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 8px 11px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 38px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.polls-shell[data-pip="on"] .pip-line-wrap {
  flex-direction: column;
  gap: 4px;
}

.polls-shell[data-pip="on"] .pip-bubble::before,
.polls-shell[data-pip="on"] .pip-line-wrap::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 14px;
  width: 11px;
  height: 11px;
  transform: rotate(45deg);
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.polls-shell[data-pip="on"] .pip-bubble-line,
.polls-shell[data-pip="on"] .pip-line {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  white-space: normal;
}

.polls-shell[data-pip="on"] .pip-line--next,
.polls-shell[data-pip="on"] .pip-line--post-next {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.polls-shell[data-pip="on"] .pip-line--post {
  margin-top: 6px;
}

.polls-shell[data-pip="on"] .pip-context-chip,
.polls-shell[data-pip="on"] .pip-context-open,
.polls-shell[data-pip="on"] .pip-context-close,
.polls-shell[data-pip="on"] .pip-context-expand {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  text-decoration: none;
  border-radius: 6px;
}

.polls-shell[data-pip="on"] .pip-context-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 0 6px;
}

.polls-shell[data-pip="on"] .pip-context-chip,
.polls-shell[data-pip="on"] .pip-context-open,
.polls-shell[data-pip="on"] .pip-context-close,
.polls-shell[data-pip="on"] .pip-context-expand {
  border: 1px solid var(--border);
  background: var(--pill-bg);
  color: var(--pill-text);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.1;
}

.polls-shell[data-pip="on"] .pip-context-close {
  color: var(--text-muted);
  background: var(--surface);
}

.polls-shell[data-pip="on"] .pip-context-open.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.polls-shell[data-pip="on"] .pip-bubble--context {
  margin-left: 6px;
  max-width: min(400px, 80vw);
  padding: 8px 10px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.polls-shell[data-pip="on"] .pip-bubble--context::before {
  top: 12px;
}

.polls-shell[data-pip="on"] .pip-context-bullets {
  margin: 0;
  padding-left: 17px;
  display: grid;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
}

.polls-shell[data-pip="on"] .pip-context-line {
  margin: 0;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.polls-shell[data-pip="on"] .pip-context-why {
  color: var(--text-muted);
}

.polls-shell[data-pip="on"] .pip-context-footer {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 4px;
}

.polls-shell[data-pip="on"] .polls-lanes-card {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.polls-shell[data-pip="on"] .polls-lanes-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.polls-shell[data-pip="on"] .polls-lanes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.polls-shell[data-pip="on"] .polls-lane-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.polls-shell[data-pip="on"] .polls-lane-chip.is-active,
.polls-shell[data-pip="on"] .polls-lane-chip[aria-pressed="true"] {
  background: var(--pill-bg);
  border-color: var(--accent);
  color: var(--pill-text);
}

.polls-shell[data-pip="on"] .polls-lanes-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.polls-shell[data-pip="on"] .polls-lanes-save {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.polls-shell[data-pip="on"] .polls-lanes-cancel {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.polls-shell[data-pip="on"] .polls-lanes-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.polls-shell[data-pip="on"] .polls-lanes-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.polls-shell[data-pip="on"] .pulse-source-row {
  margin: 6px 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.polls-shell[data-pip="on"] .pulse-source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.polls-shell[data-pip="on"] .pulse-source-link:hover {
  color: #1d4ed8;
}

.polls-shell[data-pip="on"] .pulse-source-icon {
  font-size: 0.8rem;
  opacity: 0.75;
}

.polls-shell[data-pip="on"] .pip-context-chip:focus-visible,
.polls-shell[data-pip="on"] .pip-context-open:focus-visible,
.polls-shell[data-pip="on"] .pip-context-close:focus-visible,
.polls-shell[data-pip="on"] .pip-context-expand:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Dense option tiles */
.polls-shell[data-pip="on"] .choice-grid {
  gap: 6px;
}

.polls-shell[data-pip="on"] .pulse-social-hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.polls-shell[data-pip="on"] .choice-card {
  min-height: 48px;
  padding: 7px 10px;
  gap: 5px;
  border-radius: 12px;
}

.polls-shell[data-pip="on"] .poll-option {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.polls-shell[data-pip="on"] .choice-hit {
  width: 100%;
}

.polls-shell[data-pip="on"] .choice-head,
.polls-shell[data-pip="on"] .poll-option__left {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  transform: translateY(4px);
}

.polls-shell[data-pip="on"] .choice-badge,
.polls-shell[data-pip="on"] .poll-option__badge {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: 0 0 30px;
  font-size: 0.92rem;
  display: grid;
  place-items: center;
  line-height: 1;
}

.polls-shell[data-pip="on"] .choice-label,
.polls-shell[data-pip="on"] .poll-option__label {
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.95rem;
  line-height: 1.25;
  flex: 1 1 auto;
  position: relative;
  top: 1px;
}

.polls-shell[data-pip="on"] .choice-chevron,
.polls-shell[data-pip="on"] .poll-option__chev {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 800;
  margin-left: auto;
  flex: 0 0 auto;
  line-height: 1;
  display: flex;
  align-items: center;
  transform: translateY(4px);
}

.polls-shell[data-pip="on"] .pulse-actions-row {
  gap: 12px;
  margin-top: 1px;
}

.polls-shell[data-pip="on"] .pulse-signal-block {
  margin: 6px 0 4px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.polls-shell[data-pip="on"] .pulse-signal-human {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.polls-shell[data-pip="on"] .pulse-signal-data {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.polls-shell[data-pip="on"] .pulse-resolved-chip {
  border: 1px solid var(--border);
  background: var(--pill-bg);
  color: var(--pill-text);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.7rem;
  font-weight: 700;
}

.polls-shell[data-pip="on"] .result-resolution {
  margin: 6px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.polls-shell[data-pip="on"] .result-resolution-summary {
  margin: 2px 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.polls-shell[data-pip="on"] .pulse-actions-row .pulse-link {
  color: var(--link);
  font-weight: 600;
}

.polls-shell[data-pip="on"] .pulse-link {
  font-size: 0.84rem;
  font-weight: 700;
}

.polls-shell[data-pip="on"] .pulse-link-muted {
  color: var(--text-muted);
}

.polls-edit-row {
  margin-top: 6px;
}

.polls-edit-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pill-text);
  background: var(--pill-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}

.polls-edit-link:hover {
  background: var(--surface-2);
}

@keyframes pip-breathe {
  0%,
  100% {
    transform: translateY(var(--pip-float)) scale(var(--pip-squish));
  }
  50% {
    transform: translateY(calc(var(--pip-float) - 1px)) scale(calc(var(--pip-squish) * 1.016));
  }
}

@keyframes gremlin-wobble {
  0%,
  100% {
    transform: translateY(0) rotate(-0.4deg);
  }
  50% {
    transform: translateY(1.4px) rotate(0.6deg);
  }
}

@keyframes gremlin-trail {
  0% {
    opacity: 0;
    transform: scaleX(0.6);
  }
  40% {
    opacity: 0.35;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(1.2);
  }
}

@keyframes gremlin-bounce {
  0% {
    transform: translate(calc(var(--gremlin-x) + var(--gremlin-lean-x)), calc(var(--gremlin-y) + var(--gremlin-lean-y)))
      rotate(var(--gremlin-rot)) scale(1);
  }
  45% {
    transform: translate(calc(var(--gremlin-x) + var(--gremlin-lean-x)), calc(var(--gremlin-y) + var(--gremlin-lean-y) - 3px))
      rotate(var(--gremlin-rot)) scale(1.02);
  }
  100% {
    transform: translate(calc(var(--gremlin-x) + var(--gremlin-lean-x)), calc(var(--gremlin-y) + var(--gremlin-lean-y)))
      rotate(var(--gremlin-rot)) scale(1);
  }
}

@keyframes pip-click-pop {
  0% {
    transform: scale(1);
  }
  60% {
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pip-happy-pop {
  0% {
    transform: translateY(var(--pip-float)) scale(var(--pip-squish));
  }
  50% {
    transform: translateY(calc(var(--pip-float) - 2px)) scale(calc(var(--pip-squish) * 1.06));
  }
  100% {
    transform: translateY(var(--pip-float)) scale(var(--pip-squish));
  }
}
@keyframes pip-consensus-bounce {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.06);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes pip-celebrate {
  0% {
    opacity: 0;
    box-shadow: none;
  }
  18% {
    opacity: 1;
    box-shadow:
      0 -14px 0 0 #93c5fd,
      11px -10px 0 0 #fca5a5,
      -12px -7px 0 0 #86efac,
      14px 2px 0 0 #c4b5fd,
      -13px 4px 0 0 #fdba74;
  }
  100% {
    opacity: 0;
    box-shadow:
      0 -22px 0 0 transparent,
      17px -15px 0 0 transparent,
      -19px -13px 0 0 transparent,
      20px 8px 0 0 transparent,
      -21px 9px 0 0 transparent;
  }
}


@media (min-width: 768px) {
  .polls-shell[data-pip="on"] .pulse-gremlin-wrap {
    --gremlin-size: 56px;
  }

  .polls-shell[data-pip="on"] .pip {
    width: 64px;
    height: 64px;
  }

  .polls-shell[data-pip="on"] .choice-card {
    min-height: 52px;
    padding: 8px 11px;
  }
}

@media (max-width: 840px) {
  .polls-shell[data-pip="on"] .pulse-progress-main {
    gap: 8px;
  }

  .polls-shell[data-pip="on"] .pip-bubble {
    padding: 7px 8px;
  }

  .polls-shell[data-pip="on"] .pip-bubble-line {
    font-size: 0.79rem;
  }

  .polls-shell[data-pip="on"] .pip-context-row,
  .polls-shell[data-pip="on"] .pip-bubble--context {
    margin-left: 10px;
    max-width: calc(100% - 12px);
  }

  .polls-shell[data-pip="on"] .choice-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .polls-shell[data-pip="on"] .choice-card {
    min-height: 56px;
    padding: 8px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .polls-shell[data-pip="on"] .pip,
  .polls-shell[data-pip="on"] .pip::after,
  .polls-shell[data-pip="on"] .pip *,
  .polls-shell[data-pip="on"] .pip-bubble,
  .polls-shell[data-pip="on"] .choice-card,
  .polls-shell[data-pip="on"] .pulse-gremlin,
  .polls-shell[data-pip="on"] .pulse-gremlin__wobble,
  .polls-shell[data-pip="on"] .pulse-gremlin__pupil {
    animation: none !important;
    transition: none !important;
  }
}
