/* =========================================================
   CITY MISSION
   ACTIVE MISSION / RACE
   ========================================================= */


/* =========================================================
   MISSION SCREEN
   ========================================================= */

.mission-screen {
    max-width: 760px;
    margin: 0 auto;
    padding: 45px 20px 90px;
}


/* =========================================================
   MISSION STATUS
   ========================================================= */

.mission-status {
    margin-bottom: 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}


.mission-status span {
    color: #858b94;

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* =========================================================
   CLUE CARD
   ========================================================= */

.clue-card {
    padding: 28px 22px;

    background: #ffffff;

    border: 1px solid #e5ded4;
    border-top: 6px solid #f6c445;

    border-radius: 8px;

    box-shadow:
        0 10px 30px rgba(24, 49, 83, 0.08);
}


.clue-type {
    color: #e39318;
}


.clue-card h1 {
    color: #183153;
}


.clue-text {
    color: #41566d;
}


.challenge {
    background: #fff3cf;

    border: 0;
    border-left: 5px solid #f6c445;

    color: #183153;
}


/* =========================================================
   MISSION CONTROLS
   ========================================================= */

.mission-controls {
    margin: 25px 0;

    display: flex;

    gap: 10px;
}


.mission-control-btn {
    min-height: 52px;

    flex: 1;

    padding: 12px 15px;

    border: 1px solid #ccd7de;
    border-radius: 6px;

    background: #f4f7f8;
    color: #183153;

    cursor: pointer;

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        border-color 0.15s ease,
        color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}


.mission-control-btn:hover {
    background: #ffffff;

    border-color: #20a39e;
    color: #16817d;

    transform: translateY(-1px);
}


/* =========================================================
   HINT
   ========================================================= */

.hint-panel {
    background: #ddf3f5;

    border: 1px solid #a9dfe2;
    border-left: 5px solid #20a39e;
}


.hint-label {
    color: #16817d;
}


.hint-panel p:last-child {
    color: #294e5a;
}


.hint-panel[hidden] {
    display: none;
}


/* =========================================================
   PHOTO CHALLENGE
   ========================================================= */

.photo-challenge {
    margin-top: 30px;
    padding-top: 30px;

    border-top: 1px solid #e3e8eb;
}


.photo-challenge h3 {
    margin-bottom: 8px;
}


.photo-challenge > p:not(.eyebrow) {
    margin: 0 0 20px;

    color: #7b8997;

    font-size: 0.9rem;
    line-height: 1.6;
}


/* =========================================================
   PHOTO INPUT
   ========================================================= */

#racePhoto {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    opacity: 0;
}


.photo-upload-button {
    width: 100%;
    min-height: 70px;

    margin-bottom: 18px;
    padding: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px dashed #9ccfce;
    border-radius: 8px;

    background: #eef8f8;
    color: #16817d;

    cursor: pointer;

    font-size: 0.78rem;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}


.photo-upload-button:hover {
    background: #e1f4f3;
    border-color: #20a39e;

    transform: translateY(-1px);
}


/* =========================================================
   PHOTO PREVIEW
   ========================================================= */

.photo-preview {
    margin-bottom: 18px;

    overflow: hidden;

    background: #f4f7f8;

    border: 1px solid #dce4e8;
    border-radius: 8px;
}


.photo-preview[hidden] {
    display: none;
}


.photo-preview img {
    width: 100%;
    max-height: 450px;

    display: block;

    object-fit: contain;
}


.photo-challenge .btn {
    width: 100%;
}


.photo-challenge .btn:disabled {
    opacity: 0.35;

    cursor: not-allowed;
}


/* =========================================================
   ANSWER FORM
   ========================================================= */

.answer-form {
    margin-top: 30px;
    padding-top: 30px;

    border-top: 1px solid #292d34;
}


.answer-form label {
    margin-bottom: 15px;
}


.answer-form .btn {
    width: 100%;
}


/* =========================================================
   PIT STOP
   ========================================================= */

.pitstop {
    margin-top: 30px;
    padding: 25px;

    background: #0d0f12;

    border: 1px solid #343941;
    border-top: 4px solid #f4b942;

    text-align: center;
}


.pitstop h2 {
    margin-bottom: 10px;

    color: #ffffff;

    font-size: 1.8rem;
}


.pitstop p {
    margin-bottom: 20px;

    color: #a7adb6;
}


.pitstop .btn {
    width: 100%;
}


/* =========================================================
   PAUSE OVERLAY
   ========================================================= */

.pause-overlay {
    position: fixed;
    inset: 0;

    z-index: 3000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(24, 49, 83, 0.72);
}


.pause-overlay[hidden] {
    display: none;
}


/* =========================================================
   PAUSE CARD
   ========================================================= */

.pause-box {
    width: 100%;
    max-width: 500px;

    padding: 38px 30px;

    background: #ffffff;

    border: 1px solid #dce4e8;
    border-top: 5px solid #20a39e;
    border-radius: 10px;

    text-align: center;

    box-shadow:
        0 25px 70px rgba(24, 49, 83, 0.28);
}


.pause-box .eyebrow {
    margin-bottom: 18px;

    color: #16817d;
}


.pause-box h2 {
    margin-bottom: 18px;

    color: #183153;

    font-size: 2.2rem;
    line-height: 1.1;
}


.pause-box > p:not(.eyebrow) {
    max-width: 400px;

    margin: 0 auto 28px;

    color: #52677c;

    line-height: 1.7;
}


.pause-box .btn {
    width: 100%;
}


.pause-box .btn-primary {
    background: #f45b4f;
    border-color: #f45b4f;

    color: #ffffff;
}


.pause-box .btn-primary:hover {
    background: #e94d42;
    border-color: #e94d42;

    box-shadow: 0 5px 0 #183153;
}


/*
 * Prevent the mission behind the pause screen
 * from scrolling.
 */

body.race-is-paused {
    overflow: hidden;
}


/* =========================================================
   MISSION COMPLETE
   ========================================================= */

.mission-complete {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto;
    padding: 28px 20px 60px;
}


/* =========================================================
   COMPLETE HERO
   ========================================================= */

.mission-complete-hero {
    max-width: 720px;

    margin: 0 auto;

    text-align: center;
}


.mission-complete-badge {
    margin-bottom: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color: #16817d;

    font-size: 0.72rem;
    font-weight: 900;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}


.mission-complete-check {
    width: 25px;
    height: 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 25px;

    border-radius: 50%;

    background: #20a39e;
    color: #ffffff;

    font-size: 0.85rem;

    letter-spacing: 0;
}


.mission-complete h1 {
    margin: 0 0 6px;

    color: #183153;

    font-size: clamp(2.8rem, 6vw, 4rem);
    line-height: 0.95;

    letter-spacing: -0.045em;
}


.mission-players {
    margin: 0 0 10px;

    color: #8797a5 !important;

    font-size: 1rem;
}


.mission-complete-name {
    margin: 0;

    color: #657789 !important;

    font-size: 0.95rem;
}


.mission-complete-name strong {
    color: #183153;
}

/* =========================================================
   MISSION COMPLETE STATS
   ========================================================= */

.mission-complete-stats {
    margin: 14px auto 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 22px;
}


.mission-stat {
    position: relative;

    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;

    box-shadow: none;
}


.mission-stat + .mission-stat::before {
    content: "";

    position: absolute;

    left: -11px;
    top: 50%;

    width: 3px;
    height: 3px;

    transform: translateY(-50%);

    border-radius: 50%;

    background: #b7b1a8;
}


.mission-stat-value,
.mission-stat-label {
    display: inline;
}


.mission-stat-value {
    margin: 0 4px 0 0;

    color: #183153;

    font-size: 0.95rem;
    font-weight: 900;
}


.mission-stat-label {
    color: #929eaa;

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* =========================================================
   MISSION COMPLETE ACTIONS
   ========================================================= */

.mission-complete-actions {
    width: 100%;
    max-width: 230px;

    margin: 12px auto 0;
}


.mission-complete-actions .btn {
    width: 100%;

    white-space: nowrap;
}


/* =========================================================
   SAVED RACE PHOTO
   ========================================================= */

.saved-race-photo {
    max-width: 500px;

    margin-top: 20px;

    overflow: hidden;

    background: #f4f7f8;

    border: 1px solid #dce4e8;
    border-radius: 8px;
}


.saved-race-photo img {
    width: 100%;
    height: auto;
    max-height: 350px;

    display: block;

    object-fit: cover;
}


.saved-race-photo-status {
    padding: 12px 16px;

    background: #eaf7f3;

    border-top: 1px solid #b8ded5;

    color: #16817d;

    font-size: 0.72rem;
    font-weight: 900;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =========================================================
   MISSION COMPLETE GALLERY
   ========================================================= */

.mission-gallery {
    width: 100%;

    margin: 24px auto 0;
    padding-top: 22px;

    border-top: 1px solid #e4ddd2;

    text-align: left;
}


/* ---------------------------------------------------------
   GALLERY HEADING
   --------------------------------------------------------- */

.mission-gallery-heading {
    margin-bottom: 18px;
}


.mission-gallery-heading h2 {
    margin: 5px 0 8px;

    color: #183153;

    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.05;
}


.mission-gallery-heading p:not(.eyebrow) {
    margin: 0;

    color: #929eaa;

    font-size: 1rem;
}


/* ---------------------------------------------------------
   GALLERY GRID
   --------------------------------------------------------- */

.mission-gallery-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;
}


/* ---------------------------------------------------------
   GALLERY PHOTO
   --------------------------------------------------------- */

.mission-gallery-item {
    position: relative;

    width: 100%;
    padding: 0;

    overflow: hidden;

    border: 1px solid #dce3e7;
    border-radius: 8px;

    background: #ffffff;

    cursor: pointer;

    text-align: left;

    box-shadow:
        0 4px 14px rgba(24, 49, 83, 0.06);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


.mission-gallery-item:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(24, 49, 83, 0.12);
}


/* ---------------------------------------------------------
   GALLERY IMAGE
   --------------------------------------------------------- */

.mission-gallery-item img {
    display: block;

    width: 100%;
    height: 220px;

    object-fit: cover;
}


/* ---------------------------------------------------------
   GALLERY CAPTION
   --------------------------------------------------------- */

.mission-gallery-caption {
    min-height: 70px;

    padding: 14px 16px;

    display: flex;
    flex-direction: column;

    gap: 3px;

    background: #ffffff;
}


.mission-gallery-caption strong {
    color: #e58a00;

    font-size: 0.7rem;
    font-weight: 900;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.mission-gallery-caption span {
    color: #183153;

    font-size: 0.95rem;
    font-weight: 700;
}


/* =========================================================
   MISSION GALLERY LIGHTBOX
   ========================================================= */

.gallery-lightbox {
    position: fixed;
    inset: 0;

    z-index: 1000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;
}


.gallery-lightbox.is-open {
    display: flex;
}


/* ---------------------------------------------------------
   LIGHTBOX BACKDROP
   --------------------------------------------------------- */

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(24, 49, 83, 0.88);
}


/* ---------------------------------------------------------
   LIGHTBOX WINDOW
   --------------------------------------------------------- */

.gallery-lightbox-window {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1050px;
    max-height: calc(100vh - 40px);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border-radius: 10px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35);
}


/* ---------------------------------------------------------
   LIGHTBOX PHOTO
   --------------------------------------------------------- */

.gallery-lightbox-photo {
    min-height: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef6f5;
}


.gallery-lightbox-photo img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: calc(100vh - 180px);

    object-fit: contain;
}


/* ---------------------------------------------------------
   LIGHTBOX CAPTION
   --------------------------------------------------------- */

.gallery-lightbox-caption {
    position: relative;

    padding: 18px 75px 18px 22px;

    display: flex;
    flex-direction: column;

    background: #ffffff;
}


#galleryLightboxLeg {
    margin-bottom: 3px;

    color: #e58a00;

    font-size: 0.7rem;
    font-weight: 900;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


#galleryLightboxTitle {
    color: #183153;

    font-size: 1.1rem;
}


#galleryLightboxCount {
    position: absolute;

    right: 22px;
    bottom: 20px;

    color: #929eaa;

    font-size: 0.8rem;
}


/* ---------------------------------------------------------
   LIGHTBOX CLOSE
   --------------------------------------------------------- */

.gallery-lightbox-close {
    position: absolute;

    z-index: 5;

    top: 12px;
    right: 12px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.92);
    color: #183153;

    cursor: pointer;

    font-size: 2rem;
    line-height: 1;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.18);
}


/* ---------------------------------------------------------
   LIGHTBOX NAVIGATION
   --------------------------------------------------------- */

.gallery-lightbox-nav {
    position: absolute;

    z-index: 5;

    top: 50%;

    width: 52px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: 0;

    background: rgba(255, 255, 255, 0.9);
    color: #183153;

    cursor: pointer;

    font-size: 1.8rem;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.15);
}


.gallery-lightbox-prev {
    left: 14px;

    border-radius: 6px;
}


.gallery-lightbox-next {
    right: 14px;

    border-radius: 6px;
}


.gallery-lightbox-nav:hover,
.gallery-lightbox-close:hover {
    background: #ffffff;
}


/* ---------------------------------------------------------
   PREVENT PAGE SCROLL
   --------------------------------------------------------- */

body.gallery-lightbox-open {
    overflow: hidden;
}


/* =========================================================
   TABLET / DESKTOP
   ========================================================= */

@media (min-width: 600px) {

    .clue-card {
        padding: 35px;
    }

}


/* =========================================================
   LARGE SCREEN
   ========================================================= */

@media (min-width: 900px) {

    .mission-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }


    .mission-gallery-item img {
        height: 230px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    /* -----------------------------------------------------
       MISSION SCREEN
       ----------------------------------------------------- */

    .mission-screen {
        padding: 30px 16px 60px;
    }


    /* -----------------------------------------------------
       MISSION COMPLETE
       ----------------------------------------------------- */

    .mission-complete {
        padding: 22px 16px 45px;
    }


    .mission-complete-badge {
        margin-bottom: 10px;
    }


    .mission-complete h1 {
        font-size: clamp(2.5rem, 13vw, 3.6rem);
    }


    .mission-players {
        font-size: 0.95rem;
    }


    .mission-complete-stats {
        margin-top: 15px;

        gap: 8px;
    }


    .mission-stat {
        padding: 10px 8px;
    }


    .mission-complete-actions {
        margin-top: 13px;
    }


    /* -----------------------------------------------------
       MISSION GALLERY
       ----------------------------------------------------- */

    .mission-gallery {
        margin-top: 22px;
        padding-top: 20px;
    }


    .mission-gallery-grid {
        grid-template-columns: 1fr;
    }


    .mission-gallery-item img {
        height: 240px;
    }


    /* -----------------------------------------------------
       LIGHTBOX
       ----------------------------------------------------- */

    .gallery-lightbox {
        padding: 10px;
    }


    .gallery-lightbox-window {
        max-height: calc(100vh - 20px);
    }


    .gallery-lightbox-photo img {
        max-height: calc(100vh - 150px);
    }


    .gallery-lightbox-nav {
        width: 44px;
        height: 58px;

        font-size: 1.4rem;
    }


    .gallery-lightbox-prev {
        left: 6px;
    }


    .gallery-lightbox-next {
        right: 6px;
    }


    .gallery-lightbox-caption {
        padding: 14px 60px 14px 16px;
    }


    #galleryLightboxTitle {
        font-size: 1rem;
    }


    #galleryLightboxCount {
        right: 16px;
        bottom: 16px;
    }

}

/* =========================================================
   MISSION SHARE
   ========================================================= */

.mission-complete-link {
    display: inline-block;

    margin-top: 10px;

    color: #657789;

    font-size: 0.75rem;
    font-weight: 800;

    letter-spacing: 0.06em;
    text-transform: uppercase;

    text-decoration: none;
}


.mission-complete-link:hover {
    color: #183153;
}


.mission-share-panel {
    max-width: 650px;

    margin: 30px auto 0;
    padding: 25px;

    background: #ffffff;

    border: 1px solid #ded8cf;
    border-radius: 10px;

    text-align: left;

    box-shadow:
        0 10px 30px rgba(24, 49, 83, 0.08);
}


.mission-share-panel[hidden] {
    display: none;
}


.mission-share-panel h2 {
    margin: 4px 0 5px;

    color: #183153;

    font-size: 1.6rem;
}


.mission-share-intro {
    margin: 0 0 20px;

    color: #7b8997 !important;

    font-size: 0.9rem;
}


/* =========================================================
   SHARE PHOTO PICKER
   ========================================================= */

.mission-share-photos {
    margin-bottom: 20px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 10px;
}


.mission-share-photo {
    cursor: pointer;
}


.mission-share-photo input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}


.mission-share-photo-image {
    position: relative;

    display: block;

    overflow: hidden;

    border: 3px solid transparent;
    border-radius: 7px;
}


.mission-share-photo-image img {
    width: 100%;
    height: 110px;

    display: block;

    object-fit: cover;
}


.mission-share-check {
    position: absolute;

    top: 7px;
    right: 7px;

    width: 25px;
    height: 25px;

    display: none;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #20a39e;
    color: #ffffff;

    font-size: 0.8rem;
    font-weight: 900;
}


.mission-share-photo input:checked +
.mission-share-photo-image {
    border-color: #20a39e;
}


.mission-share-photo input:checked +
.mission-share-photo-image
.mission-share-check {
    display: flex;
}


.mission-share-photo-label {
    display: block;

    margin-top: 5px;

    color: #657789;

    font-size: 0.68rem;
    font-weight: 800;

    text-transform: uppercase;
}


.mission-share-panel > .btn {
    width: 100%;
}


.mission-share-error {
    margin: 12px 0 0 !important;

    color: #c9473e !important;

    font-size: 0.85rem;
}


/* =========================================================
   SHARE MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .mission-share-panel {
        margin-top: 22px;
        padding: 18px;
    }


    .mission-share-photos {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .mission-share-photo-image img {
        height: 105px;
    }

}

/* =========================================================
   PUBLIC SHARED MISSION
   ========================================================= */

.shared-mission .mission-complete-hero {
    max-width: 720px;
}


/* =========================================================
   PUBLIC SHARE ACTIONS
   ========================================================= */

.public-share-actions {
    margin: 16px auto 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
}


.public-share-button {
    min-height: 40px;

    padding: 8px 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    background: #ffffff;
    color: #183153;

    border: 1px solid #d7dfe3;
    border-radius: 6px;

    cursor: pointer;

    font-size: 0.7rem;
    font-weight: 900;

    letter-spacing: 0.06em;
    text-transform: uppercase;

    transition:
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}


.public-share-button:hover {
    border-color: #20a39e;
    color: #16817d;

    transform: translateY(-1px);
}


.public-share-button span:first-child {
    font-size: 1rem;

    line-height: 1;
}


/* =========================================================
   EMPTY PUBLIC GALLERY
   ========================================================= */

.shared-mission-empty {
    margin-top: 24px;
    padding-top: 22px;

    border-top: 1px solid #e4ddd2;

    text-align: center;
}


.shared-mission-empty h2 {
    margin: 5px 0 8px;

    color: #183153;

    font-size: 2rem;
}


.shared-mission-empty > p:not(.eyebrow) {
    margin: 0;

    color: #929eaa;
}


/* =========================================================
   GATHER 'N GO CTA
   ========================================================= */

.shared-mission-cta {
    max-width: 650px;

    margin: 55px auto 10px;
    padding: 35px 30px;

    background: #ffffff;

    border: 1px solid #ded8cf;
    border-top: 4px solid #f45b4f;
    border-radius: 8px;

    text-align: center;

    box-shadow:
        0 8px 25px rgba(24, 49, 83, 0.06);
}


.shared-mission-cta h2 {
    margin: 5px 0 10px;

    color: #183153;

    font-size: 1.8rem;
}


.shared-mission-cta > p:not(.eyebrow) {
    max-width: 480px;

    margin: 0 auto 20px;

    color: #657789;

    font-size: 0.95rem;
    line-height: 1.6;
}


/* =========================================================
   PUBLIC SHARE MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .public-share-actions {
        margin-top: 14px;
    }


    .public-share-button {
        flex: 1;

        max-width: 150px;
    }


    .shared-mission-cta {
        margin-top: 35px;
        padding: 28px 20px;
    }


    .shared-mission-cta h2 {
        font-size: 1.55rem;
    }

}

/* =========================================================
   SOCIAL SHARE BUTTONS
   ========================================================= */

.public-share-actions {
    margin: 16px auto 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
}


.public-share-button {
    min-height: 42px;

    padding: 8px 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    background: #ffffff;
    color: #183153;

    border: 1px solid #d7dfe3;
    border-radius: 6px;

    cursor: pointer;

    font-size: 0.7rem;
    font-weight: 900;

    letter-spacing: 0.06em;
    text-transform: uppercase;

    transition:
        border-color 0.15s ease,
        color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}


.public-share-button:hover {
    border-color: #20a39e;
    color: #16817d;

    transform: translateY(-1px);
}


/* Facebook */

.facebook-share-button {
    background: #1877f2;
    border-color: #1877f2;
    color: #ffffff;
}


.facebook-share-button:hover {
    background: #166fe5;
    border-color: #166fe5;
    color: #ffffff;
}


.facebook-icon {
    width: 20px;
    height: 20px;

    display: inline-flex;
    align-items: flex-end;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background: #ffffff;
    color: #1877f2;

    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 19px;

    text-transform: lowercase;
}


/* Generic share */

.native-share-icon,
.copy-link-icon {
    font-size: 1rem;
    line-height: 1;
}


/* Mobile */

@media (max-width: 600px) {

    .public-share-actions {
        width: 100%;

        gap: 6px;
    }


    .public-share-button {
        min-width: 0;

        flex: 1;

        padding-left: 8px;
        padding-right: 8px;

        font-size: 0.65rem;
    }

}

/* =========================================================
   PHOTO SAVE ACTION
   ========================================================= */

.photo-save-btn {
    width: 100%;

    background: #20a39e;
    border: 1px solid #20a39e;

    color: #ffffff;
}


.photo-save-btn:hover {
    background: #16817d;
    border-color: #16817d;

    color: #ffffff;
}


.photo-save-btn:disabled {
    opacity: 0.35;

    cursor: not-allowed;
}

.photo-challenge + form {
    margin-top: 22px;
}

.photo-preview {
    position: relative;
}

.photo-upload-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 12px;

    font-weight: 700;
}

.photo-upload-spinner {
    width: 22px;
    height: 22px;

    border: 3px solid rgba(0, 0, 0, 0.15);
    border-top-color: currentColor;
    border-radius: 50%;

    animation: photo-spin 0.8s linear infinite;
}

@keyframes photo-spin {
    to {
        transform: rotate(360deg);
    }
}

.photo-upload-button.is-uploading {
    pointer-events: none;
    opacity: 0.6;
}

.saved-race-photo {
    position: relative;
}

.delete-race-photo-form {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
}

.delete-race-photo-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: #dc3545;
    color: #fff;

    font-size: 26px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.delete-race-photo-btn:hover {
    background: #b02a37;
}

.delete-race-photo-btn:active {
    transform: scale(0.94);
}

.photo-optional-note {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-top: 6px;
}

.my-mission-team {
    margin: -6px 0 12px;
    color: #8a94a3;
    font-size: 0.88rem;
    line-height: 1.4;
}

.my-mission-team-name {
    font-weight: 600;
}

.my-mission-team-separator {
    padding: 0 3px;
}

.mission-gallery-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.mission-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Legs where no photo was captured */

.mission-gallery-item-placeholder .mission-gallery-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px;
    background: #f7f7f7;
}

.mission-gallery-item-placeholder .mission-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mission-gallery-edit-uploading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mission-gallery-edit-uploading[hidden] {
    display: none;
}

.mission-gallery-upload-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: mission-gallery-spin 0.7s linear infinite;
}

.mission-gallery-photo-button:disabled {
    cursor: wait;
    opacity: 0.75;
}

@keyframes mission-gallery-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Finished page inline editing */

.mission-finished-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mission-finished-pencil {
    order: -1;
    flex: 0 0 auto;

    border: 0;
    background: none;
    padding: 4px;

    font-size: 16px;
    line-height: 1;
    cursor: pointer;

    opacity: 0.6;
}

.mission-finished-pencil:hover {
    opacity: 1;
}

.mission-finished-display h1,
.mission-finished-display .mission-players {
    margin-top: 0;
    margin-bottom: 0;
}
