/* Live Polls · Bullseye phone skin (owner decision 2026-10-06): the canvas's
   polls-ranking-designs Bullseye Phone and animation boards. Every rule is
   scoped to #poll-content.poll-design.pld-bullseye or
   #voted-message.poll-design.pld-bullseye, so no other screen or feature is
   touched; the classic screens (no .poll-design) never match.

   Live Trivia Bullseye's Op Mod language on a cream card: lowercase Jost,
   the question on an ink card, one capsule per answer in the display's
   colours by position (A tangerine, B teal, C mustard, D magenta, E sky,
   F lilac, G avocado, H coral) with a ringed letter disc, a ring target for
   "vote counted!" with the pick under it, and the host's paused banner as an
   ink pill with a ring pause icon. Motion is transforms only, and
   /poll-designs/bullseye.js keeps a re-render of the same poll from
   replaying it (.bepoll-same) and plays the stop's change once
   (.bepoll-stopping).

   The paused banner lands 0.5 s after it shows (bepollBanner, a spring
   drop; PollsBullseyeDesign.phoneStopEntrance, the tests read it). The
   Mac's stopDelayMs is the display's "top pick" landing less 0.5 s, so the
   phone lands with the projector. */

@font-face { font-family: 'Sidekick Trivia Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/sidekick-trivia-jost-medium-v1.woff2') format('woff2'); }
@font-face { font-family: 'Sidekick Trivia Jost'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/sidekick-trivia-jost-semi-bold-v1.woff2') format('woff2'); }
@font-face { font-family: 'Sidekick Trivia Jost'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/sidekick-trivia-jost-bold-v1.woff2') format('woff2'); }
@font-face { font-family: 'Sidekick Trivia Jost'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/sidekick-trivia-jost-extra-bold-v1.woff2') format('woff2'); }
@font-face { font-family: 'Sidekick Trivia Jost'; font-style: normal; font-weight: 900; font-display: swap; src: url('/fonts/sidekick-trivia-jost-black-v1.woff2') format('woff2'); }

#poll-content.poll-design.pld-bullseye,
#voted-message.poll-design.pld-bullseye {
    --be-ink: #151515; --be-cream: #F4EEDF; --be-mustard: #F2B807; --be-teal: #0E8C8E; --be-grey: #3A3632;
    --be-off-ink: #6E6962; --be-off-disc: #8F897F;
    margin: -8px -4px 0; padding: 22px 16px 22px; min-height: 70vh; box-sizing: border-box;
    border-radius: 26px; overflow: hidden;
    background: var(--be-cream); color: var(--be-ink);
    font-family: 'Sidekick Trivia Jost', 'Jost', system-ui, sans-serif; font-weight: 700;
    text-align: left;
}
/* renderPoll shows the screen with an inline display: block. */
#poll-content.poll-design.pld-bullseye[style*="block"] { display: flex !important; flex-direction: column; }
#poll-content.poll-design.pld-bullseye > * { flex: 0 0 auto; }

/* ── Paused (the host stopped voting): an ink pill with a ring pause ── */
#poll-content.poll-design.pld-bullseye .stopped-banner {
    position: relative; margin: 0 0 14px; padding: 12px 18px 12px 76px; min-height: 76px; box-sizing: border-box;
    background: var(--be-ink); color: var(--be-cream); border: none; border-radius: 999px;
    font-weight: 700; font-size: 18px; line-height: 1.12; text-align: left; text-transform: lowercase;
    align-items: center;
}
#poll-content.poll-design.pld-bullseye .stopped-banner.show { display: flex; }
#poll-content.poll-design.pld-bullseye .stopped-banner::before {
    content: ''; position: absolute; left: 10px; top: 50%; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%;
    background:
        radial-gradient(circle, var(--be-ink) 0 15px, transparent 15.5px),
        repeating-radial-gradient(circle, var(--be-mustard) 0 3px, var(--be-ink) 3px 6px);
}
#poll-content.poll-design.pld-bullseye .stopped-banner::after {
    content: ''; position: absolute; left: 32.5px; top: 50%; width: 5px; height: 16px; margin-top: -8px; border-radius: 2px;
    background: var(--be-mustard); box-shadow: 8px 0 0 var(--be-mustard);
}
#poll-content.poll-design.pld-bullseye:has(#options.bepoll-stopping) .stopped-banner.show {
    animation: bepollBanner 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── The question on an ink card ── */
#poll-content.poll-design.pld-bullseye .question {
    margin: 0 0 16px; padding: 16px 20px 18px; border-radius: 26px;
    background: var(--be-ink); color: var(--be-cream);
    font-weight: 700; font-size: 24px; line-height: 1.16; text-align: left; overflow-wrap: anywhere;
    animation: bepollFromLeft 0.5s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

/* ── The answers: a capsule each, its letter in a ring disc ── */
#poll-content.poll-design.pld-bullseye .options { gap: 12px; margin: 0; }
#poll-content.poll-design.pld-bullseye .option-btn {
    --c: #F26A1D; --p: #F3BC95;
    position: relative; display: flex; align-items: center; gap: 14px;
    width: 100%; min-height: 84px; margin: 0; padding: 12px 18px 12px 12px; box-sizing: border-box;
    border: none; border-radius: 28px; box-shadow: none;
    background: var(--c); color: var(--be-ink);
    font-family: 'Sidekick Trivia Jost', 'Jost', system-ui, sans-serif;
    font-weight: 700; font-size: 23px; line-height: 1.1; text-align: left; overflow-wrap: anywhere;
    transition: transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: bepollFromLeft 0.52s cubic-bezier(0.22, 1.2, 0.36, 1) both;
    animation-delay: 0.25s;
}
#poll-content.poll-design.pld-bullseye .option-btn::before {
    content: attr(data-letter);
    flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; box-sizing: border-box; padding-bottom: 3px;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle, var(--be-ink) 0 17px, transparent 17.5px),
        repeating-radial-gradient(circle, var(--be-ink) 0 4px, var(--be-cream) 4px 8px);
    color: var(--c); font-weight: 900; font-size: 23px; line-height: 1;
}
#poll-content.poll-design.pld-bullseye .option-btn[data-index="1"] { --c: #0E8C8E; --p: #9DC9C0; }
#poll-content.poll-design.pld-bullseye .option-btn[data-index="2"] { --c: #F2B807; --p: #F3D98D; }
#poll-content.poll-design.pld-bullseye .option-btn[data-index="3"] { --c: #C8246B; --p: #E3A1B3; }
#poll-content.poll-design.pld-bullseye .option-btn[data-index="4"] { --c: #57B3E0; --p: #B8D8DF; }
#poll-content.poll-design.pld-bullseye .option-btn[data-index="5"] { --c: #9B72CF; --p: #D2BFD9; }
#poll-content.poll-design.pld-bullseye .option-btn[data-index="6"] { --c: #7FAF3B; --p: #C8D6A1; }
#poll-content.poll-design.pld-bullseye .option-btn[data-index="7"] { --c: #E9776B; --p: #F0C1B3; }
/* They deal in from alternate sides, one after another. */
#poll-content.poll-design.pld-bullseye .option-btn:nth-child(even) { animation-name: bepollFromRight; }
#poll-content.poll-design.pld-bullseye .option-btn:nth-child(2) { animation-delay: 0.33s; }
#poll-content.poll-design.pld-bullseye .option-btn:nth-child(3) { animation-delay: 0.41s; }
#poll-content.poll-design.pld-bullseye .option-btn:nth-child(4) { animation-delay: 0.49s; }
#poll-content.poll-design.pld-bullseye .option-btn:nth-child(5) { animation-delay: 0.57s; }
#poll-content.poll-design.pld-bullseye .option-btn:nth-child(6) { animation-delay: 0.65s; }
#poll-content.poll-design.pld-bullseye .option-btn:nth-child(7) { animation-delay: 0.73s; }
#poll-content.poll-design.pld-bullseye .option-btn:nth-child(8) { animation-delay: 0.81s; }
#poll-content.poll-design.pld-bullseye .option-btn:active { transform: scale(0.9); }
/* The tap: a cream and ink ring round the pick as it presses in. */
#poll-content.poll-design.pld-bullseye .option-btn.bepoll-picked {
    transform: scale(0.95); box-shadow: 0 0 0 5px var(--be-cream), 0 0 0 10px var(--be-ink);
}
/* Switched off (voting paused, or the vote on its way): pale, letters grey. */
#poll-content.poll-design.pld-bullseye .option-btn:disabled {
    opacity: 1; cursor: default; transform: none;
    background: var(--p); color: rgba(21, 21, 21, 0.52);
}
#poll-content.poll-design.pld-bullseye .option-btn.bepoll-picked:disabled { transform: scale(0.95); background: var(--c); color: var(--be-ink); }
#poll-content.poll-design.pld-bullseye .option-btn:disabled::before {
    color: var(--be-off-ink);
    background:
        radial-gradient(circle, var(--be-off-disc) 0 17px, transparent 17.5px),
        repeating-radial-gradient(circle, var(--be-off-disc) 0 4px, var(--be-cream) 4px 8px);
}
#poll-content.poll-design.pld-bullseye .option-btn .bepoll-text { min-width: 0; }

/* ── Status ── */
#poll-content.poll-design.pld-bullseye .status {
    margin: 22px 0 0; color: var(--be-grey);
    font-weight: 600; font-size: 19px; line-height: 1.3; text-align: center; text-transform: lowercase;
    animation: bepollRise 0.52s 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
#poll-content.poll-design.pld-bullseye .status:empty { display: none; }

/* A re-render of the same poll (a vote count, a settings write) never
   replays the entrances; the stop switches the answers off once, the
   resume back on. */
#poll-content.poll-design.pld-bullseye:has(#options.bepoll-same) .question,
#poll-content.poll-design.pld-bullseye #options.bepoll-same .option-btn,
#poll-content.poll-design.pld-bullseye:has(#options.bepoll-same) .status { animation: none; }
#poll-content.poll-design.pld-bullseye #options.bepoll-stopping .option-btn:disabled { animation: bepollOff 0.25s ease both; }
#poll-content.poll-design.pld-bullseye #options.bepoll-resuming .option-btn { animation: bepollOn 0.25s ease both; }

/* Many answers: smaller capsules so all of them fit. */
#poll-content.poll-design.pld-bullseye:has(.option-btn:nth-child(5)) .options { gap: 9px; }
#poll-content.poll-design.pld-bullseye:has(.option-btn:nth-child(5)) .option-btn { min-height: 64px; padding: 8px 16px 8px 10px; font-size: 20px; border-radius: 24px; }
#poll-content.poll-design.pld-bullseye:has(.option-btn:nth-child(5)) .option-btn::before { width: 42px; height: 42px; font-size: 19px;
    background: radial-gradient(circle, var(--be-ink) 0 13px, transparent 13.5px), repeating-radial-gradient(circle, var(--be-ink) 0 3.5px, var(--be-cream) 3.5px 7px); }
#poll-content.poll-design.pld-bullseye:has(.option-btn:nth-child(5)) .option-btn:disabled::before {
    background: radial-gradient(circle, var(--be-off-disc) 0 13px, transparent 13.5px), repeating-radial-gradient(circle, var(--be-off-disc) 0 3.5px, var(--be-cream) 3.5px 7px); }
#poll-content.poll-design.pld-bullseye:has(.option-btn:nth-child(5)) .question { margin-bottom: 12px; padding: 12px 18px 14px; font-size: 20px; }
#poll-content.poll-design.pld-bullseye:has(.option-btn:nth-child(5)) .stopped-banner { min-height: 64px; margin-bottom: 10px; }
#poll-content.poll-design.pld-bullseye:has(.option-btn:nth-child(7)) .options { gap: 7px; }
#poll-content.poll-design.pld-bullseye:has(.option-btn:nth-child(7)) .option-btn { min-height: 50px; padding: 6px 16px 6px 10px; font-size: 18px; }

/* ── "vote counted!": a ring target with the tick, then the pick ── */
#voted-message.poll-design.pld-bullseye.show { display: flex; flex-direction: column; align-items: center; text-align: center; }
#voted-message.poll-design.pld-bullseye .checkmark {
    position: relative; width: 200px; height: 200px; margin: 64px auto 0; border-radius: 50%;
    background:
        radial-gradient(circle, var(--be-ink) 0 66px, transparent 66.5px),
        repeating-radial-gradient(circle, var(--be-teal) 0 10px, var(--be-cream) 10px 20px);
    font-size: 0; color: transparent;
    transform: rotate(-4deg);
    animation: bepollTarget 0.52s 0.05s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
#voted-message.poll-design.pld-bullseye .checkmark::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 42px; margin: -28px 0 0 -12px;
    border: solid var(--be-mustard); border-width: 0 8px 8px 0; border-radius: 2px;
    transform: rotate(45deg);
    animation: bepollTick 0.36s 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
#voted-message.poll-design.pld-bullseye h2 {
    margin: 30px 0 0; color: var(--be-ink);
    font-weight: 900; font-size: 54px; line-height: 0.98; letter-spacing: -2px; text-transform: lowercase;
    animation: bepollSlam 0.38s 0.45s cubic-bezier(0.2, 1.4, 0.5, 1) both;
}
/* The pick: its capsule, letter disc and all. */
#voted-message.poll-design.pld-bullseye .voted-pick { margin-top: 20px; max-width: 100%; }
#voted-message.poll-design.pld-bullseye .bepoll-pick {
    --c: #F26A1D;
    display: inline-flex; align-items: center; gap: 12px; max-width: 100%; box-sizing: border-box;
    padding: 8px 20px 8px 8px; border-radius: 999px; background: var(--c); color: var(--be-ink);
    font-weight: 700; font-size: 21px; line-height: 1.12; text-align: left; overflow-wrap: anywhere;
    transform: rotate(-2deg);
    animation: bepollSticker 0.42s 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
#voted-message.poll-design.pld-bullseye .bepoll-pick[data-index="1"] { --c: #0E8C8E; }
#voted-message.poll-design.pld-bullseye .bepoll-pick[data-index="2"] { --c: #F2B807; }
#voted-message.poll-design.pld-bullseye .bepoll-pick[data-index="3"] { --c: #C8246B; }
#voted-message.poll-design.pld-bullseye .bepoll-pick[data-index="4"] { --c: #57B3E0; }
#voted-message.poll-design.pld-bullseye .bepoll-pick[data-index="5"] { --c: #9B72CF; }
#voted-message.poll-design.pld-bullseye .bepoll-pick[data-index="6"] { --c: #7FAF3B; }
#voted-message.poll-design.pld-bullseye .bepoll-pick[data-index="7"] { --c: #E9776B; }
#voted-message.poll-design.pld-bullseye .voted-pick-letter {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; box-sizing: border-box; padding-bottom: 2px;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle, var(--be-ink) 0 13px, transparent 13.5px),
        repeating-radial-gradient(circle, var(--be-ink) 0 3.5px, var(--be-cream) 3.5px 7px);
    color: var(--c); font-weight: 900; font-size: 18px; line-height: 1;
}
#voted-message.poll-design.pld-bullseye p {
    margin-top: 18px; color: var(--be-grey);
    font-weight: 600; font-size: 20px; line-height: 1.3; text-transform: lowercase;
    animation: bepollRise 0.52s 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Short screens (an SE in Safari): the whole poll still fits. */
@media (max-height: 720px) {
    #poll-content.poll-design.pld-bullseye, #voted-message.poll-design.pld-bullseye { padding: 16px 14px 16px; }
    #poll-content.poll-design.pld-bullseye .stopped-banner { min-height: 62px; padding: 8px 14px 8px 64px; font-size: 16px; margin-bottom: 10px; }
    #poll-content.poll-design.pld-bullseye .stopped-banner::before { left: 8px; width: 46px; height: 46px; margin-top: -23px;
        background: radial-gradient(circle, var(--be-ink) 0 12px, transparent 12.5px), repeating-radial-gradient(circle, var(--be-mustard) 0 3px, var(--be-ink) 3px 6px); }
    #poll-content.poll-design.pld-bullseye .stopped-banner::after { left: 26.5px; height: 13px; margin-top: -6.5px; width: 4px; box-shadow: 7px 0 0 var(--be-mustard); }
    #poll-content.poll-design.pld-bullseye .question { font-size: 21px; padding: 12px 16px 14px; margin-bottom: 12px; border-radius: 22px; }
    #poll-content.poll-design.pld-bullseye .options { gap: 9px; }
    #poll-content.poll-design.pld-bullseye:has(.option-btn:nth-child(5)) .question { font-size: 17px; padding: 10px 14px 12px; margin-bottom: 8px; }
    #poll-content.poll-design.pld-bullseye:has(.option-btn:nth-child(5)) .stopped-banner { min-height: 52px; margin-bottom: 8px; }
    #poll-content.poll-design.pld-bullseye .option-btn { min-height: 70px; font-size: 21px; }
    #poll-content.poll-design.pld-bullseye:has(.option-btn:nth-child(5)) .options { gap: 7px; }
    #poll-content.poll-design.pld-bullseye:has(.option-btn:nth-child(5)) .option-btn { min-height: 48px; font-size: 18px; }
    #poll-content.poll-design.pld-bullseye:has(.option-btn:nth-child(7)) .options { gap: 5px; }
    #poll-content.poll-design.pld-bullseye:has(.option-btn:nth-child(7)) .option-btn { min-height: 44px; padding: 4px 14px 4px 8px; font-size: 16px; }
    #poll-content.poll-design.pld-bullseye:has(.option-btn:nth-child(7)) .option-btn::before { width: 36px; height: 36px; font-size: 16px;
        background: radial-gradient(circle, var(--be-ink) 0 11px, transparent 11.5px), repeating-radial-gradient(circle, var(--be-ink) 0 3px, var(--be-cream) 3px 6px); }
    #poll-content.poll-design.pld-bullseye .status { margin-top: 14px; font-size: 17px; }
    #voted-message.poll-design.pld-bullseye .checkmark { width: 160px; height: 160px; margin-top: 30px;
        background: radial-gradient(circle, var(--be-ink) 0 52px, transparent 52.5px), repeating-radial-gradient(circle, var(--be-teal) 0 8px, var(--be-cream) 8px 16px); }
    #voted-message.poll-design.pld-bullseye .checkmark::after { width: 18px; height: 34px; margin: -23px 0 0 -10px; border-width: 0 7px 7px 0; }
    #voted-message.poll-design.pld-bullseye h2 { font-size: 46px; margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    #poll-content.poll-design.pld-bullseye *, #poll-content.poll-design.pld-bullseye *::before,
    #poll-content.poll-design.pld-bullseye *::after,
    #voted-message.poll-design.pld-bullseye *, #voted-message.poll-design.pld-bullseye *::before,
    #voted-message.poll-design.pld-bullseye *::after { animation: none !important; transition: none !important; }
}

/* Motion: transforms only (and the answers' colour as they switch off). */
@keyframes bepollFromLeft { from { transform: translateX(-460px); } }
@keyframes bepollFromRight { from { transform: translateX(460px); } }
@keyframes bepollRise { from { transform: translateY(160px); } }
@keyframes bepollBanner { from { transform: translateY(-130px); } }
@keyframes bepollOff { from { background: var(--c); color: var(--be-ink); } }
@keyframes bepollOn { from { background: var(--p); } }
@keyframes bepollTarget { from { transform: rotate(-4deg) scale(0); } to { transform: rotate(-4deg) scale(1); } }
@keyframes bepollTick { from { transform: rotate(45deg) scale(0); } to { transform: rotate(45deg) scale(1); } }
@keyframes bepollSlam { from { transform: scale(0); } }
@keyframes bepollSticker { from { transform: rotate(-14deg) scale(0); } to { transform: rotate(-2deg) scale(1); } }
