/* Isolated, visual-only publication interlude. No shared modal/button overrides. */
body.match-publish-flight-open { overflow: hidden !important; }

dialog.match-publish-flight {
    --mpf-cycle: 3400ms;
    --mpf-accent: #8ff1bd;
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 0;
    background: radial-gradient(ellipse at 50% 37%, #163c2b 0, #0b231b 36%, #071610 75%);
    color: #f0fff6 !important;
    color-scheme: dark;
    font-family: inherit;
    line-height: 1.45;
    text-align: center;
    isolation: isolate;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

dialog.match-publish-flight:not([open]) { display: none; }
dialog.match-publish-flight::backdrop { background: #071610; }
.match-publish-flight *, .match-publish-flight *::before, .match-publish-flight *::after { box-sizing: border-box; }
.match-publish-flight svg { display: block; flex: 0 0 auto; color: inherit !important; }

.match-publish-flight .mpf-panel {
    position: relative;
    width: min(100%, 640px);
    margin: auto;
    animation: mpf-enter 420ms cubic-bezier(.2, .7, .2, 1) both;
}

/* The site styles native header/footer elements, including an !important dark footer. */
.match-publish-flight .mpf-header,
.match-publish-flight .mpf-footer {
    display: block;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.match-publish-flight .mpf-header { position: relative; z-index: 2; max-width: 490px; }
.match-publish-flight .mpf-eyebrow { display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 22px; color: #9bbcac !important; font-size: 10px !important; font-weight: 750; letter-spacing: .15em; line-height: 1.2; }
.match-publish-flight .mpf-eyebrow > span { color: inherit !important; font-size: inherit !important; }
.match-publish-flight .mpf-eyebrow-separator { opacity: .4; }
.match-publish-flight .mpf-brand-mark { width: 7px; height: 7px; border-radius: 2px; background: #8ff1bd; box-shadow: 0 0 14px #8ff1bd30; transform: rotate(-13deg); }
.match-publish-flight .mpf-title { max-width: 450px; margin: 0 auto; color: #f0fff6 !important; font-size: clamp(29px, 5.3vw, 42px) !important; font-weight: 750 !important; line-height: 1.13 !important; letter-spacing: -.045em; text-wrap: balance; }
.match-publish-flight .mpf-description { max-width: 390px; margin: 15px auto 0; color: #a4c2b2 !important; font-size: 13px !important; font-weight: 450; line-height: 1.65 !important; text-wrap: balance; }

.match-publish-flight .mpf-network { position: relative; width: 100%; max-width: 560px; aspect-ratio: 6 / 5; margin: 8px auto 12px; contain: layout style; }
.match-publish-flight .mpf-pitch { position: absolute; inset: 9% 4% 5%; overflow: hidden; border: 1px solid #91d3b00a; border-radius: 33%; background-image: radial-gradient(#9edab916 .75px, transparent .75px); background-size: 19px 19px; mask-image: radial-gradient(ellipse, #000 30%, transparent 73%); -webkit-mask-image: radial-gradient(ellipse, #000 30%, transparent 73%); }
.match-publish-flight .mpf-orbit { position: absolute; top: 45%; left: 50%; width: 66%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid #b1e8c60c; border-radius: 50%; pointer-events: none; }
.match-publish-flight .mpf-orbit-inner { width: 43%; border-style: dashed; border-color: #b1e8c617; }
.match-publish-flight .mpf-paths { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.match-publish-flight .mpf-route { fill: none; stroke-linecap: round; }
.match-publish-flight .mpf-route-track { stroke: var(--mpf-role-color); stroke-width: 1; opacity: .23; }
.match-publish-flight .mpf-route-light { stroke: var(--mpf-role-color); stroke-width: 7; opacity: .11; stroke-dasharray: 7 93; animation: mpf-packet var(--mpf-cycle) cubic-bezier(.35, .2, .3, 1) infinite; }
.match-publish-flight .mpf-route-packet { stroke: var(--mpf-role-color); stroke-width: 2.5; stroke-dasharray: 4 96; animation: mpf-packet var(--mpf-cycle) cubic-bezier(.35, .2, .3, 1) infinite; }
.match-publish-flight .mpf-route.is-muted { opacity: .2; }
.match-publish-flight .mpf-route.is-muted .mpf-route-packet, .match-publish-flight .mpf-route.is-muted .mpf-route-light { display: none; }
.match-publish-flight .mpf-role-rival { --mpf-role-color: #c3b6ff; --mpf-role-rgb: 195, 182, 255; }
.match-publish-flight .mpf-role-player { --mpf-role-color: #8ff1bd; --mpf-role-rgb: 143, 241, 189; }
.match-publish-flight .mpf-role-referee { --mpf-role-color: #f4d399; --mpf-role-rgb: 244, 211, 153; }
.match-publish-flight .mpf-role-coach { --mpf-role-color: #9dccff; --mpf-role-rgb: 157, 204, 255; }
.match-publish-flight .mpf-role-audience { --mpf-role-color: #f4b9db; --mpf-role-rgb: 244, 185, 219; }
.match-publish-flight .mpf-role-private { --mpf-role-color: #a8d9ff; --mpf-role-rgb: 168, 217, 255; }
.match-publish-flight .mpf-role-community { --mpf-role-color: #d6bcff; --mpf-role-rgb: 214, 188, 255; }

.match-publish-flight .mpf-role {
    position: absolute;
    left: var(--mpf-x);
    top: var(--mpf-y);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(76px, 21%, 108px);
    min-height: 90px;
    padding: 12px 7px 9px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(var(--mpf-role-rgb), .21);
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(var(--mpf-role-rgb), .075), transparent 75%), #10261e;
    color: var(--mpf-role-color) !important;
    box-shadow: 0 12px 28px #00000014, inset 0 1px #ffffff06;
}

.match-publish-flight .mpf-role::after { content: ''; position: absolute; inset: -1px; border: 1px solid var(--mpf-role-color); border-radius: inherit; opacity: 0; animation: mpf-receive var(--mpf-cycle) ease-out infinite; pointer-events: none; }
.match-publish-flight .mpf-role-icon { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 5px; color: var(--mpf-role-color) !important; }
.match-publish-flight .mpf-role-icon svg { width: 25px; height: 25px; }
.match-publish-flight .mpf-role-label { color: #e0eee6 !important; font-size: 11px !important; font-weight: 650; line-height: 1.25; white-space: nowrap; }
.match-publish-flight .mpf-role-receipt { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: #a3b7aa !important; font-size: 8px !important; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.match-publish-flight .mpf-role-receipt::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--mpf-role-color); }
.match-publish-flight .mpf-role.is-muted { opacity: .36; }
.match-publish-flight .mpf-role.is-muted::after { animation: none; }
.match-publish-flight .mpf-role.is-muted .mpf-role-receipt::before { background: #a3b7aa; }

.match-publish-flight .mpf-source {
    position: absolute;
    left: 50%;
    top: 45%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 178px;
    min-height: 141px;
    padding: 17px 12px 14px;
    transform: translate(-50%, -50%);
    border: 1px solid #abffce7a;
    border-radius: 24px;
    background: radial-gradient(ellipse at 50% 0, #315a41 0, #1a392a 48%, #153024 100%);
    color: #d9ffea !important;
    box-shadow: 0 0 0 7px #96efb909, 0 0 72px #79edac12, 0 24px 38px #00000026, inset 0 1px #d8ffe51f;
}

.match-publish-flight .mpf-source::before, .match-publish-flight .mpf-source::after { content: ''; position: absolute; inset: -1px; z-index: -1; border: 1px solid #a1f3c366; border-radius: inherit; opacity: 0; animation: mpf-origin var(--mpf-cycle) ease-out infinite; pointer-events: none; }
.match-publish-flight .mpf-source::after { animation-delay: 240ms; }
.match-publish-flight .mpf-source-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 11px; border: 1px solid #b4ffd632; border-radius: 12px; background: #98edb913; color: #c6ffdd !important; }
.match-publish-flight .mpf-source-icon svg { width: 26px; height: 26px; }
.match-publish-flight .mpf-source-kicker { color: #9ac6aa !important; font-size: 7px !important; font-weight: 600; letter-spacing: .115em; line-height: 1.2; white-space: nowrap; }
.match-publish-flight .mpf-source-title { display: block; margin-top: 5px; color: #f1fff6 !important; font-size: 19px !important; font-weight: 750; line-height: 1.15; letter-spacing: -.03em; }
.match-publish-flight .mpf-source-venue { display: block; width: 100%; margin-top: 6px; overflow: hidden; color: #b3cfbd !important; font-size: 9px !important; font-weight: 500; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.match-publish-flight .mpf-source-signal { position: absolute; right: -8px; top: -8px; display: grid; place-items: center; width: 29px; height: 29px; border: 4px solid #143023; border-radius: 50%; background: #b4f4cb; color: #143724 !important; box-shadow: 0 3px 12px #0000002b; }
.match-publish-flight .mpf-source-signal svg { width: 15px; height: 15px; }
.match-publish-flight .is-notifications-off .mpf-source::before, .match-publish-flight .is-notifications-off .mpf-source::after { animation: none; }
.match-publish-flight .is-notifications-off .mpf-source-signal { display: none; }

.match-publish-flight .mpf-footer { position: relative; z-index: 2; width: min(100%, 402px); }
.match-publish-flight .mpf-status { display: flex; align-items: center; gap: 13px; min-height: 76px; padding: 15px 17px; border: 1px solid #b9e1ca1a; border-radius: 18px; background: #f0fff606; box-shadow: inset 0 1px #ffffff03; text-align: left; }
.match-publish-flight .mpf-status-icon { flex: 0 0 32px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #b9e1ca1a; border-radius: 50%; color: #b4f4cb !important; background: #c5ffdf06; }
.match-publish-flight .mpf-status-icon svg { width: 18px; height: 18px; }
.match-publish-flight .mpf-status-spinner { display: block; width: 15px; height: 15px; border: 1.5px solid #b4f4cb2e; border-top-color: #b4f4cb; border-radius: 50%; animation: mpf-spin 1100ms linear infinite; }
.match-publish-flight .mpf-status-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.match-publish-flight .mpf-status-title { color: #e7f6ed !important; font-size: 12px !important; font-weight: 650; line-height: 1.25; }
.match-publish-flight .mpf-status-description { color: #9fb9aa !important; font-size: 10px !important; font-weight: 400; line-height: 1.5; }
.match-publish-flight .mpf-note { display: flex; align-items: center; justify-content: center; gap: 6px; max-width: 345px; margin: 16px auto 0; color: #91ac9b !important; font-size: 9px !important; font-weight: 400; line-height: 1.5; text-wrap: balance; }
.match-publish-flight .mpf-note > span { color: inherit !important; font-size: inherit !important; }
.match-publish-flight .mpf-note svg { width: 12px; height: 12px; opacity: .85; }
.match-publish-flight[data-outcome="error"] .mpf-status { border-color: #f3b8a42b; }
.match-publish-flight[data-outcome="error"] .mpf-status-icon { color: #ffcaad !important; border-color: #f3b8a42b; }
.match-publish-flight[data-outcome="error"] .mpf-role::after, .match-publish-flight[data-outcome="error"] .mpf-source::before, .match-publish-flight[data-outcome="error"] .mpf-source::after { animation: none; }
.match-publish-flight[data-outcome="error"] .mpf-route-packet, .match-publish-flight[data-outcome="error"] .mpf-route-light { display: none; }
.match-publish-flight[data-outcome="error"] .mpf-network { opacity: .6; }

@keyframes mpf-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mpf-packet { 0% { stroke-dashoffset: 0; opacity: 0; } 10% { opacity: 1; } 76% { opacity: 1; } 88%, 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes mpf-origin { 0% { transform: scale(.99); opacity: 0; } 8% { opacity: .6; } 62%, 100% { transform: scale(1.24); opacity: 0; } }
@keyframes mpf-receive { 0%, 62% { opacity: 0; } 78% { opacity: .65; } 98%, 100% { opacity: 0; } }
@keyframes mpf-spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
    dialog.match-publish-flight { padding-top: max(25px, env(safe-area-inset-top)); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
    .match-publish-flight .mpf-eyebrow { gap: 7px; margin-bottom: 20px; font-size: 8px !important; }
    .match-publish-flight .mpf-title { max-width: 320px; font-size: 31px !important; }
    .match-publish-flight .mpf-description { max-width: 300px; margin-top: 13px; font-size: 11px !important; }
    .match-publish-flight .mpf-network { aspect-ratio: 1.13; margin-top: 17px; margin-bottom: 21px; }
    .match-publish-flight .mpf-role { min-height: 76px; padding: 9px 5px 8px; border-radius: 15px; }
    .match-publish-flight .mpf-role-icon { width: 25px; height: 25px; margin-bottom: 4px; }
    .match-publish-flight .mpf-role-icon svg { width: 22px; height: 22px; }
    .match-publish-flight .mpf-role-label { font-size: 10px !important; }
    .match-publish-flight .mpf-role-receipt { margin-top: 3px; font-size: 7px !important; }
    .match-publish-flight .mpf-source { width: 136px; min-height: 121px; padding: 14px 8px 12px; border-radius: 20px; }
    .match-publish-flight .mpf-source-icon { width: 32px; height: 32px; margin-bottom: 9px; border-radius: 10px; }
    .match-publish-flight .mpf-source-icon svg { width: 23px; height: 23px; }
    .match-publish-flight .mpf-source-kicker { font-size: 6px !important; }
    .match-publish-flight .mpf-source-title { margin-top: 4px; font-size: 17px !important; }
    .match-publish-flight .mpf-source-venue { font-size: 8px !important; }
    .match-publish-flight .mpf-source-signal { width: 27px; height: 27px; }
    .match-publish-flight .mpf-status { min-height: 74px; padding: 13px 14px; gap: 11px; border-radius: 16px; }
    .match-publish-flight .mpf-status-title { font-size: 11px !important; }
    .match-publish-flight .mpf-status-description { font-size: 9px !important; }
    .match-publish-flight .mpf-note { margin-top: 15px; font-size: 8px !important; }
}

@media (max-width: 350px) {
    .match-publish-flight .mpf-title { font-size: 28px !important; }
    .match-publish-flight .mpf-network { aspect-ratio: 1 / 1; margin-top: 12px; margin-bottom: 14px; }
    .match-publish-flight .mpf-source { width: 124px; min-height: 111px; padding: 11px 7px; }
    .match-publish-flight .mpf-source-title { font-size: 16px !important; }
    .match-publish-flight .mpf-source-kicker { font-size: 5.5px !important; letter-spacing: .08em; }
    .match-publish-flight .mpf-role { width: 72px; min-height: 72px; }
    .match-publish-flight .mpf-role-label { font-size: 9px !important; }
    .match-publish-flight .mpf-role-receipt { font-size: 6.5px !important; }
}

@media (max-height: 700px) and (min-width: 481px) {
    dialog.match-publish-flight { padding-block: 22px; }
    .match-publish-flight .mpf-eyebrow { margin-bottom: 12px; }
    .match-publish-flight .mpf-title { font-size: 32px !important; }
    .match-publish-flight .mpf-description { margin-top: 8px; font-size: 11px !important; }
    .match-publish-flight .mpf-network { max-width: 425px; margin-block: 0 14px; }
    .match-publish-flight .mpf-source { width: 154px; min-height: 126px; padding-block: 12px; }
    .match-publish-flight .mpf-role { min-height: 79px; padding-top: 8px; }
    .match-publish-flight .mpf-status { min-height: 66px; padding-block: 11px; }
    .match-publish-flight .mpf-note { margin-top: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .match-publish-flight .mpf-panel,
    .match-publish-flight .mpf-route-light,
    .match-publish-flight .mpf-route-packet,
    .match-publish-flight .mpf-source::before,
    .match-publish-flight .mpf-source::after,
    .match-publish-flight .mpf-role::after,
    .match-publish-flight .mpf-status-spinner { animation: none !important; }
    .match-publish-flight .mpf-route-packet { stroke-dasharray: 3 10; opacity: .7; }
    .match-publish-flight .mpf-route-light { display: none; }
}
