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

   Live Trivia Bullseye's Op Mod language on a cream screen: lowercase Jost,
   each option a capsule in its place's colour (the display's palette, by its
   place in the document — data-index) with a ringed rank disc and a grip,
   an ink "submit ranking" capsule that rings mustard once this phone has
   ranked, and a ring target for "ranking submitted!" (a check) and "ranking
   closed" (a lock). Motion is transforms, clips and ring phases only
   (@property; a browser without it shows still rings), and
   /ranking-designs/bullseye.js keeps a re-render of the same screen (every
   ranking that lands) from replaying it.

   "ranking closed" lands 0.83 s after it shows: its headline slammed on
   (0.45 + 0.38 s), the lock target and the line under it in by then
   (RankingBullseyeDesign.phoneClosedLanding; the tests read these timings).
   The Mac's stopDelayMs is the display's "top pick" landing less 0.83 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'); }

@property --rkbe-ring { syntax: '<length>'; inherits: false; initial-value: 0px; }

#ranking-content.ranking-design.rkd-bullseye {
    --be-ink: #151515; --be-cream: #F4EEDF; --be-mustard: #F2B807; --be-teal: #0E8C8E; --be-grey: #3A3632;
    --rkbe-row: 76px; --rkbe-disc: 60px; --rkbe-num: 30px; --rkbe-name: 24px;
    margin: -8px -12px; padding: 30px 18px 24px; min-height: calc(100dvh - 24px); box-sizing: border-box;
    border-radius: 30px; 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;
}

/* ── The title and the instruction ── */
#ranking-content.ranking-design.rkd-bullseye .question {
    margin: 0 2px 14px;
    font-weight: 900; font-size: 40px; line-height: 0.95; letter-spacing: -1.5px;
    color: var(--be-ink); text-align: left; overflow-wrap: anywhere;
    animation: rkbeFromLeft 0.5s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
#ranking-content.ranking-design.rkd-bullseye .ranking-instruction {
    margin: 0 2px 18px;
    color: var(--be-grey); font-weight: 600; font-size: 17px; line-height: 24px; text-transform: lowercase;
    animation: rkbeRise 0.52s 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── The list: a capsule per option in its place's colour ── */
#ranking-content.ranking-design.rkd-bullseye .ranking-list { gap: 8px; margin-bottom: 22px; }
#ranking-content.ranking-design.rkd-bullseye .ranking-item {
    --rkbe-c: #F26A1D;
    position: relative; gap: 14px; min-height: var(--rkbe-row); height: var(--rkbe-row);
    padding: 0 20px 0 8px; border-radius: 999px;
    background: var(--rkbe-c); color: var(--be-ink);
    animation: rkbeFromLeft 0.52s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}
#ranking-content.ranking-design.rkd-bullseye .ranking-item:nth-child(even) { animation-name: rkbeFromRight; }
#ranking-content.ranking-design.rkd-bullseye .ranking-item:nth-child(1) { animation-delay: 0.3s; }
#ranking-content.ranking-design.rkd-bullseye .ranking-item:nth-child(2) { animation-delay: 0.36s; }
#ranking-content.ranking-design.rkd-bullseye .ranking-item:nth-child(3) { animation-delay: 0.42s; }
#ranking-content.ranking-design.rkd-bullseye .ranking-item:nth-child(4) { animation-delay: 0.48s; }
#ranking-content.ranking-design.rkd-bullseye .ranking-item:nth-child(n+5) { animation-delay: 0.54s; }
#ranking-content.ranking-design.rkd-bullseye .ranking-item[data-index="0"] { --rkbe-c: #F26A1D; }
#ranking-content.ranking-design.rkd-bullseye .ranking-item[data-index="1"] { --rkbe-c: #0E8C8E; }
#ranking-content.ranking-design.rkd-bullseye .ranking-item[data-index="2"] { --rkbe-c: #F2B807; }
#ranking-content.ranking-design.rkd-bullseye .ranking-item[data-index="3"] { --rkbe-c: #C8246B; }
#ranking-content.ranking-design.rkd-bullseye .ranking-item[data-index="4"] { --rkbe-c: #57B3E0; }
#ranking-content.ranking-design.rkd-bullseye .ranking-item[data-index="5"] { --rkbe-c: #9B72CF; }
#ranking-content.ranking-design.rkd-bullseye .ranking-item[data-index="6"] { --rkbe-c: #7FAF3B; }
#ranking-content.ranking-design.rkd-bullseye .ranking-item[data-index="7"] { --rkbe-c: #E9776B; }
/* The rank disc: an ink round ringed in the option's colour. */
#ranking-content.ranking-design.rkd-bullseye .ranking-item .rank-number {
    flex: 0 0 auto; width: var(--rkbe-disc); height: var(--rkbe-disc); min-width: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle, var(--be-ink) 0 37%, var(--rkbe-c) 37% 42%, var(--be-ink) 42% 49%, transparent 50%);
    color: var(--rkbe-c); font-weight: 800; font-size: var(--rkbe-num); line-height: 1;
    font-variant-numeric: tabular-nums;
}
#ranking-content.ranking-design.rkd-bullseye .ranking-item .rank-color { display: none; }
#ranking-content.ranking-design.rkd-bullseye .ranking-item .rank-name {
    min-width: 0; color: var(--be-ink); font-weight: 700; font-size: var(--rkbe-name); line-height: 1.05;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* The grip: three ink bars. */
#ranking-content.ranking-design.rkd-bullseye .ranking-item .drag-handle {
    flex: 0 0 auto; width: 26px; height: 19px; font-size: 0; color: transparent;
    background:
        linear-gradient(var(--be-ink), var(--be-ink)) 0 0 / 100% 3px no-repeat,
        linear-gradient(var(--be-ink), var(--be-ink)) 0 8px / 100% 3px no-repeat,
        linear-gradient(var(--be-ink), var(--be-ink)) 0 16px / 100% 3px no-repeat;
    border-radius: 2px;
}
/* Lifted: a cream and ink ring, tipped, with its shadow. */
#ranking-content.ranking-design.rkd-bullseye .ranking-item.dragging {
    opacity: 1; rotate: -2deg;
    box-shadow: 0 0 0 4px var(--be-cream), 0 0 0 8px var(--be-ink), 0 16px 0 rgba(21, 21, 21, 0.2);
}

/* ── Submit: an ink capsule, ringed mustard once this phone has ranked ── */
#ranking-content.ranking-design.rkd-bullseye .ranking-submit-btn {
    height: 80px; padding: 0; border-radius: 999px;
    background: var(--be-ink); color: var(--be-mustard);
    font-family: 'Sidekick Trivia Jost', 'Jost', system-ui, sans-serif;
    font-weight: 800; font-size: 28px; line-height: 80px; text-transform: lowercase;
    transition: transform 0.15s, box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: rkbeRise 0.52s 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
#ranking-content.ranking-design.rkd-bullseye.rkbe-ready .ranking-submit-btn {
    box-shadow: 0 0 0 5px var(--be-cream), 0 0 0 10px var(--be-mustard);
}
#ranking-content.ranking-design.rkd-bullseye .ranking-submit-btn:active { transform: scale(0.94); }
#ranking-content.ranking-design.rkd-bullseye .ranking-submit-btn:disabled { opacity: 1; background: #B9B2A5; color: var(--be-cream); box-shadow: none; }

/* ── Submitted and closed: a ring target, a check or a lock ── */
#ranking-content.ranking-design.rkd-bullseye .ranking-submitted { padding: 44px 0 0; text-align: center; }
#ranking-content.ranking-design.rkd-bullseye .rkbe-target {
    width: 206px; height: 206px; margin: 0 auto 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(circle, var(--be-ink) 0 66px, transparent 66.5px),
        repeating-radial-gradient(circle,
            var(--be-teal) var(--rkbe-ring), var(--be-teal) calc(var(--rkbe-ring) + 10px),
            var(--be-cream) calc(var(--rkbe-ring) + 10px), var(--be-cream) calc(var(--rkbe-ring) + 20px));
    transform: rotate(-4deg);
    animation: rkbeTarget 0.52s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) both, rkbeRing 1.5s 0.1s ease-out both;
}
#ranking-content.ranking-design.rkd-bullseye .rkbe-target svg {
    width: 76px; height: 76px; fill: none; stroke: var(--be-mustard); stroke-width: 2.6;
    stroke-linecap: round; stroke-linejoin: round;
}
#ranking-content.ranking-design.rkd-bullseye .rkbe-target path {
    stroke-dasharray: 1 1; stroke-dashoffset: 1;
    animation: rkbeDraw 0.45s 0.35s ease-out forwards;
}
#ranking-content.ranking-design.rkd-bullseye .ranking-submitted h2 {
    margin: 0 0 16px;
    color: var(--be-ink); font-weight: 900; font-size: 50px; line-height: 1; letter-spacing: -2px;
    text-transform: lowercase;
    animation: rkbeSlam 0.38s 0.45s cubic-bezier(0.2, 1.4, 0.5, 1) both;
}
#ranking-content.ranking-design.rkd-bullseye .ranking-submitted p {
    color: var(--be-grey); font-weight: 600; font-size: 20px; line-height: 1.3; text-transform: lowercase;
    animation: rkbeRise 0.52s 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
/* Closed: ink rings on mustard round a lock, landing with the display's
   top pick (all of it in by 0.83 s). */
#ranking-content.ranking-design.rkd-bullseye.rkbe-closed .rkbe-target {
    background:
        radial-gradient(circle, var(--be-ink) 0 66px, transparent 66.5px),
        repeating-radial-gradient(circle,
            var(--be-ink) var(--rkbe-ring), var(--be-ink) calc(var(--rkbe-ring) + 10px),
            var(--be-mustard) calc(var(--rkbe-ring) + 10px), var(--be-mustard) calc(var(--rkbe-ring) + 20px));
    animation: rkbeClose 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both, rkbeRing 1.5s 0.1s ease-out both;
}
#ranking-content.ranking-design.rkd-bullseye.rkbe-closed .ranking-submitted p { animation-delay: 0.3s; }

/* A re-render of the same screen (a ranking landing) never replays it. */
#ranking-content.ranking-design.rkd-bullseye.rkbe-same * { animation: none !important; }
#ranking-content.ranking-design.rkd-bullseye.rkbe-same .rkbe-target path { stroke-dashoffset: 0; }

/* A long question (over 44 characters, bullseye.js): a smaller title. */
#ranking-content.ranking-design.rkd-bullseye.rkbe-long .question { font-size: 30px; letter-spacing: -1px; }

/* 6–8 options: shorter rows, so the list and submit fit without scrolling
   (the gap stays 8 px: the drag measures it). */
#ranking-content.ranking-design.rkd-bullseye.compact { --rkbe-row: 56px; --rkbe-disc: 48px; --rkbe-num: 24px; --rkbe-name: 21px; }
#ranking-content.ranking-design.rkd-bullseye.compact .question { margin-bottom: 10px; font-size: 36px; }
#ranking-content.ranking-design.rkd-bullseye.compact.rkbe-long .question { font-size: 28px; }
#ranking-content.ranking-design.rkd-bullseye.compact .ranking-instruction { margin-bottom: 12px; }
#ranking-content.ranking-design.rkd-bullseye.compact .ranking-item { padding: 0 18px 0 6px; min-height: var(--rkbe-row); }
#ranking-content.ranking-design.rkd-bullseye.compact .ranking-list { margin-bottom: 18px; }

/* Short screens (an SE): the whole list and submit still fit. */
@media (max-height: 720px) {
    #ranking-content.ranking-design.rkd-bullseye { padding: 20px 14px 16px; --rkbe-row: 60px; --rkbe-disc: 50px; --rkbe-num: 25px; --rkbe-name: 21px; }
    #ranking-content.ranking-design.rkd-bullseye .question { font-size: 32px; margin-bottom: 8px; }
    #ranking-content.ranking-design.rkd-bullseye .ranking-instruction { font-size: 15px; line-height: 20px; margin-bottom: 12px; }
    #ranking-content.ranking-design.rkd-bullseye .ranking-list { margin-bottom: 16px; }
    #ranking-content.ranking-design.rkd-bullseye .ranking-submit-btn { height: 62px; line-height: 62px; font-size: 24px; }
    #ranking-content.ranking-design.rkd-bullseye.compact { --rkbe-row: 44px; --rkbe-disc: 38px; --rkbe-num: 19px; --rkbe-name: 18px; }
    #ranking-content.ranking-design.rkd-bullseye.compact .question { font-size: 28px; margin-bottom: 6px; }
    #ranking-content.ranking-design.rkd-bullseye.rkbe-long .question,
    #ranking-content.ranking-design.rkd-bullseye.compact.rkbe-long .question { font-size: 24px; }
    #ranking-content.ranking-design.rkd-bullseye.compact .ranking-instruction { margin-bottom: 8px; }
    #ranking-content.ranking-design.rkd-bullseye.compact .ranking-list { margin-bottom: 12px; }
    #ranking-content.ranking-design.rkd-bullseye.compact .ranking-item { gap: 10px; padding: 0 14px 0 3px; }
    #ranking-content.ranking-design.rkd-bullseye.compact .ranking-item .drag-handle { width: 22px; height: 16px;
        background:
            linear-gradient(var(--be-ink), var(--be-ink)) 0 0 / 100% 3px no-repeat,
            linear-gradient(var(--be-ink), var(--be-ink)) 0 6.5px / 100% 3px no-repeat,
            linear-gradient(var(--be-ink), var(--be-ink)) 0 13px / 100% 3px no-repeat; }
    #ranking-content.ranking-design.rkd-bullseye .ranking-submitted { padding-top: 28px; }
    #ranking-content.ranking-design.rkd-bullseye .rkbe-target { width: 168px; height: 168px; margin-bottom: 24px;
        background:
            radial-gradient(circle, var(--be-ink) 0 54px, transparent 54.5px),
            repeating-radial-gradient(circle,
                var(--be-teal) var(--rkbe-ring), var(--be-teal) calc(var(--rkbe-ring) + 8px),
                var(--be-cream) calc(var(--rkbe-ring) + 8px), var(--be-cream) calc(var(--rkbe-ring) + 16px)); }
    #ranking-content.ranking-design.rkd-bullseye.rkbe-closed .rkbe-target {
        background:
            radial-gradient(circle, var(--be-ink) 0 54px, transparent 54.5px),
            repeating-radial-gradient(circle,
                var(--be-ink) var(--rkbe-ring), var(--be-ink) calc(var(--rkbe-ring) + 8px),
                var(--be-mustard) calc(var(--rkbe-ring) + 8px), var(--be-mustard) calc(var(--rkbe-ring) + 16px)); }
    #ranking-content.ranking-design.rkd-bullseye .rkbe-target svg { width: 62px; height: 62px; }
    #ranking-content.ranking-design.rkd-bullseye .ranking-submitted h2 { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    #ranking-content.ranking-design.rkd-bullseye *, #ranking-content.ranking-design.rkd-bullseye *::before,
    #ranking-content.ranking-design.rkd-bullseye *::after { animation: none !important; transition: none !important; }
    #ranking-content.ranking-design.rkd-bullseye .rkbe-target path { stroke-dashoffset: 0; }
}

/* Motion: transforms, clips and ring phases only. */
@keyframes rkbeRing { from { --rkbe-ring: 0px; } to { --rkbe-ring: 20px; } }
@keyframes rkbeTarget { from { transform: rotate(-4deg) scale(0); } to { transform: rotate(-4deg) scale(1); } }
@keyframes rkbeClose { from { transform: rotate(-4deg) scale(0.7); } to { transform: rotate(-4deg) scale(1); } }
@keyframes rkbeSlam { from { transform: scale(0); } }
@keyframes rkbeFromLeft { from { transform: translateX(-460px); } }
@keyframes rkbeFromRight { from { transform: translateX(440px); } }
@keyframes rkbeRise { from { transform: translateY(420px); } }
@keyframes rkbeDraw { to { stroke-dashoffset: 0; } }
