/* ==========================================================
   CAMPAIGN HEADER
   ========================================================== */

.campaign-header {

    position: relative;

    z-index: 20;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    width: 100%;

    min-height: 78px;

    padding: 8px 22px;

    box-sizing: border-box;

    background:
        linear-gradient(
            180deg,
            rgba(20, 18, 15, .98),
            rgba(13, 12, 10, .98)
        );

    border-bottom:
        1px solid rgba(190, 160, 95, .30);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .38);

}

/* =========================================================
   LANCEMENT DE LA CAMPAGNE
   ========================================================= */

.campaign-header-launch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 6px;

    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);

    letter-spacing: 0.02em;
}

.campaign-header-launch-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
}

.campaign-header-launch strong {
    color: #b89562;
    font-weight: 700;
    white-space: nowrap;
}

/* ==========================================================
   GAUCHE
   ========================================================== */

.campaign-header-left {

    display: flex;

    align-items: center;

    gap: 20px;

    flex-shrink: 0;

}


/* ==========================================================
   LOGO
   ========================================================== */

.campaign-header-logo {

    display: flex;

    align-items: center;

    width: 175px;

    flex-shrink: 0;

    text-decoration: none;

}

.campaign-header-logo img {

    display: block;

    width: 100%;

    height: auto;

    max-height: 58px;

    object-fit: contain;

    object-position: left center;

}


/* ==========================================================
   RETOUR
   ========================================================== */

.campaign-header-back {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    height: 38px;

    padding: 0 13px;

    box-sizing: border-box;

    border:
        1px solid rgba(190, 160, 95, .22);

    border-radius: 7px;

    background:
        rgba(190, 160, 95, .04);

    color: #a69d8e;

    font-family: "Cinzel", serif;

    font-size: .65rem;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .15s ease;

}

.campaign-header-back:hover {

    background:
        rgba(190, 160, 95, .10);

    border-color:
        rgba(190, 160, 95, .45);

    color: #d8c28f;

    transform: translateX(-1px);

}

.campaign-header-back-icon {

    color: #bea05f;

    font-size: 1rem;

}


/* ==========================================================
   CAMPAGNE
   ========================================================== */

.campaign-header-campaign {

    display: flex;

    flex-direction: column;

    justify-content: center;

    min-width: 220px;

    margin-left: 25px;

    padding: 0 25px;

}

.campaign-header-campaign-kicker {

    margin-bottom: 3px;

    color: #bea05f;

    font-size: .58rem;

    font-weight: 600;

    letter-spacing: .18em;

}

.campaign-header-campaign-name {

    overflow: hidden;

    color: #eee6d8;

    font-family: "Cinzel", serif;

    font-size: 1.35rem;

    font-weight: 400;

    line-height: 1.2;

    text-overflow: ellipsis;

    white-space: nowrap;

}


/* ==========================================================
   STATISTIQUES
   ========================================================== */

.campaign-header-stats {

    display: flex;

    align-items: stretch;

    margin-left: 20px;

    border-left:
        1px solid rgba(190, 160, 95, .18);

}


.campaign-header-stat {

    display: flex;

    align-items: center;

    gap: 9px;

    min-width: 95px;

    padding: 0 15px;

    border-right:
        1px solid rgba(190, 160, 95, .12);

}


.campaign-header-stat-icon {

    color: #bea05f;

    font-size: 1.05rem;

    line-height: 1;

}


.campaign-header-stat-content {

    display: flex;

    flex-direction: column;

    gap: 2px;

}


.campaign-header-stat-content strong {

    color: #eee6d8;

    font-family: "Cinzel", serif;

    font-size: 1.05rem;

    font-weight: 400;

    line-height: 1;

}


.campaign-header-stat-content strong small {

    color: #777167;

    font-family: inherit;

    font-size: .72rem;

}


.campaign-header-stat-content span {

    color: #817a70;

    font-size: .57rem;

    text-transform: uppercase;

    letter-spacing: .08em;

}


/* ==========================================================
   ACTION
   ========================================================== */

.campaign-header-actions {
    margin-left: auto;
    flex-shrink: 0;
}


.campaign-header-finish {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 42px;

    padding: 0 18px;

    border:
        1px solid rgba(190, 160, 95, .65);

    border-radius: 7px;

    background:
        linear-gradient(
            180deg,
            #8f6b32,
            #6e4e20
        );

    color: #f4e7cc;

    font-family: "Cinzel", serif;

    font-size: .65rem;

    letter-spacing: .04em;

    cursor: pointer;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, .25);

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .15s ease,
        box-shadow .2s ease;

}


.campaign-header-finish:hover {

    background:
        linear-gradient(
            180deg,
            #a98240,
            #805e29
        );

    border-color:
        #d8b36a;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, .35);

    transform:
        translateY(-1px);

}


.campaign-header-finish-icon {

    font-size: .9rem;

}

/* ==========================================================
   TOUR / PHASE / ÉQUIPE ACTIVE
   ========================================================== */

.campaign-header-turn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-width: 390px;
    flex: 1 1 auto;
    min-height: 88px;
}

.campaign-turn-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    text-align: center;
    flex: 0 0 auto;
}

.campaign-turn-main .turn-label {
    position: static !important;
    top: auto;
    left: auto;
    transform: none !important;
    margin: 0 0 3px;
    color: #d8b36a;
    font-family: "Cinzel", serif;
    font-size: .60rem;
    font-weight: 600;
    letter-spacing: .18em;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
}

.campaign-turn-main .turn-label-last {
    color: #c96d55;
}

.campaign-turn-main .turn-number {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    font-family: "Cinzel", serif;
    font-size: 2.55rem;
    font-weight: 500;
    line-height: 1;
    color: #f4efe4;
    text-shadow:
        0 0 10px rgba(0, 0, 0, .85),
        0 1px 2px rgba(0, 0, 0, .8);
}

.campaign-turn-main .turn-total {
    margin: 0;
    font-family: "Cinzel", serif;
    font-size: .82rem;
    color: #b89c63;
    opacity: .90;
}

.campaign-turn-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    min-width: 245px;
    padding-left: 20px;
    border-left: 1px solid rgba(184, 156, 99, .22);
}

.campaign-turn-phase {
    display: flex;
    align-items: center;
    gap: 10px;
}

.campaign-turn-phase-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    border: 1px solid rgba(184, 156, 99, .28);
    border-radius: 8px;
    background: rgba(184, 156, 99, .07);
    font-size: 1rem;
    line-height: 1;
}

.campaign-turn-phase strong {
    display: block;
    color: #eee6d8;
    font-family: "Cinzel", serif;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.campaign-turn-phase div span {
    display: block;
    margin-top: 3px;
    color: #817a70;
    font-size: .60rem;
    line-height: 1.2;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.campaign-turn-active-team {
    display: flex;
    align-items: center;
    gap: 9px;
}

.campaign-turn-active-team img {
    display: block;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
}

.campaign-turn-active-team small,
.campaign-turn-deadline small {
    display: block;
    margin-bottom: 2px;
    color: #817a70;
    font-size: .50rem;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.campaign-turn-active-team strong {
    display: block;
    color: #d8b36a;
    font-family: "Cinzel", serif;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.2;
}

.campaign-turn-phase-combat .campaign-turn-phase-icon {
    border-color: rgba(185, 74, 55, .35);
    background: rgba(185, 74, 55, .08);
}

.campaign-turn-deadline {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.campaign-turn-deadline strong {
    color: #d8b36a;
    font-family: "Cinzel", serif;
    font-size: .70rem;
    font-weight: 500;
}

/* ==========================================================
   STATISTIQUES
   ========================================================== */

.campaign-header-stats {
    display: flex;
    align-items: stretch;
    margin-left: 4px;
    border-left: 1px solid rgba(190, 160, 95, .18);
    flex-shrink: 1;
}

.campaign-header-stat {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 92px;
    padding: 0 13px;
    border-right: 1px solid rgba(190, 160, 95, .12);
}

.campaign-header-stat-icon {
    color: #bea05f;
    font-size: 1.05rem;
    line-height: 1;
}

.campaign-header-stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.campaign-header-stat-content strong {
    color: #eee6d8;
    font-family: "Cinzel", serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1;
}

.campaign-header-stat-content strong small {
    color: #777167;
    font-family: inherit;
    font-size: .72rem;
}

.campaign-header-stat-content span {
    color: #817a70;
    font-size: .57rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ==========================================================
   ACTIONS
   ========================================================== */

.campaign-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.campaign-header-actions form {
    margin: 0;
}

.campaign-header-rules,
.campaign-header-statistics,
.campaign-header-finish {
    box-sizing: border-box;
    white-space: nowrap;
}

.campaign-header-finish {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid rgba(190, 160, 95, .65);
    border-radius: 7px;
    background: linear-gradient(180deg, #8f6b32, #6e4e20);
    color: #f4e7cc;
    font-family: "Cinzel", serif;
    font-size: .65rem;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .25);
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .15s ease,
        box-shadow .2s ease;
}

.campaign-header-finish:hover {
    background: linear-gradient(180deg, #a98240, #805e29);
    border-color: #d8b36a;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .35);
    transform: translateY(-1px);
}

.campaign-header-finish-icon {
    font-size: .9rem;
}

/* ==========================================================
   RÈGLES / STATISTIQUES CAMPAGNE
   ========================================================== */

.campaign-header-rules,
.campaign-header-statistics {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 15px;
    box-sizing: border-box;
    border-radius: 8px;
    font-family: "Cinzel", serif;
    text-decoration: none;
    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .15s ease;
}

.campaign-header-rules {
    border: 1px solid rgba(190, 160, 95, .28);
    background: rgba(190, 160, 95, .045);
    color: #cdb77f;
    font-size: .68rem;
}

.campaign-header-rules:hover {
    background: rgba(190, 160, 95, .10);
    border-color: rgba(190, 160, 95, .45);
    color: #e3cb8a;
    transform: translateY(-1px);
}

.campaign-header-rules-icon {
    font-size: .85rem;
}

.campaign-header-statistics {
    border: 1px solid rgba(190, 160, 95, .55);
    border-radius: 7px;
    background: linear-gradient(
        180deg,
        rgba(190, 160, 95, .16),
        rgba(190, 160, 95, .07)
    );
    color: #e2cb92;
    font-size: .65rem;
}

.campaign-header-statistics:hover {
    background: linear-gradient(
        180deg,
        rgba(190, 160, 95, .24),
        rgba(190, 160, 95, .12)
    );
    border-color: #d8b36a;
    color: #f1d99f;
    transform: translateY(-1px);
}

.campaign-header-statistics-icon {
    font-size: .9rem;
    color: #d8b36a;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1200px) {

    .campaign-header {
        gap: 12px;
        padding: 10px 15px;
    }

    .campaign-header-logo {
        width: 145px;
    }

    .campaign-header-left {
        gap: 10px;
    }

    .campaign-header-back span:last-child {
        display: none;
    }

    .campaign-header-back {
        width: 38px;
        padding: 0;
        justify-content: center;
    }

    .campaign-header-campaign {
        min-width: 145px;
        max-width: 210px;
        padding: 0 12px;
    }

    .campaign-header-turn-content {
        min-width: 320px;
        gap: 13px;
    }

    .campaign-turn-state {
        min-width: 195px;
        padding-left: 14px;
    }

    .campaign-header-stat {
        min-width: 75px;
        padding: 0 9px;
    }

    .campaign-header-stat-icon {
        display: none;
    }

    .campaign-header-finish,
    .campaign-header-rules {
        padding-left: 11px;
        padding-right: 11px;
    }
}

@media (max-width: 950px) {

    .campaign-header {
        min-height: 98px;
    }

    .campaign-header-campaign {
        max-width: 175px;
    }

    .campaign-header-turn-content {
        min-width: 260px;
    }

    .campaign-turn-state {
        min-width: 160px;
    }

    .campaign-turn-active-team,
    .campaign-turn-deadline {
        display: none;
    }

    .campaign-header-stat:nth-child(n+2) {
        display: none;
    }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 700px) {

    .campaign-header {

        display: grid;

        grid-template-columns: auto minmax(0, 1fr) auto;

        grid-template-areas:
            "left campaign actions"
            "turn turn turn";

        align-items: center;

        width: 100%;

        min-height: auto;

        padding: 7px 9px 9px;

        gap: 7px 8px;

    }


    /* ======================================================
       GAUCHE
       ====================================================== */

    .campaign-header-left {

        grid-area: left;

        display: flex;

        align-items: center;

        gap: 5px;

        min-width: 0;

    }


    /* ======================================================
       LOGO
       ====================================================== */

    .campaign-header-logo {

        width: 82px;

        flex-shrink: 0;

    }

    .campaign-header-logo img {

        max-height: 42px;

    }


    /* ======================================================
       RETOUR
       ====================================================== */

    .campaign-header-back {

        width: 34px;

        height: 34px;

        padding: 0;

        justify-content: center;

        border-radius: 6px;

        flex-shrink: 0;

    }

    .campaign-header-back span:last-child {

        display: none;

    }

    .campaign-header-back-icon {

        font-size: .95rem;

    }


    /* ======================================================
       CAMPAGNE
       ====================================================== */

    .campaign-header-campaign {

        grid-area: campaign;

        min-width: 0;

        max-width: none;

        margin-left: 0;

        padding: 0 3px;

        overflow: hidden;

    }

    .campaign-header-campaign-kicker {

        display: block;

        margin-bottom: 2px;

        font-size: .43rem;

        letter-spacing: .12em;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;

    }

    .campaign-header-campaign-name {

        max-width: 100%;

        font-size: .82rem;

        line-height: 1.15;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;

    }


    /* ------------------------------------------------------
       DATE DE LANCEMENT
       ------------------------------------------------------ */

    .campaign-header-launch {

        justify-content: flex-start;

        margin-top: 2px;

        font-size: .47rem;

        line-height: 1.15;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;

    }

    .campaign-header-launch strong {

        font-size: .48rem;

    }

    .campaign-header-launch-icon {

        display: none;

    }


    /* ======================================================
       TOUR / PHASE
       ====================================================== */

    .campaign-header-turn-content {

        grid-area: turn;

        display: flex;

        align-items: center;

        justify-content: center;

        width: 100%;

        min-width: 0;

        min-height: 62px;

        gap: 12px;

        padding-top: 3px;

        border-top: 1px solid rgba(190, 160, 95, .12);

    }


    /* ======================================================
       NUMÉRO DU TOUR
       ====================================================== */

    .campaign-turn-main {

        min-width: 55px;

        flex: 0 0 55px;

    }

    .campaign-turn-main .turn-label {

        margin-bottom: 2px;

        font-size: .43rem;

        letter-spacing: .12em;

    }

    .campaign-turn-main .turn-number {

        font-size: 1.75rem;

    }

    .campaign-turn-main .turn-total {

        font-size: .65rem;

    }


    /* ======================================================
       ÉTAT DU TOUR
       ====================================================== */

    .campaign-turn-state {

        min-width: 0;

        flex: 1 1 auto;

        padding-left: 10px;

        gap: 6px;

        border-left:
            1px solid rgba(184, 156, 99, .22);

    }

    .campaign-turn-phase {

        min-width: 0;

        gap: 7px;

    }

    .campaign-turn-phase-icon {

        width: 27px;

        height: 27px;

        flex: 0 0 27px;

        border-radius: 6px;

        font-size: .82rem;

    }

    .campaign-turn-phase strong {

        font-size: .55rem;

        letter-spacing: .05em;

        white-space: nowrap;

    }

    .campaign-turn-phase div span {

        margin-top: 2px;

        font-size: .48rem;

        letter-spacing: .04em;

        white-space: nowrap;

    }


    /* ======================================================
       ÉQUIPE ACTIVE
       ====================================================== */

    .campaign-turn-active-team {

        display: flex;

        gap: 6px;

    }

    .campaign-turn-active-team img {

        width: 27px;

        height: 27px;

        flex: 0 0 27px;

    }

    .campaign-turn-active-team small {

        margin-bottom: 1px;

        font-size: .42rem;

    }

    .campaign-turn-active-team strong {

        max-width: 150px;

        overflow: hidden;

        text-overflow: ellipsis;

        white-space: nowrap;

        font-size: .58rem;

    }


    /* ======================================================
       DEADLINE
       ====================================================== */

    .campaign-turn-deadline {

        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-top: 1px;
        padding-top: 4px;
        border-top: 1px solid rgba(190, 160, 95, .12);

    }

    .campaign-turn-deadline small {

        margin-bottom: 0;
        font-size: .40rem;
        letter-spacing: .08em;

    }

    .campaign-turn-deadline strong {

        font-size: .55rem;
        line-height: 1.15;
        white-space: nowrap;

    }


    /* ======================================================
       STATISTIQUES
       ====================================================== */

    .campaign-header-stats {

        display: none;

    }


    /* ======================================================
       ACTIONS
       ====================================================== */

    .campaign-header-actions {

        grid-area: actions;

        display: flex;

        align-items: center;

        justify-content: flex-end;

        gap: 5px;

        margin-left: 0;

    }


    .campaign-header-rules {

    display: inline-flex;

    width: 34px;

    min-width: 34px;

    height: 34px;

    min-height: 34px;

    padding: 0;

    border-radius: 6px;

}

.campaign-header-rules span:last-child {

    display: none;

}

.campaign-header-rules-icon {

    font-size: .78rem;

}


    .campaign-header-finish {

        width: 34px;

        min-width: 34px;

        height: 34px;

        min-height: 34px;

        padding: 0;

        border-radius: 6px;

    }

    .campaign-header-finish span:last-child {

        display: none;

    }

    .campaign-header-finish-icon {

        font-size: .78rem;

    }


    .campaign-header-statistics {

        width: 34px;

        min-width: 34px;

        height: 34px;

        min-height: 34px;

        padding: 0;

        border-radius: 6px;

    }

    .campaign-header-statistics span:last-child {

        display: none;

    }

    .campaign-header-statistics-icon {

        font-size: .78rem;

    }

}


/* ==========================================================
   TRÈS PETITS ÉCRANS
   ========================================================== */

@media (max-width: 380px) {

    .campaign-header {

        padding-left: 7px;

        padding-right: 7px;

        gap: 6px;

    }

    .campaign-header-logo {

        width: 70px;

    }

    .campaign-header-logo img {

        max-height: 36px;

    }

    .campaign-header-back {

        width: 30px;

        height: 30px;

    }

    .campaign-header-campaign-name {

        font-size: .74rem;

    }

    .campaign-header-launch {

        font-size: .42rem;

    }

    .campaign-header-launch strong {

        font-size: .43rem;

    }

    .campaign-turn-main {

        min-width: 48px;

        flex-basis: 48px;

    }

    .campaign-turn-main .turn-number {

        font-size: 1.55rem;

    }

    .campaign-turn-state {

        padding-left: 7px;

    }

    .campaign-turn-phase-icon {

        width: 24px;

        height: 24px;

        flex-basis: 24px;

        font-size: .72rem;

    }

    .campaign-turn-phase strong {

        font-size: .48rem;

    }

    .campaign-turn-phase div span {

        font-size: .43rem;

    }

    .campaign-turn-active-team strong {

        max-width: 110px;

        font-size: .52rem;

    }

}