.brand-mark {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* Recap 공통 브랜딩: Statify 워드마크와 FC 26 로고를 한 줄로 표시 */
.brand-statify,
.brand span.brand-statify {
    display: inline-block !important;
    flex: 0 0 auto;
    color: #0ef046 !important;
    font-family: "Pretendard Variable", Pretendard, sans-serif;
    font-size: 1.72rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: -.045em !important;
    white-space: nowrap;
    background: linear-gradient(135deg, #176821 0%, #0ef046 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand img.brand-fc26 {
    width: 112px !important;
    height: auto !important;
    max-height: 31px;
    flex: 0 0 auto;
    border-radius: 0 !important;
    object-fit: contain;
}

.brand-statify + .brand-fc26 {
    margin-left: 1px;
}

/* 모든 리캡 페이지에서 동일하게 사용하는 공유 링크 */
.recap-share-link {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 13px;
    border: 1px solid rgba(200, 255, 46, .45);
    border-radius: 999px;
    color: var(--acid, #c8ff2e);
    text-decoration: none !important;
    font-size: .9rem;
    font-weight: 850;
    letter-spacing: .02em;
    background: rgba(200, 255, 46, .07);
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.recap-share-link::before {
    content: "↗";
    font-size: 1rem;
}

.recap-share-link:hover,
.recap-share-link:focus-visible {
    border-color: var(--acid, #c8ff2e);
    background: rgba(200, 255, 46, .16);
    color: var(--ink, #f7f7f2);
    outline: none;
}

/* 비회원 안내 문구는 데스크톱에서 문장별 한 줄을 유지 */
.gate-description,
.gate p,
.network-gate p {
    white-space: pre-line;
}

@media (min-width: 761px) {
    .gate,
    .network-gate {
        width: min(1080px, calc(100% - 40px));
    }

    .gate-inner {
        max-width: none;
    }

    .gate-description,
    .gate p,
    .network-gate p {
        white-space: pre;
    }
}

@media (max-width: 760px) {
    .gate-description,
    .gate p,
    .network-gate p {
        white-space: normal;
    }
}

.recap-share-open {
    overflow: hidden;
}

.recap-share-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.recap-share-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.recap-share-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 4, 6, .78);
    backdrop-filter: blur(9px);
}

.recap-share-dialog {
    position: relative;
    width: min(440px, 100%);
    padding: 28px 24px 24px;
    border: 1px solid rgba(200, 255, 46, .38);
    border-radius: 22px 6px 22px 6px;
    background: linear-gradient(145deg, #171a16, #090a0c);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .6);
    transform: translateY(8px) scale(.98);
    transition: transform 180ms ease;
}

.recap-share-modal.is-visible .recap-share-dialog {
    transform: none;
}

.recap-share-dialog h2 {
    margin: 0;
    color: var(--ink, #f7f7f2);
    font-size: 1.25rem;
    font-weight: 900;
}

.recap-share-url {
    margin: 10px 0 18px;
    overflow: hidden;
    color: var(--faint, rgba(247, 247, 242, .52));
    font-size: .9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recap-share-actions {
    display: grid;
    gap: 9px;
}

.recap-share-action {
    display: flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
    color: var(--ink, #f7f7f2);
    cursor: pointer;
    font-size: .98rem;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.recap-share-action:hover,
.recap-share-action:focus-visible {
    border-color: rgba(200, 255, 46, .55);
    background: rgba(200, 255, 46, .12);
    color: var(--acid, #c8ff2e);
    outline: none;
}

.recap-share-close {
    position: absolute;
    top: 10px;
    right: 12px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: var(--ink, #f7f7f2);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.recap-share-close:focus-visible {
    outline: 2px solid var(--acid, #c8ff2e);
    outline-offset: 2px;
}

.recap-share-status {
    min-height: 1.35em;
    margin: 12px 0 0;
    color: var(--acid, #c8ff2e);
    font-size: .9rem;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .recap-share-modal,
    .recap-share-dialog {
        transition: none;
    }
}

body.i18n-loading > main {
    visibility: hidden;
}

:root {
    --faint: rgba(247, 247, 242, 0.52);
}

.is-nav-idle .page-nav:hover .page-nav-button:not(.is-disabled),
.is-nav-idle .page-nav:focus-within .page-nav-button:not(.is-disabled) {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.is-nav-idle .page-nav:hover .mobile-swipe-hint,
.is-nav-idle .page-nav:focus-within .mobile-swipe-hint {
    opacity: 1;
}

/* 첫·마지막 페이지의 비활성 자리표시자도 다른 이동 컨트롤과 함께 숨긴다. */
.is-nav-idle .page-nav-button.is-disabled {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.82);
}

@media (max-width: 760px) {
    .topbar {
        flex-wrap: wrap;
    }

    .topbar > .compact-profile {
        order: 3;
        width: 100%;
        max-width: none;
        justify-content: center;
        margin: 10px 0 0;
    }

    .topbar .back-link,
    .topbar .season-range {
        display: none;
    }
}

/* 04~07 페이지도 02·03 페이지와 같은 중앙 헤더 정렬 */
@media (min-width: 761px) {
    .recap-shuffle .hero,
    .recap-rating .hero,
    .recap-rhythm .hero,
    .recap-stage .hero {
        text-align: center;
    }

    .recap-shuffle .hero .title,
    .recap-rating .hero .title,
    .recap-rhythm .hero .title,
    .recap-stage .hero .title {
        margin-right: auto;
        margin-left: auto;
    }

    .recap-shuffle .hero .description,
    .recap-rating .hero .description,
    .recap-rhythm .hero .description,
    .recap-stage .hero .description {
        margin-right: auto;
        margin-left: auto;
    }
}

/* 모바일 리캡 헤더는 인트로·상세 페이지 모두 중앙 정렬 */
@media (max-width: 760px) {
    .intro-copy,
    .recap-shuffle .hero,
    .recap-rating .hero,
    .recap-rhythm .hero,
    .recap-stage .hero {
        text-align: center;
    }

    .intro-copy .eyebrow {
        justify-content: center;
    }

    .intro-title .title-line:nth-child(2) {
        margin-left: 0 !important;
    }

    .intro-description,
    .recap-shuffle .hero .description,
    .recap-rating .hero .description,
    .recap-rhythm .hero .description,
    .recap-stage .hero .description {
        margin-right: auto !important;
        margin-left: auto !important;
    }
}

/* 관계의 지도 모바일 카드: TOP10 액션을 제목 옆 상단에 고정 */
@media (max-width: 980px) {
    .recap-network .node-tap-hint {
        top: 12px;
        transform: none;
    }

    .recap-network .network-node .node-label {
        min-height: 34px;
        padding-right: 78px;
    }

    .recap-network .network-node .node-value {
        padding-right: 0;
    }
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

/* 전체 리포트 하단 바로가기 */
.report-shortcuts {
    display: flex;
    width: min(1240px, 100%);
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 18px auto 0;
    padding: 0;
}

.report-shortcuts a {
    display: inline-grid;
    min-width: 42px;
    min-height: 32px;
    place-items: center;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: var(--faint);
    font-size: .82rem;
    font-weight: 850;
    letter-spacing: .08em;
    background: rgba(8, 9, 11, .42);
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.report-shortcuts a:hover,
.report-shortcuts a:focus-visible {
    border-color: rgba(200, 255, 46, .55);
    color: var(--acid);
    outline: none;
}

.report-shortcuts a[aria-current="page"] {
    border-color: rgba(200, 255, 46, .45);
    background: rgba(200, 255, 46, .1);
    color: var(--acid);
}

@media (max-width: 620px) {
    .report-shortcuts {
        gap: 5px;
        margin-top: 15px;
    }

    .report-shortcuts a {
        min-width: 38px;
        min-height: 30px;
        padding-inline: 8px;
        font-size: .78rem;
    }
}
