:root {
    color-scheme: dark;
    --fpcc-bg: #060708;
    --fpcc-panel: #0d1013;
    --fpcc-panel-soft: #15181c;
    --fpcc-text: #fff;
    --fpcc-muted: #b8b7b6;
    --fpcc-line: rgba(255, 255, 255, .2);
    --fpcc-gold: #a68b63;
    --fpcc-gold-soft: rgba(166, 139, 99, .46);
    --fpcc-red: #ef3038;
    --fpcc-blue: #258df5;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--fpcc-bg);
}

body.fpcc-card-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--fpcc-text);
    background:
        radial-gradient(circle at 50% 7%, rgba(166, 139, 99, .1), transparent 31rem),
        linear-gradient(180deg, #030405 0%, #0a0c0f 52%, #040506 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.fpcc-card {
    width: min(calc(100% - 16px), 680px);
    min-height: calc(100vh - 16px);
    margin: 8px auto;
    padding: max(20px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
    border: 1px solid var(--fpcc-gold-soft);
    border-radius: 26px;
    background: rgba(4, 6, 8, .74);
    box-shadow: inset 0 0 35px rgba(166, 139, 99, .035);
}

.fpcc-card-brand {
    width: 100%;
    margin: 0 auto 24px;
}

.fpcc-card-brand > img {
    display: block;
    width: 100%;
    height: auto;
}

.fpcc-team-lockup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 72.5%;
    margin-top: 5px;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .44em;
}

.fpcc-team-lockup::before,
.fpcc-team-lockup::after {
    height: 1px;
    background: rgba(255, 255, 255, .82);
    content: "";
}

.fpcc-team-lockup span {
    padding: 0 10px 0 14px;
}

.fpcc-card .fpcc-back-home,
.fpcc-card .fpcc-back-home:link,
.fpcc-card .fpcc-back-home:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin: 20px 0 0;
    padding: 12px 18px;
    border: 1px solid #b89058;
    border-radius: 14px;
    color: #08090b;
    background: #b89058;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
}

.fpcc-card .fpcc-back-home:hover,
.fpcc-card .fpcc-back-home:focus-visible {
    border-color: #c7a36f;
    color: #08090b;
    background: #c7a36f;
    text-decoration: none;
    outline: none;
}

.fpcc-card .fpcc-back-home:focus-visible {
    box-shadow: 0 0 0 3px rgba(184, 144, 88, .34);
}

.fpcc-identity {
    display: grid;
    grid-template-columns: minmax(108px, 39%) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin: 0 0 26px;
}

.fpcc-portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--fpcc-gold-soft);
    border-radius: 12px;
    background: #202329;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .42);
}

.fpcc-portrait img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transform: none;
    transform-origin: 50% 50%;
}

.fpcc-card-frederic .fpcc-portrait img {
    object-position: 50% 50%;
    transform: none;
}

.fpcc-identity-copy {
    min-width: 0;
}

.fpcc-identity h1 {
    margin: 0;
    hyphens: none;
    overflow-wrap: normal;
    font-size: clamp(22px, 5.9vw, 35px);
    line-height: 1.13;
    letter-spacing: -.024em;
}

.fpcc-name-rule {
    display: block;
    width: 58px;
    height: 3px;
    margin: 13px 0 14px;
    background: var(--fpcc-red);
}

.fpcc-role,
.fpcc-status,
.fpcc-rsac {
    margin: 0;
    line-height: 1.38;
}

.fpcc-role {
    font-size: 15px;
    font-weight: 650;
}

.fpcc-status {
    margin-top: 1px;
}

.fpcc-status,
.fpcc-rsac {
    color: var(--fpcc-muted);
    font-size: 13px;
}

.fpcc-rsac {
    margin-top: 12px;
}

.fpcc-actions {
    display: grid;
    gap: 10px;
}

.fpcc-action,
.fpcc-consent a,
.fpcc-consent-unavailable {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    gap: 14px;
    align-items: center;
    width: 100%;
    min-height: 74px;
    padding: 10px 15px;
    border: 1px solid var(--fpcc-line);
    border-radius: 16px;
    color: var(--fpcc-text);
    background: linear-gradient(110deg, rgba(16, 18, 21, .76), rgba(5, 7, 9, .72));
    font: inherit;
    text-align: left;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.fpcc-action:hover,
.fpcc-action:focus-visible,
.fpcc-consent a:hover,
.fpcc-consent a:focus-visible {
    border-color: var(--fpcc-gold);
    background: var(--fpcc-panel-soft);
    outline: none;
    transform: translateY(-1px);
}

.fpcc-action:focus-visible,
.fpcc-consent a:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .22);
}

.fpcc-action-icon,
.fpcc-consent-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 50%;
    color: var(--fpcc-red);
    background: rgba(3, 4, 6, .35);
}

.fpcc-action-icon svg,
.fpcc-consent-icon svg {
    width: 24px;
    height: 24px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fpcc-action strong,
.fpcc-consent strong {
    display: block;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.24;
}

.fpcc-action small,
.fpcc-consent small {
    display: block;
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: var(--fpcc-muted);
    font-size: 12px;
    line-height: 1.32;
}

.fpcc-chevron {
    display: grid;
    color: #96999d;
    place-items: center end;
}

.fpcc-chevron svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fpcc-action:hover .fpcc-chevron,
.fpcc-action:focus-visible .fpcc-chevron {
    color: var(--fpcc-gold);
}

.fpcc-share-feedback {
    height: 20px;
    margin: 5px 0 0;
    color: #fff;
    font-size: 13px;
    opacity: 0;
    text-align: center;
    transition: opacity .16s ease;
}

.fpcc-share-feedback.is-visible {
    opacity: 1;
}

.fpcc-consent {
    margin-top: 7px;
    padding-top: 18px;
    border-top: 1px solid var(--fpcc-gold-soft);
}

.fpcc-consent a,
.fpcc-consent-unavailable {
    border-color: rgba(37, 141, 245, .66);
    background: linear-gradient(120deg, rgba(13, 47, 90, .66), rgba(5, 15, 29, .9));
}

.fpcc-consent a:hover,
.fpcc-consent a:focus-visible {
    border-color: var(--fpcc-blue);
}

.fpcc-consent-icon {
    border-color: var(--fpcc-blue);
    color: var(--fpcc-blue);
    background: rgba(4, 16, 30, .6);
}

.fpcc-consent .fpcc-chevron {
    color: #96999d;
}

.fpcc-consent > p {
    margin: 9px 12px 0;
    color: #92969d;
    font-size: 11px;
    text-align: center;
}

.fpcc-card-qr {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin-top: 23px;
    padding: 18px;
    border: 1px solid var(--fpcc-line);
    border-radius: 18px;
    background: linear-gradient(110deg, rgba(16, 18, 21, .78), rgba(5, 7, 9, .8));
}

.fpcc-qr-image {
    display: grid;
    aspect-ratio: 1;
    padding: 8px;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
}

.fpcc-qr-image svg {
    display: block;
    width: 100%;
    height: auto;
}

.fpcc-card-qr h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.18;
}

.fpcc-card-qr .fpcc-name-rule {
    width: 44px;
    height: 2px;
    margin: 11px 0;
}

.fpcc-card-qr p {
    margin: 0;
    color: var(--fpcc-muted);
    font-size: 13px;
    line-height: 1.43;
}

.fpcc-card-qr .fpcc-qr-disclaimer {
    margin-top: 5px;
    color: #989b9f;
}

.fpcc-card footer {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    justify-content: center;
    margin-top: 22px;
    color: #858991;
    font-size: 11px;
    text-align: center;
}

.fpcc-card footer a {
    color: #c9c3b8;
    text-decoration: none;
}

@media (max-width: 430px) {
    .fpcc-card-brand {
        margin-bottom: 22px;
    }

    .fpcc-identity {
        grid-template-columns: minmax(104px, 38%) minmax(0, 1fr);
        gap: 14px;
    }

    .fpcc-identity h1 {
        font-size: clamp(20px, 5.65vw, 25px);
    }

    .fpcc-role {
        font-size: 13px;
    }

    .fpcc-status,
    .fpcc-rsac {
        font-size: 11.5px;
    }

    .fpcc-rsac {
        margin-top: 9px;
    }

    .fpcc-name-rule {
        margin: 9px 0;
    }

    .fpcc-action,
    .fpcc-consent a,
    .fpcc-consent-unavailable {
        grid-template-columns: 42px minmax(0, 1fr) 16px;
        gap: 11px;
        min-height: 68px;
        padding: 9px 12px;
        border-radius: 14px;
    }

    .fpcc-action-icon,
    .fpcc-consent-icon {
        width: 40px;
        height: 40px;
    }

    .fpcc-action-icon svg,
    .fpcc-consent-icon svg {
        width: 21px;
        height: 21px;
    }

    .fpcc-action strong,
    .fpcc-consent strong {
        font-size: 16px;
    }

    .fpcc-card-qr {
        grid-template-columns: 116px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }
}

@media (max-width: 355px) {
    .fpcc-card {
        width: calc(100% - 10px);
        margin: 5px auto;
        padding-right: 10px;
        padding-left: 10px;
        border-radius: 21px;
    }

    .fpcc-card-brand {
        margin-bottom: 18px;
    }

    .fpcc-identity {
        grid-template-columns: 102px minmax(0, 1fr);
        gap: 11px;
    }

    .fpcc-identity h1 {
        font-size: 19px;
        line-height: 1.1;
    }

    .fpcc-role {
        font-size: 12px;
    }

    .fpcc-status,
    .fpcc-rsac {
        font-size: 10.5px;
    }

    .fpcc-action,
    .fpcc-consent a,
    .fpcc-consent-unavailable {
        grid-template-columns: 39px minmax(0, 1fr) 14px;
        gap: 9px;
        padding-right: 9px;
        padding-left: 9px;
    }

    .fpcc-action-icon,
    .fpcc-consent-icon {
        width: 38px;
        height: 38px;
    }

    .fpcc-card-qr {
        grid-template-columns: 1fr;
    }

    .fpcc-qr-image {
        width: 132px;
        margin: 0 auto;
    }
}

@media (min-width: 700px) {
    .fpcc-card {
        min-height: auto;
        margin: 34px auto;
        padding: 36px 44px 40px;
        border-radius: 32px;
        background: rgba(4, 6, 8, .86);
        box-shadow: 0 28px 80px rgba(0, 0, 0, .46), inset 0 0 45px rgba(166, 139, 99, .04);
    }

    .fpcc-identity {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
