#resultContainer.results-ui-v2 {
    --apricot-results-ui-version: 2;
}

body.challenge-ui-active {
    overflow-x: clip;
}

#resultContainer.results-ui-v2.challenge-active {
    display: block;
    max-width: 1180px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

#resultContainer.challenge-active #marketSummary,
#resultContainer.challenge-active #resultsConversationSummary {
    display: none !important;
}

#resultContainer.challenge-active #flightsList {
    /* Production results becomes a three-column grid on desktop. The challenge
       is one full-width experience, so it must explicitly opt out of that grid. */
    display: block !important;
    grid-template-columns: none !important;
    width: 100%;
    max-width: none;
}

#resultContainer.challenge-active #flightsList > .challenge-shell {
    grid-column: 1 / -1;
}

.challenge-shell,
.challenge-shell * {
    box-sizing: border-box;
}

body.challenge-ui-active #resultsConversationComposer,
body.challenge-ui-active #resultsAuthInvitation,
body.challenge-ui-active #resultsConversationAnswers {
    display: none !important;
}

.challenge-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: clamp(18px, 3vw, 36px);
    border: 2px solid #1a1a1a;
    border-radius: 28px;
    background:
        radial-gradient(circle at 8% 8%, rgba(242, 92, 5, 0.13), transparent 27%),
        radial-gradient(circle at 93% 12%, rgba(31, 78, 91, 0.14), transparent 29%),
        #f8f4e9;
    box-shadow: 10px 12px 0 rgba(26, 26, 26, 0.12);
    color: #1a1a1a;
    isolation: isolate;
    --challenge-ease: cubic-bezier(.22, .8, .2, 1);
    --challenge-spring: cubic-bezier(.16, 1.25, .32, 1);
}

.challenge-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.55;
    pointer-events: none;
    background-image: radial-gradient(rgba(31, 78, 91, 0.18) 0.75px, transparent 0.75px);
    background-size: 14px 14px;
    mask-image: linear-gradient(to bottom, black, transparent 58%);
}

.challenge-stage-glow {
    position: absolute;
    z-index: -1;
    width: min(520px, 88%);
    aspect-ratio: 1;
    left: 50%;
    top: 45%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 92, 5, 0.12), transparent 67%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: challenge-breathe 5s ease-in-out infinite alternate;
}

.challenge-stage-final {
    background:
        radial-gradient(circle at 50% 22%, rgba(242, 92, 5, 0.22), transparent 36%),
        radial-gradient(circle at 92% 15%, rgba(31, 78, 91, 0.18), transparent 30%),
        #f6ecda;
}

.challenge-shell.is-entering {
    animation: challenge-shell-in 460ms var(--challenge-ease) both;
}

.challenge-shell.is-reversing {
    animation: challenge-shell-back 360ms var(--challenge-ease) both;
}

.challenge-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.challenge-shell.is-entering .challenge-header > div:first-child {
    animation: challenge-copy-in 520ms var(--challenge-ease) both;
}

.challenge-kicker {
    margin: 0 0 7px;
    color: #f25c05;
    font: 700 12px/1.2 "Courier Prime", monospace;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.challenge-shell h2 {
    max-width: 700px;
    margin: 0;
    color: #1f4e5b;
    font: 400 clamp(28px, 4vw, 48px)/0.98 "DM Serif Display", serif;
}

.challenge-header-actions,
.challenge-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.challenge-header-actions button,
.challenge-actions button,
.challenge-preparing > button {
    min-height: 38px;
    padding: 8px 13px;
    border: 1.5px solid #1a1a1a;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    color: #1a1a1a;
    font: 700 12px/1 "Space Grotesk", sans-serif;
    cursor: pointer;
    transform: translate(var(--magnet-x, 0), var(--magnet-y, 0));
    transition: transform 180ms var(--challenge-ease), background 160ms ease, box-shadow 180ms ease;
}

.challenge-header-actions button:hover,
.challenge-actions button:hover,
.challenge-preparing > button:hover {
    transform: translate(var(--magnet-x, 0), calc(var(--magnet-y, 0) - 2px));
    background: #fff;
    box-shadow: 0 6px 14px rgba(31, 78, 91, 0.12);
}

.challenge-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 660px;
    margin: 0 auto 18px;
    counter-reset: round;
    contain: paint;
    padding: 4px;
}

.challenge-progress > span {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
    color: #918f85;
    font: 700 10px/1 "Space Grotesk", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.challenge-progress > span:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 28px;
    right: -4px;
    top: 50%;
    height: 2px;
    background: #d8d2c5;
    transform: translateY(-50%);
}

.challenge-progress i {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1.5px solid #b6b1a7;
    border-radius: 50%;
    background: #f8f4e9;
    color: #77746c;
    font-style: normal;
    transition: background 300ms ease, color 300ms ease, transform 300ms var(--challenge-spring);
}

.challenge-progress .is-current,
.challenge-progress .is-complete { color: #1f4e5b; }
.challenge-progress .is-current i {
    border-color: #1a1a1a;
    background: #f25c05;
    color: white;
    box-shadow: 3px 3px 0 #1a1a1a;
    transform: scale(1.08) rotate(-4deg);
}
.challenge-progress .is-complete i {
    border-color: #1f4e5b;
    background: #1f4e5b;
    color: white;
}
.challenge-progress .is-complete::after { background: #1f4e5b; }

.challenge-finalist-dock {
    display: grid;
    grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    max-width: 850px;
    margin: 0 auto 12px;
    padding: 10px;
    border: 1.5px solid rgba(26, 26, 26, 0.7);
    border-radius: 20px;
    background: rgba(246, 239, 222, 0.84);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 8px 20px rgba(31, 78, 91, .08);
    backdrop-filter: blur(12px);
    animation: challenge-dock-in 520ms 80ms var(--challenge-ease) both;
}

.challenge-dock-heading {
    display: grid;
    gap: 4px;
    padding: 0 4px;
}

.challenge-dock-heading span {
    color: #1f4e5b;
    font: 700 11px/1 "Space Grotesk", sans-serif;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.challenge-dock-heading small {
    color: #78766f;
    font: 500 10px/1.2 "Space Grotesk", sans-serif;
}

.challenge-dock-slots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.challenge-finalist-slot {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 7px 9px;
    overflow: hidden;
    border: 1px dashed #b9b3a7;
    border-radius: 13px;
    color: #77746c;
}

.challenge-finalist-slot > i {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    flex: none;
    border-radius: 50%;
    background: rgba(31, 78, 91, .09);
    color: #1f4e5b;
    font: 700 11px/1 "Courier Prime", monospace;
    font-style: normal;
}

.challenge-finalist-slot em {
    overflow: hidden;
    font: 500 11px/1.2 "Space Grotesk", sans-serif;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.challenge-finalist-slot.is-filled {
    border-style: solid;
    border-color: #1f4e5b;
    background: #1f4e5b;
    color: white;
    box-shadow: 2px 3px 0 rgba(26, 26, 26, .18);
}

.challenge-finalist-slot.is-filled > i { background: #f25c05; color: white; }
.challenge-finalist-slot.is-filled > span { display: grid; min-width: 0; gap: 2px; }
.challenge-finalist-slot strong,
.challenge-finalist-slot small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.challenge-finalist-slot strong { font: 700 11px/1.1 "Space Grotesk", sans-serif; }
.challenge-finalist-slot small { color: rgba(255,255,255,.72); font: 500 9px/1 "Courier Prime", monospace; }
.challenge-finalist-slot small b { color: #f6b283; }
.challenge-finalist-slot svg { width: 26px; height: 26px; overflow: visible; }
.challenge-finalist-slot svg circle { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 2; }
.challenge-finalist-slot svg path { fill: none; stroke: #f6b283; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.4; stroke-dasharray: 18; animation: challenge-check 420ms 220ms ease both; }
.challenge-finalist-slot.is-landing { animation: challenge-slot-land 700ms var(--challenge-spring) both; }

.challenge-stage-final .challenge-finalist-dock {
    border-color: #f25c05;
    box-shadow: 0 0 0 4px rgba(242, 92, 5, .08), 0 12px 28px rgba(31, 78, 91, .12);
}

.challenge-market-brief {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 10px 16px;
    max-width: 850px;
    margin: 0 auto 20px;
    padding: 12px 16px;
    border: 1px solid rgba(31, 78, 91, 0.28);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.68);
    text-align: left;
    animation: challenge-copy-in 440ms 160ms var(--challenge-ease) both;
}

.challenge-market-brief b {
    color: #1f4e5b;
    font: 700 12px/1.2 "Space Grotesk", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    white-space: nowrap;
}

.challenge-market-brief p {
    margin: 0;
    font: 500 13px/1.45 "Space Grotesk", sans-serif;
}

.challenge-arena {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
    perspective: 1200px;
}

.challenge-versus {
    z-index: 2;
    align-self: center;
    justify-self: center;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    background: #f25c05;
    box-shadow: 4px 5px 0 #1a1a1a;
    color: white;
    font: 700 15px/1 "Courier Prime", monospace;
    transform: rotate(-7deg);
    animation: challenge-vs-drop 620ms 260ms var(--challenge-spring) both;
}

.challenge-stage-final .challenge-versus {
    animation: challenge-final-vs 1.4s 500ms ease-in-out infinite alternate;
}

.challenge-flight-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 18px;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: clamp(20px, 2.2vw, 30px);
    padding-bottom: 58px;
    border: 2px solid #1a1a1a;
    border-radius: 23px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 6px 7px 0 rgba(26, 26, 26, 0.17);
    color: #1a1a1a;
    text-align: left;
    cursor: pointer;
    touch-action: pan-y;
    overflow: hidden;
    transform-origin: center;
    transform: translate3d(var(--drag-x, 0), var(--lift, 0), 0) rotateZ(var(--drag-rotate, var(--hover-rotate, 0deg)));
    transition: transform 260ms var(--challenge-ease), opacity 260ms ease, filter 260ms ease, box-shadow 260ms ease, border-color 180ms ease;
    will-change: transform;
}

.challenge-flight-card:hover,
.challenge-flight-card:focus-visible {
    outline: none;
    --lift: -7px;
    border-color: #1f4e5b;
    box-shadow: 10px 12px 0 rgba(31, 78, 91, .22), 0 20px 34px rgba(31, 78, 91, .12);
}

.challenge-arena > .challenge-flight-card:first-child:hover { --hover-rotate: -.35deg; }
.challenge-arena > .challenge-flight-card:last-child:hover { --hover-rotate: .35deg; }

.challenge-flight-card:focus-visible {
    box-shadow: 0 0 0 4px rgba(31, 78, 91, .2), 10px 12px 0 rgba(31, 78, 91, .22);
}

.challenge-card-aura {
    position: absolute !important;
    z-index: 0 !important;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(108deg, transparent 24%, rgba(31, 78, 91, .035) 37%, rgba(255, 255, 255, .82) 50%, rgba(31, 78, 91, .08) 61%, transparent 75%);
    background-position: 160% 0;
    background-size: 260% 100%;
}

.challenge-flight-card:hover .challenge-card-aura,
.challenge-flight-card:focus-visible .challenge-card-aura {
    animation: challenge-boarding-scan 920ms var(--challenge-ease) both;
}
.challenge-flight-card > :not(.challenge-card-aura) { position: relative; z-index: 1; }

.challenge-shell.is-entering .challenge-arena > .challenge-flight-card:first-child {
    animation: challenge-card-left-in 680ms 170ms var(--challenge-spring) both;
}

.challenge-shell.is-entering .challenge-arena > .challenge-flight-card:last-child {
    animation: challenge-card-right-in 680ms 230ms var(--challenge-spring) both;
}

.challenge-shell.is-reversing .challenge-arena > .challenge-flight-card {
    animation: challenge-card-rise-in 520ms var(--challenge-ease) both;
}

.challenge-card-pick {
    position: absolute !important;
    z-index: 3 !important;
    right: 22px;
    bottom: 20px;
    color: #f25c05;
    font: 700 14px/1 "Space Grotesk", sans-serif;
}

.challenge-card-airline {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: #575751;
    font: 700 13px/1.25 "Space Grotesk", sans-serif;
}

.challenge-airline-chip {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
}

.challenge-airline-logo {
    display: block;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 1px solid rgba(31, 78, 91, .14);
    border-radius: 9px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 2px 5px rgba(31, 78, 91, .1);
}

.challenge-airline-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.challenge-card-airline small {
    color: #8b887f;
    font: 600 10px/1 "Courier Prime", monospace;
}

.challenge-card-price {
    color: #1f4e5b;
    font: 400 25px/1 "DM Serif Display", serif;
}

.challenge-card-date {
    grid-column: 1 / -1;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    margin-top: -2px;
    color: #1f4e5b;
    font: 700 11px/1 "Courier Prime", monospace;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.challenge-card-date i {
    width: 7px;
    height: 7px;
    border: 1px solid #1a1a1a;
    border-radius: 50%;
    background: #f25c05;
    box-shadow: 1px 1px 0 rgba(26, 26, 26, .22);
}

.challenge-card-route {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(54px, auto) minmax(74px, 1fr) minmax(54px, auto);
    align-items: center;
    gap: clamp(10px, 1.6vw, 18px);
    min-width: 0;
    margin-top: 12px;
}

.challenge-card-route > b {
    min-width: 0;
    font: 400 clamp(30px, 3.1vw, 48px)/1 "DM Serif Display", serif;
    letter-spacing: -0.035em;
}

.challenge-card-route > b:last-child { text-align: right; }

.challenge-card-route > span {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #6c6c67;
    font: 700 10px/1 "Courier Prime", monospace;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.challenge-card-route i {
    width: 100%;
    border-top: 1px dashed #99988e;
    transform-origin: center;
    animation: challenge-route-draw 650ms 520ms var(--challenge-ease) both;
}

.challenge-card-times {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    color: #52524d;
    font: 700 13px/1.2 "Courier Prime", monospace;
    white-space: nowrap;
}

.challenge-card-times span:last-child { text-align: right; }
.challenge-card-times span:nth-child(2) { color: #9a480a; }

.challenge-card-meta {
    grid-column: 1 / -1;
    width: fit-content;
    max-width: 100%;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef3e8;
    color: #315443;
    font: 700 12px/1.2 "Space Grotesk", sans-serif;
    animation: challenge-chip-in 480ms 430ms var(--challenge-spring) both;
}

.challenge-card-argument {
    grid-column: 1 / -1;
    display: grid;
    align-content: start;
    gap: 9px;
    min-height: 176px;
    margin: 8px 0 0;
    padding: 18px 20px;
    border-left: 4px solid #f25c05;
    border-radius: 3px 13px 13px 3px;
    background: #fff8ea;
    animation: challenge-copy-in 520ms 500ms var(--challenge-ease) both;
}

.challenge-card-argument strong {
    color: #9a480a;
    font: 700 15px/1.25 "Space Grotesk", sans-serif;
}

.challenge-card-argument > span {
    font: 500 15px/1.55 "Space Grotesk", sans-serif;
}

.challenge-flight-card.is-chosen {
    z-index: 2;
    --lift: -18px;
    transform: translate3d(var(--drag-x, 0), var(--lift), 0) perspective(1100px) scale(1.025);
    border-color: #f25c05;
    box-shadow: 0 20px 40px rgba(31, 78, 91, 0.24);
}

.challenge-flight-card.is-chosen::before {
    content: "";
    position: absolute;
    z-index: 4;
    inset: -5px;
    border: 3px solid #f25c05;
    border-radius: 27px;
    pointer-events: none;
    animation: challenge-outline 480ms var(--challenge-spring) both;
}

.challenge-flight-card.is-rejected {
    opacity: 0.08;
    filter: grayscale(1);
    transform: translate3d(0, 24px, 0) scale(0.92) rotate(-2deg);
}

.challenge-arena > .challenge-flight-card:last-child.is-rejected {
    transform: translate3d(0, 24px, 0) scale(0.92) rotate(2deg);
}

.challenge-card-pick {
    transition: color 180ms ease, transform 180ms var(--challenge-ease);
}

.challenge-flight-card:hover .challenge-card-pick { transform: translateX(3px); }

.challenge-drag-cue {
    display: none;
    position: absolute !important;
    z-index: 2 !important;
}

.challenge-flight-card.is-dragging {
    z-index: 5;
    cursor: grabbing;
    transition: none;
    box-shadow: 0 24px 44px rgba(31, 78, 91, calc(.12 + var(--drag-progress, 0) * .18));
}

.challenge-flight-ghost {
    position: fixed !important;
    z-index: 9999 !important;
    margin: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    transform-origin: center !important;
    box-shadow: 0 26px 70px rgba(31, 78, 91, .28) !important;
    will-change: transform, opacity;
}

.challenge-flight-ghost .challenge-card-argument,
.challenge-flight-ghost .challenge-card-meta,
.challenge-flight-ghost .challenge-card-pick,
.challenge-flight-ghost .challenge-drag-cue { opacity: .18; }

.challenge-undo-toast {
    position: fixed;
    z-index: 50;
    left: 50%;
    bottom: max(22px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 10px 9px 16px;
    border-radius: 999px;
    background: #1a1a1a;
    box-shadow: 0 12px 32px rgba(0,0,0,.22);
    color: white;
    font: 600 12px/1 "Space Grotesk", sans-serif;
    transform: translateX(-50%);
    animation: challenge-toast-in 500ms 580ms var(--challenge-spring) both;
}

.challenge-undo-toast button {
    padding: 7px 11px;
    border: 0;
    border-radius: 999px;
    background: #f25c05;
    color: white;
    font: 700 11px/1 "Space Grotesk", sans-serif;
    cursor: pointer;
}

.challenge-undo-toast.is-expired {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 18px);
    transition: opacity 240ms ease, transform 240ms ease;
}

.challenge-preparing,
.challenge-winner-screen {
    display: grid;
    min-height: 430px;
    place-items: center;
    align-content: center;
    gap: 12px;
    text-align: center;
}

.challenge-winner-screen {
    min-height: min(760px, calc(100vh - 80px));
    background:
        radial-gradient(circle at 50% 35%, rgba(242, 92, 5, .23), transparent 38%),
        radial-gradient(circle at 20% 15%, rgba(31, 78, 91, .17), transparent 26%),
        #f8f0df;
    animation: challenge-winner-screen-in 620ms var(--challenge-ease) both;
}

.challenge-winner-copy {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 9px;
    animation: challenge-winner-copy 700ms 120ms var(--challenge-ease) both;
}

.challenge-winner-copy > p:last-child { max-width: 600px; margin: 0; font: 500 14px/1.5 "Space Grotesk", sans-serif; }

.challenge-victory-ticker {
    position: relative;
    z-index: 3;
    width: calc(100% + clamp(36px, 6vw, 72px));
    margin: 2px 0 8px;
    overflow: hidden;
    border-block: 2px solid #1a1a1a;
    background: #1f4e5b;
    color: #fff;
    transform: rotate(-1deg) scaleX(0);
    animation: challenge-ticker-open 640ms 80ms var(--challenge-spring) forwards;
}

.challenge-victory-ticker span {
    display: block;
    width: max-content;
    padding: 8px 0 7px;
    font: 700 10px/1 "Courier Prime", monospace;
    letter-spacing: .16em;
    white-space: nowrap;
    animation: challenge-ticker-run 11s 620ms linear infinite;
}

.challenge-victory-rings {
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 58%;
    width: min(700px, 88vw);
    aspect-ratio: 1;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.challenge-victory-rings i {
    position: absolute;
    inset: 50%;
    border: 2px solid rgba(31, 78, 91, .34);
    border-radius: 50%;
    opacity: 0;
    animation: challenge-victory-ring 1.45s calc(var(--ring, 0) * 150ms) var(--challenge-ease) both;
}

.challenge-victory-rings i:nth-child(1) { --ring: 0; border-color: rgba(242, 92, 5, .42); }
.challenge-victory-rings i:nth-child(2) { --ring: 1; }
.challenge-victory-rings i:nth-child(3) { --ring: 2; border-style: dashed; }

.challenge-winner-rays {
    position: absolute;
    z-index: -1;
    width: 720px;
    height: 720px;
    left: 50%;
    top: 48%;
    opacity: .18;
    background: repeating-conic-gradient(from 4deg, #f25c05 0 4deg, transparent 4deg 14deg);
    mask-image: radial-gradient(circle, black, transparent 68%);
    transform: translate(-50%, -50%);
    animation: challenge-rays 28s linear infinite;
}

.challenge-preparing > p,
.challenge-winner-screen > p {
    max-width: 660px;
    margin: 0;
    font: 500 15px/1.5 "Space Grotesk", sans-serif;
}

.challenge-orbit {
    position: relative;
    width: 78px;
    height: 78px;
    border: 1px dashed #1f4e5b;
    border-radius: 50%;
    animation: challenge-spin 2.2s linear infinite;
}

.challenge-orbit i {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    background: #f25c05;
}

.challenge-orbit i:nth-child(1) { top: -6px; left: 31px; }
.challenge-orbit i:nth-child(2) { right: -6px; top: 31px; background: #1f4e5b; }
.challenge-orbit i:nth-child(3) { bottom: -6px; left: 31px; background: #eed7a4; }
.challenge-orbit i:nth-child(4) { left: -6px; top: 31px; background: white; }

.challenge-winner-card {
    position: relative;
    z-index: 2;
    width: min(100%, 570px);
    margin: 0 auto 14px;
    padding-top: 52px;
    opacity: 0;
    animation: challenge-ticket-land 980ms 420ms var(--challenge-spring) forwards;
}

.challenge-winner-card .challenge-flight-card {
    width: 100%;
    cursor: default;
    overflow: hidden;
}

.challenge-winner-card .challenge-card-pick { display: none; }
.challenge-winner-card .challenge-flight-card {
    animation: none;
    transform: none;
    box-shadow: 10px 13px 0 rgba(26, 26, 26, .18);
}

.challenge-ticket-seal {
    position: absolute;
    z-index: 8;
    left: 50%;
    top: 5px;
    display: inline-flex;
    min-width: 148px;
    height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 2px solid #1a1a1a;
    border-radius: 999px;
    background: #f25c05;
    box-shadow: 4px 5px 0 #1a1a1a;
    color: white;
    font: 700 10px/1 "Courier Prime", monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
    transform: translateX(-50%) rotate(-3deg) scale(0);
    animation: challenge-seal 560ms 1.12s var(--challenge-spring) forwards;
}

.challenge-ticket-seal i {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: white;
    color: #f25c05;
    font: 900 12px/1 "Space Grotesk", sans-serif;
    font-style: normal;
}

.challenge-actions .challenge-primary {
    background: #f25c05;
    color: white;
}

.challenge-confetti {
    position: absolute;
    z-index: 4;
    inset: 0;
    pointer-events: none;
}

.challenge-confetti i {
    position: absolute;
    width: 7px;
    height: 15px;
    left: 50%;
    top: 56%;
    border-radius: 2px;
    background: #f25c05;
    opacity: 0;
    animation: challenge-confetti-burst 1.55s var(--delay) var(--challenge-ease) both;
}

.challenge-confetti i:nth-child(3n) { background: #1f4e5b; }
.challenge-confetti i:nth-child(3n + 2) { background: #edbf57; border-radius: 50%; }

@keyframes challenge-spin { to { transform: rotate(360deg); } }
@keyframes challenge-shell-in { from { opacity: 0; transform: translateY(18px) scale(.992); } }
@keyframes challenge-shell-back { from { opacity: 0; transform: translateX(-16px); } }
@keyframes challenge-copy-in { from { opacity: 0; transform: translateY(13px); } }
@keyframes challenge-dock-in { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
@keyframes challenge-card-left-in { from { opacity: 0; transform: translate3d(-72px, 30px, 0) rotateY(8deg) rotateZ(-2deg) scale(.96); } }
@keyframes challenge-card-right-in { from { opacity: 0; transform: translate3d(72px, 30px, 0) rotateY(-8deg) rotateZ(2deg) scale(.96); } }
@keyframes challenge-card-rise-in { from { opacity: 0; transform: translateY(28px) scale(.97); } }
@keyframes challenge-vs-drop { from { opacity: 0; transform: translateY(-42px) rotate(-28deg) scale(.55); } 72% { transform: translateY(5px) rotate(3deg) scale(1.08); } }
@keyframes challenge-final-vs { from { box-shadow: 4px 5px 0 #1a1a1a, 0 0 0 0 rgba(242,92,5,.25); transform: rotate(-7deg) scale(1); } to { box-shadow: 4px 5px 0 #1a1a1a, 0 0 0 14px rgba(242,92,5,0); transform: rotate(2deg) scale(1.06); } }
@keyframes challenge-route-draw { from { opacity: 0; transform: scaleX(0); } }
@keyframes challenge-boarding-scan { 0% { opacity: 0; background-position: 160% 0; } 22% { opacity: 1; } 100% { opacity: 0; background-position: -60% 0; } }
@keyframes challenge-chip-in { from { opacity: 0; transform: translateY(8px) scale(.9); } }
@keyframes challenge-outline { from { opacity: 0; clip-path: inset(0 100% 96% 0 round 27px); } to { opacity: 1; clip-path: inset(0 round 27px); } }
@keyframes challenge-slot-land { 0% { transform: scale(.88); } 55% { transform: scale(1.06) rotate(-1deg); } 100% { transform: scale(1); } }
@keyframes challenge-check { from { stroke-dashoffset: 18; } to { stroke-dashoffset: 0; } }
@keyframes challenge-toast-in { from { opacity: 0; transform: translate(-50%, 24px) scale(.9); } }
@keyframes challenge-breathe { to { transform: translate(-50%, -50%) scale(1.12); opacity: .65; } }
@keyframes challenge-winner-copy { from { opacity: 0; transform: translateY(-18px); } }
@keyframes challenge-winner-screen-in { from { opacity: 0; transform: scale(.975); filter: saturate(.6); } }
@keyframes challenge-ticket-land { 0% { opacity: 0; transform: translateY(80px) scale(.78) rotate(4deg); } 54% { opacity: 1; transform: translateY(-13px) scale(1.035) rotate(-1.2deg); } 74% { transform: translateY(6px) scale(.992) rotate(.4deg); } 100% { opacity: 1; transform: none; } }
@keyframes challenge-seal { 68% { transform: translateX(-50%) rotate(2deg) scale(1.1); } 100% { transform: translateX(-50%) rotate(-2deg) scale(1); } }
@keyframes challenge-rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes challenge-ticker-open { to { transform: rotate(-1deg) scaleX(1); } }
@keyframes challenge-ticker-run { to { transform: translateX(-50%); } }
@keyframes challenge-victory-ring { 0% { inset: 50%; opacity: .8; } 100% { inset: 0; opacity: 0; } }
@keyframes challenge-confetti-burst { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--angle)) translateX(0) scale(.25); } 16% { opacity: 1; } 72% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--distance)) rotate(620deg) scale(1); } }

@media (max-width: 900px) {
    .challenge-shell { border-radius: 20px; box-shadow: 5px 7px 0 rgba(26, 26, 26, 0.12); }
    .challenge-header { display: grid; }
    .challenge-header-actions { justify-content: flex-start; }
    .challenge-arena { grid-template-columns: 1fr; gap: 14px; }
    .challenge-versus { width: 44px; height: 44px; margin: -4px auto; }
    .challenge-flight-card { width: 100%; }
    .challenge-card-argument { min-height: 0; }
    .challenge-finalist-dock { grid-template-columns: 1fr; gap: 8px; }
    .challenge-dock-heading { display: flex; justify-content: space-between; }
    .challenge-shell.is-entering .challenge-arena > .challenge-flight-card:first-child { animation-name: challenge-card-rise-in; }
    .challenge-shell.is-entering .challenge-arena > .challenge-flight-card:last-child { animation-name: challenge-card-rise-in; }
}

@media (max-width: 560px) {
    #resultContainer.results-ui-v2.challenge-active {
        width: 100%;
    }

    .challenge-shell {
        padding: 16px;
        border-radius: 18px;
    }

    .challenge-shell h2 {
        font-size: clamp(27px, 9vw, 36px);
        line-height: 1;
    }

    .challenge-market-brief {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 14px;
        text-align: left;
    }

    .challenge-progress { margin-bottom: 14px; }
    .challenge-progress b { display: none; }
    .challenge-progress > span { grid-template-columns: auto 1fr; }
    .challenge-progress > span::after { right: 5px; }

    .challenge-finalist-dock { padding: 9px; border-radius: 16px; }
    .challenge-dock-slots { gap: 6px; }
    .challenge-finalist-slot { min-height: 43px; padding: 6px; }
    .challenge-finalist-slot > i { width: 23px; height: 23px; }
    .challenge-finalist-slot svg { display: none; }
    .challenge-finalist-slot em { font-size: 9px; }
    .challenge-finalist-slot strong { font-size: 10px; }

    .challenge-flight-card {
        gap: 10px 12px;
        padding: 18px;
        padding-bottom: 54px;
        border-radius: 18px;
        box-shadow: 4px 5px 0 rgba(26, 26, 26, 0.16);
    }

    .challenge-card-price { font-size: 24px; }

    .challenge-card-route {
        grid-template-columns: minmax(50px, auto) minmax(54px, 1fr) minmax(50px, auto);
        gap: 9px;
    }

    .challenge-card-route > b {
        font-size: clamp(29px, 10vw, 40px);
    }

    .challenge-card-route > span {
        gap: 5px;
        font-size: 9px;
    }

    .challenge-card-times {
        gap: 7px;
        font-size: 12px;
    }

    .challenge-card-argument {
        padding: 16px;
    }

    .challenge-card-argument > span {
        font-size: 15px;
        line-height: 1.5;
    }

    .challenge-card-pick {
        right: 18px;
        bottom: 18px;
        font-size: 13px;
    }

    .challenge-drag-cue {
        position: absolute !important;
        left: 18px;
        bottom: 19px;
        display: block;
        color: #88857d;
        font: 500 9px/1 "Space Grotesk", sans-serif;
        letter-spacing: .04em;
    }

    .challenge-undo-toast { width: max-content; max-width: calc(100vw - 28px); }
    .challenge-winner-card { padding-top: 50px; }
}

@media (prefers-reduced-motion: reduce) {
    .challenge-flight-card,
    .challenge-header-actions button,
    .challenge-actions button,
    .challenge-preparing > button { transition-duration: 1ms; }
    .challenge-orbit,
    .challenge-confetti i,
    .challenge-shell,
    .challenge-shell *,
    .challenge-stage-glow,
    .challenge-winner-rays { animation: none !important; }
    .challenge-flight-card { transform: none !important; }
    .challenge-winner-card { opacity: 1; transform: none; }
    .challenge-ticket-seal { transform: translateX(-50%) rotate(-2deg) scale(1); }
    .challenge-undo-toast { opacity: 1; transform: translateX(-50%); }
}
