:root {
    --joy-ink: #3f2417;
    --joy-text: #4f3b31;
    --joy-muted: #735f55;
    --joy-sky: #9fe1ff;
    --joy-sky-soft: #dff6ff;
    --joy-cream: #f6fcff;
    --joy-card: rgba(255, 255, 255, 0.94);
    --joy-line: rgba(107, 79, 58, 0.16);
    --joy-green: #20b887;
    --joy-green-dark: #12856a;
    --joy-blue: #3b87f0;
    --joy-purple: #8e5cf0;
    --joy-yellow: #ffd45e;
    --joy-orange: #f49a22;
    --joy-shadow: 0 18px 45px rgba(81, 60, 42, 0.14);
    --joy-title-font: 'Baloo', 'montserrat', Arial, sans-serif;
    --joy-surface: rgba(255, 255, 255, 0.9);
    --joy-surface-strong: #ffffff;
    --joy-focus: rgba(31, 166, 123, 0.28);
    --joy-card-shadow: 0 16px 36px rgba(73, 82, 74, 0.12);
    --joy-card-shadow-hover: 0 22px 46px rgba(73, 82, 74, 0.18);
    --joy-radius-card: 20px;
    --joy-radius-control: 16px;
    --joy-radius-media: 18px;
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Baloo';
    src: url('/joy/fonts/ble.woff2') format('woff2'),
        url('/joy/fonts/ble.woff') format('woff'),
        url('/joy/fonts/ble.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

html {
    background: #e5f7ff;
}

@supports not (overflow-x: clip) {
    html,
    body {
        overflow-x: hidden;
    }
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--joy-text);
    background:
        linear-gradient(180deg, #c9efff 0, #ecfaff 18rem, #ffffff 46rem, #e5f7ff 100%);
    font-family: 'montserrat', Arial, sans-serif;
    text-rendering: optimizeLegibility;
}

body::after {
    display: none;
}

a,
a:hover,
a:visited,
a:active {
    color: inherit;
}

img,
svg,
video {
    max-width: 100%;
}

.joy-site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    display: flex;
    gap: 1.45rem;
    align-items: center;
    width: 100%;
    min-height: 4.35rem;
    padding: 0.42rem max(2.25rem, calc((100vw - 1340px) / 2));
    border-bottom: 0;
    background: rgba(227, 248, 255, 0.82);
    box-shadow: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.joy-site-header.scrolled,
#navbar.scrolled {
    background: rgba(227, 248, 255, 0.94);
    box-shadow: 0 8px 22px rgba(65, 102, 119, 0.09);
}

.site-logo,
#logo-blue,
#logo-pink,
#logo-green,
#logo-yellow,
#logo-joy {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(160px, 12.5vw, 205px);
    height: clamp(3.25rem, 4.4vw, 4.45rem);
    border: 0;
    overflow: visible;
}

.site-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: auto;
}

.social-networks {
    display: none;
}

.lang-switcher {
    display: inline-block;
    flex: 0 0 auto;
    width: 2.2rem;
    height: 2.2rem;
}

.lang-switcher .lang-fr,
.lang-switcher .lang-en {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.72);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 72%;
    box-shadow: 0 8px 18px rgba(53, 92, 113, 0.13);
}

.lang-switcher .lang-fr {
    background-image: url('/joy/elements/lang-fr.svg');
}

.lang-switcher .lang-en {
    background-image: url('/joy/elements/lang-en.svg');
}

.lang-switcher .dropdown-menu {
    border: 1px solid var(--joy-line);
    border-radius: var(--joy-radius-card);
    box-shadow: var(--joy-shadow);
}

.lang-switcher .dropdown-item {
    color: var(--joy-text);
    font-size: 0.95rem !important;
    font-weight: 700;
}

.header-nav-bar {
    display: flex;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    gap: 0.2rem 1.25rem;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: visible;
}

header a,
header a:hover,
header a:visited,
.header-nav-bar a,
.header-nav-bar a:hover,
.header-nav-bar a:visited {
    text-decoration: none;
    font-family: 'montserrat', Arial, sans-serif;
}

.menu-link,
.menu-link:hover,
.menu-link:visited {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0;
    color: #432d21 !important;
    font-size: 0.84rem;
    font-weight: 800;
}

.menu-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--joy-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
}

.menu-link:hover::after,
.menu-link.active::after {
    transform: scaleX(1);
}

.bullet-yellow,
.bullet-pink,
.bullet-blue,
.bullet-green {
    display: none;
}

.nav-cta-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
}

.header-nav-cta,
.header-nav-cta:hover,
.header-nav-cta:active,
.header-nav-cta:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    padding: 0.54rem 0.95rem;
    border: 0;
    border-radius: 999px;
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    box-shadow: 0 10px 20px rgba(49, 65, 84, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.header-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(49, 65, 84, 0.18);
}

.header-nav-cta--steam {
    background: linear-gradient(180deg, #35bd93, var(--joy-green));
}

.header-nav-cta--patreon {
    background: linear-gradient(180deg, #a775ff, var(--joy-purple));
}

.social-networks a,
.social-networks a:hover,
.social-networks a:visited,
.social-networks a:focus,
.social-footer a,
.social-footer a:hover,
.social-footer a:visited,
.social-footer a:focus,
.social-row a,
.social-row a:hover,
.social-row a:visited,
.social-row a:focus {
    display: inline-block;
    width: 2.6rem;
    aspect-ratio: 1;
    border: 0;
    background-size: contain;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    transition: transform 0.18s ease;
}

.social-footer a:hover,
.social-row a:hover {
    transform: translateY(-2px);
}

.social-instagram { background-image: url('/joy/social/Instagram.svg'); }
.social-x { background-image: url('/joy/social/X.svg'); }
.social-discord { background-image: url('/joy/social/Discord.svg'); }
.social-facebook { background-image: url('/joy/social/Facebook.svg'); }
.social-mail { background-image: url('/joy/social/Mail.svg'); }
.social-patreon { background-image: url('/joy/social/Patreon.svg'); }
.social-steam { background-image: url('/joy/social/Steam.svg'); }
.social-tiktok { background-image: url('/joy/social/Tiktok.svg'); }
.social-youtube { background-image: url('/joy/social/Youtube.svg'); }
.social-bsky { background-image: url('/joy/social/BlueSky.svg'); }

footer {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.4rem 1rem 2.5rem;
    color: var(--joy-text);
    font-family: 'montserrat', Arial, sans-serif;
    text-align: center;
}

footer a,
footer a:hover,
footer a:visited,
footer a:active {
    color: var(--joy-ink);
    border: 0;
    text-decoration: none;
}

footer p {
    margin-bottom: 0.75rem;
}

footer .marketing-button {
    margin: 0.25rem;
    border-radius: var(--joy-radius-control);
}

footer img {
    width: auto;
    max-width: 90%;
    border: 0;
}

.supports-text {
    max-width: 30rem;
    margin-right: auto;
    margin-left: auto;
    color: var(--joy-muted);
    font-family: 'montserrat', Arial, sans-serif;
    font-size: 0.95rem;
}

.follow-us {
    color: var(--joy-ink);
    font-family: 'VSPencil', Arial, sans-serif;
    font-size: 2em;
}

@font-face {
    font-family: 'VSFont';
    src: url('/fonts/vs/vs5-webfont.woff2') format('woff2'),
    url('/fonts/vs/vs5-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'VSPencil';
    src: url('/fonts/vspencil/VSPencil.woff2') format('woff2'),
    url('/fonts/vspencil/VSPencil.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JoyRounded';
    src: url('/fonts/arialrounded/ArialRoundedMTBold.woff2') format('woff2'),
    url('/fonts/arialrounded/ArialRoundedMTBold.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'montserrat';
    src: url('/fonts/montserrat/montserrat-medium.woff2') format('woff2'),
    url('/fonts/montserrat/montserrat-medium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.montserrat {
    font-family: 'montserrat', Arial, sans-serif;
}

.vsfont {
    font-family: 'VSFont', Arial, sans-serif !important;
}

h1,
h2,
h3 {
    color: var(--joy-ink);
    font-family: var(--joy-title-font) !important;
    font-weight: 700;
    letter-spacing: 0;
}

.vspencil {
    color: var(--joy-ink);
    font-family: 'VSPencil', Arial, sans-serif !important;
    letter-spacing: 0;
}

.text-brown { color: var(--joy-ink); }
.icon-h1 { width: 4em !important; }
.vsfont-title-color,
.vsfonttitle {
    font-family: 'VSFont', Arial, sans-serif !important;
    text-transform: uppercase;
}
.vsfont-title-color { color: var(--joy-ink); }
.vsfont-title-shadow,
.vsfont-strong-shadow,
.strong-shadow {
    text-shadow: 0 2px 0 rgba(56, 36, 24, 0.18);
}

.site-section {
    display: block;
    width: 100%;
    padding-right: clamp(1rem, 4vw, 6rem);
    padding-left: clamp(1rem, 4vw, 6rem);
}

.sticker {
    position: relative;
    top: 0.5em;
    display: inline-block;
    width: 1em;
    aspect-ratio: 1;
    padding: 0;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: contain;
}

span img.title-svgline {
    position: absolute;
    bottom: 0;
    left: 0;
    overflow: hidden;
    width: 100%;
    height: 20px;
    margin: 0;
}

span img.title-svgoutline {
    position: absolute;
    top: -10px;
    left: -10px;
    overflow: hidden;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    margin: 0;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(1120px, calc(100% - 2rem));
    margin: 2rem auto;
    padding: 1rem;
    border: 1px solid var(--joy-line);
    border-radius: var(--joy-radius-card);
    color: var(--joy-text);
    background: var(--joy-surface);
    box-shadow: var(--joy-card-shadow);
    text-align: center;
}

.pagination-container .page-active,
.pagination-container .page,
.pagination-container a,
.pagination-container a:hover,
.pagination-container a:active,
.pagination-container a:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    margin: 0 0.2rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    color: var(--joy-text);
    text-decoration: none;
    font-family: 'montserrat', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
}

.pagination-container .page-active {
    color: #ffffff;
    background: var(--joy-green);
}

.pagination-prev,
.pagination-next {
    display: inline-block;
    width: 1em;
    aspect-ratio: 1;
    background-repeat: no-repeat;
    background-size: contain;
}

.pagination-next { background-image: url('/joy/icons/pagination-next.svg'); }
.pagination-prev { background-image: url('/joy/icons/pagination-prev.svg'); }

.centered-full-container {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.outlined,
.outlined-yellow,
.outlined-blue,
.outlined-green,
.outlined-red,
.outlined:hover,
.outlined-yellow:hover,
.outlined-blue:hover,
.outlined-green:hover,
.outlined-red:hover,
.outlined:active,
.outlined-yellow:active,
.outlined-blue:active,
.outlined-green:active,
.outlined-red:active {
    position: relative;
    display: inline-block;
    margin: 0.2em 0;
    padding: 0.15em 1.2em;
    border: 1px solid var(--joy-line);
    border-radius: var(--joy-radius-control);
    color: var(--joy-ink);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 18px rgba(68, 52, 38, 0.1);
    font-family: 'montserrat', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.outlined-inverse {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.14);
}

.outlined-button {
    cursor: pointer;
    background: none;
}

.footer-vso-container {
    display: inline-block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid var(--joy-line);
    border-radius: var(--joy-radius-card);
    background: var(--joy-card);
}

a:focus-visible,
button:focus-visible,
.form-control:focus,
.dropdown-item:focus {
    outline: 3px solid var(--joy-focus);
    outline-offset: 3px;
}

.nav-cta-label--short {
    display: none;
}

@media (max-width: 1180px) {
    .joy-site-header {
        padding-right: 1rem;
        padding-left: 1rem;
        gap: 1rem;
    }

    .header-nav-bar {
        gap: 0.2rem 0.75rem;
    }

    .nav-cta-group {
        display: inline-flex;
        width: auto;
        gap: 0.45rem;
        margin-left: 0.25rem;
    }

    .nav-cta-label--full {
        display: none;
    }

    .nav-cta-label--short {
        display: inline;
    }
}

@media (max-width: 1050px) {
    .joy-site-header,
    .joy-site-header.scrolled {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: auto;
        padding: 0.55rem 1rem 0.7rem;
        gap: 1rem;
    }

    .header-nav-bar {
        order: 3;
        justify-content: center;
        width: 100%;
    }

    .lang-switcher {
        position: absolute;
        top: 0.65rem;
        right: 1rem;
    }
}

@media (max-width: 760px) {
    .joy-site-header,
    .joy-site-header.scrolled,
    #navbar.scrolled {
        justify-content: center;
        align-items: center;
        padding: 0.45rem 3.2rem 0.5rem;
        gap: 0.15rem 0.5rem;
    }

    .site-logo,
    #logo-blue,
    #logo-pink,
    #logo-green,
    #logo-yellow,
    #logo-joy {
        width: clamp(190px, 62vw, 260px);
        height: clamp(4.55rem, 24vw, 6.35rem);
        margin: 0 auto;
    }

    .lang-switcher {
        position: absolute;
        top: 0.65rem;
        right: 1rem;
        width: 1.95rem;
        height: 1.95rem;
        margin-left: 0;
    }

    .header-nav-bar {
        order: 3;
        flex: 0 0 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        gap: 0.42rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.04rem 0.15rem 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .header-nav-bar::-webkit-scrollbar {
        display: none;
    }

    .menu-link,
    .menu-link:hover,
    .menu-link:visited {
        flex: 0 0 auto;
        min-height: 1.45rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .nav-cta-group {
        flex: 0 0 auto;
        width: auto;
        gap: 0.35rem;
        margin-left: 0;
    }
}

@media (max-width: 700px) {
    body {
        background:
            linear-gradient(180deg, #c9efff 0, #ecfaff 18rem, #ffffff 44rem, #e5f7ff 100%);
    }

    .header-nav-cta {
        min-height: 2.6rem;
        padding: 0.48rem 0.85rem;
        font-size: 0.78rem;
    }
}

.profile-page {
    width: min(100% - 2.5rem, 1180px);
    min-height: 60vh;
    margin: 0 auto;
    padding: clamp(2.4rem, 5vw, 4.8rem) 0 clamp(5rem, 8vw, 7rem);
}

.profile-hero {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: center;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    overflow: hidden;
    border: 1px solid rgba(55, 118, 126, 0.14);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 8%, rgba(255, 212, 94, 0.22), transparent 30%),
        linear-gradient(125deg, rgba(255, 255, 255, 0.96), rgba(232, 249, 244, 0.94));
    box-shadow: 0 20px 44px rgba(57, 89, 89, 0.1);
}

.profile-hero::after {
    content: "";
    position: absolute;
    right: -3rem;
    bottom: -4.5rem;
    width: 13rem;
    height: 13rem;
    border: 2.5rem solid rgba(32, 184, 135, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.profile-avatar,
.profile-post__avatar,
.profile-friend > span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(145deg, #26b989, #247fca);
    font-family: var(--joy-title-font);
    font-weight: 800;
}

.profile-avatar {
    width: clamp(4.8rem, 9vw, 6.7rem);
    height: clamp(4.8rem, 9vw, 6.7rem);
    border: 5px solid rgba(255, 255, 255, 0.9);
    border-radius: 22px;
    box-shadow: 0 15px 30px rgba(32, 113, 103, 0.2);
    font-size: clamp(2.3rem, 5vw, 3.5rem);
    transform: rotate(-2deg);
}

.profile-identity {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.profile-identity__eyebrow,
.profile-panel__header span,
.profile-section-heading__eyebrow,
.community-form-heading__eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--joy-green-dark);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-identity__title {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.profile-identity h1,
.profile-section-heading h1,
.community-form-heading h1 {
    margin: 0;
    color: var(--joy-ink);
    font-family: var(--joy-title-font);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 0.98;
}

.profile-level .badge {
    border-radius: 8px;
    font-family: 'montserrat', Arial, sans-serif;
    font-size: 0.72rem;
}

.profile-meta {
    display: flex;
    gap: 0.55rem 1.2rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.8rem;
    color: var(--joy-muted);
    font-size: 0.78rem;
    font-weight: 650;
}

.profile-meta span {
    display: inline-flex;
    gap: 0.42rem;
    align-items: center;
}

.profile-meta i {
    color: var(--joy-green);
}

.profile-score {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.9rem;
    min-width: 8.5rem;
    text-align: right;
}

.profile-rating {
    color: #eca719;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.profile-rating .far {
    color: rgba(115, 95, 85, 0.3);
}

.profile-points {
    display: grid;
    gap: 0.12rem;
}

.profile-points strong {
    color: var(--joy-ink);
    font-family: var(--joy-title-font);
    font-size: 1.65rem;
    line-height: 1;
}

.profile-points span {
    color: var(--joy-muted);
    font-size: 0.68rem;
    font-weight: 750;
    text-transform: uppercase;
}

.profile-points i {
    color: #d89e1b;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(12.5rem, 0.25fr) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
    margin-top: 1.2rem;
}

.profile-tabs {
    position: sticky;
    top: 6.5rem;
    display: grid;
    gap: 0.3rem;
    padding: 0.55rem;
    border: 1px solid rgba(55, 118, 126, 0.13);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 14px 30px rgba(57, 89, 89, 0.08);
}

.profile-tab {
    display: grid;
    grid-template-columns: 1.35rem minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
    min-height: 3rem;
    padding: 0.62rem 0.72rem;
    border: 0;
    border-radius: 12px;
    color: var(--joy-text);
    background: transparent;
    font-family: 'montserrat', Arial, sans-serif;
    font-size: 0.76rem;
    font-weight: 760;
    text-align: left;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.profile-tab:hover {
    color: var(--joy-green-dark);
    background: rgba(225, 247, 240, 0.75);
    transform: translateX(2px);
}

.profile-tab.is-active {
    color: #ffffff;
    background: linear-gradient(110deg, #16836a, #247f99);
    box-shadow: 0 9px 18px rgba(26, 123, 101, 0.18);
}

.profile-tab i {
    color: var(--joy-green);
    text-align: center;
}

.profile-tab.is-active i {
    color: #ffffff;
}

.profile-tab small {
    min-width: 1.45rem;
    padding: 0.16rem 0.35rem;
    border-radius: 7px;
    color: var(--joy-muted);
    background: rgba(80, 115, 104, 0.1);
    font-size: 0.62rem;
    text-align: center;
}

.profile-tab.is-active small {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.profile-content,
.profile-feed {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
}

.profile-panel {
    min-width: 0;
}

.profile-composer,
.profile-post,
.profile-panel[data-profile-panel]:not([data-profile-panel="news"]) {
    overflow: hidden;
    border: 1px solid rgba(55, 118, 126, 0.13);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 15px 34px rgba(57, 89, 89, 0.085);
}

.profile-composer {
    margin-bottom: 0.85rem;
}

.profile-composer__header,
.profile-composer__footer,
.profile-post__header,
.profile-post__footer,
.profile-panel__header {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
}

.profile-composer__header {
    min-height: 3.8rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(55, 118, 126, 0.11);
    color: var(--joy-ink);
    background: rgba(237, 249, 245, 0.7);
    font-size: 0.8rem;
}

.profile-composer__header > div {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.profile-composer__header i {
    color: var(--joy-green);
}

.profile-composer__photo,
.profile-composer__submit,
.profile-like,
.profile-back-link {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    padding: 0.55rem 0.8rem;
    border: 0;
    border-radius: 10px;
    font-family: 'montserrat', Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.profile-composer__photo {
    color: var(--joy-green-dark);
    background: rgba(32, 184, 135, 0.1);
}

.profile-composer__photo:hover {
    color: #ffffff;
    background: var(--joy-green-dark);
    transform: translateY(-1px);
}

.profile-composer__body {
    padding: 1rem;
}

.profile-composer__body .cke {
    overflow: hidden;
    border: 1px solid rgba(55, 118, 126, 0.16) !important;
    border-radius: 12px;
    box-shadow: none !important;
}

.profile-composer__photos {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.7rem;
}

.profile-composer__photos:empty {
    display: none;
}

.profile-composer__photos img {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 10px;
    object-fit: cover;
}

.profile-composer__footer {
    padding: 0 1rem 1rem;
}

.profile-composer__submit,
.profile-composer__submit:hover {
    color: #ffffff;
    background: var(--joy-green-dark);
}

.profile-composer__submit:hover {
    background: #0e705a;
    box-shadow: 0 9px 18px rgba(14, 112, 90, 0.18);
    transform: translateY(-1px);
}

.profile-post__header {
    justify-content: flex-start;
    padding: 1rem 1rem 0;
}

.profile-post__avatar {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 10px;
    font-size: 1.2rem;
}

.profile-post__header > div {
    display: grid;
    gap: 0.05rem;
}

.profile-post__header strong {
    color: var(--joy-ink);
    font-size: 0.8rem;
}

.profile-post__header time {
    color: var(--joy-muted);
    font-size: 0.66rem;
}

.profile-post__content {
    padding: 1rem;
    color: var(--joy-text);
    font-size: 0.88rem;
    line-height: 1.65;
}

.profile-post__content > :last-child {
    margin-bottom: 0;
}

.profile-post__media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.45rem;
    padding: 0 1rem 1rem;
}

.profile-post__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    object-fit: cover;
}

.profile-post__footer {
    justify-content: flex-start;
    min-height: 3.5rem;
    padding: 0.7rem 1rem;
    border-top: 1px solid rgba(55, 118, 126, 0.1);
    background: rgba(245, 251, 249, 0.7);
}

.profile-like {
    min-height: 2.2rem;
    color: #86556c;
    background: rgba(198, 68, 222, 0.09);
}

.profile-like:hover,
.profile-like.is-liked {
    color: #ffffff;
    background: #a84f95;
}

.profile-like:hover {
    transform: translateY(-1px);
}

.profile-likers {
    color: var(--joy-muted);
    font-size: 0.68rem;
    line-height: 1.45;
}

.profile-likers a {
    color: var(--joy-green-dark);
    font-weight: 750;
    text-decoration: none;
}

.profile-panel__header {
    min-height: 5.2rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(55, 118, 126, 0.11);
    background: rgba(237, 249, 245, 0.68);
}

.profile-panel__header span {
    margin-bottom: 0.1rem;
}

.profile-panel__header h2 {
    margin: 0;
    color: var(--joy-ink);
    font-family: var(--joy-title-font);
    font-size: 1.6rem;
}

.profile-panel__header > strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.3rem;
    height: 2.3rem;
    border-radius: 9px;
    color: var(--joy-green-dark);
    background: rgba(32, 184, 135, 0.12);
    font-size: 0.78rem;
}

.profile-friend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 0.65rem;
    padding: 1rem;
}

.profile-friend {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.7rem;
    border: 1px solid rgba(55, 118, 126, 0.12);
    border-radius: 12px;
    color: var(--joy-text);
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.profile-friend:hover {
    border-color: rgba(32, 184, 135, 0.35);
    color: var(--joy-green-dark);
    background: rgba(237, 249, 245, 0.75);
    transform: translateY(-2px);
}

.profile-friend > span {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 9px;
}

.profile-friend strong {
    overflow: hidden;
    font-size: 0.75rem;
    text-overflow: ellipsis;
}

.profile-friend > i {
    color: var(--joy-green);
    font-size: 0.7rem;
}

.profile-skill-list {
    display: grid;
    padding: 0.25rem 1rem 0.7rem;
}

.profile-skill {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    min-height: 3.5rem;
    padding: 0.6rem 0.2rem;
    border-bottom: 1px solid rgba(55, 118, 126, 0.1);
    color: var(--joy-text);
    font-size: 0.8rem;
    font-weight: 650;
}

.profile-skill:last-child {
    border-bottom: 0;
}

.profile-skill strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2rem;
    border-radius: 8px;
    color: var(--joy-green-dark);
    background: rgba(32, 184, 135, 0.11);
    font-size: 0.72rem;
}

.profile-career-summary,
.profile-empty-state {
    display: grid;
    gap: 0.65rem;
    justify-items: center;
    padding: clamp(2.5rem, 6vw, 4rem) 1.2rem;
    color: var(--joy-muted);
    text-align: center;
}

.profile-career-summary > i,
.profile-empty-state > i {
    color: rgba(32, 133, 106, 0.45);
    font-size: 1.8rem;
}

.profile-career-summary p,
.profile-empty-state p {
    max-width: 30rem;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.6;
}

.profile-photo-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(55, 118, 126, 0.16);
    border-radius: 18px;
    box-shadow: 0 24px 54px rgba(48, 77, 76, 0.2);
}

.profile-photo-modal .modal-title {
    margin: 0;
    color: var(--joy-ink);
    font-family: var(--joy-title-font);
    font-size: 1.45rem;
}

.profile-photo-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.65rem;
}

.profile-photo-picker__item {
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.profile-photo-picker__item img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border: 4px solid transparent;
    border-radius: 12px;
    object-fit: cover;
}

.profile-photo-picker__item:hover img {
    border-color: rgba(32, 184, 135, 0.28);
}

.profile-photo-picker__item img.is-selected {
    border-color: var(--joy-green);
}

.profile-section-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(55, 118, 126, 0.15);
}

.profile-section-heading__icon,
.community-form-heading__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(145deg, #26b989, #247fca);
    box-shadow: 0 11px 22px rgba(32, 113, 103, 0.16);
}

.profile-section-heading h1 {
    font-size: clamp(2.2rem, 4vw, 3.3rem);
}

.profile-section-heading p,
.community-form-heading p {
    max-width: 40rem;
    margin: 0.35rem 0 0;
    color: var(--joy-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.profile-back-link {
    color: var(--joy-green-dark);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(55, 118, 126, 0.16);
}

.profile-back-link:hover {
    color: #ffffff;
    background: var(--joy-green-dark);
    transform: translateY(-1px);
}

.profile-photo-library {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 0.8rem;
}

.profile-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.profile-settings-card {
    overflow: hidden;
    border: 1px solid rgba(55, 118, 126, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 15px 32px rgba(57, 89, 89, 0.08);
}

.profile-settings-card > header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    min-height: 5rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(55, 118, 126, 0.11);
    background: rgba(237, 249, 245, 0.68);
}

.profile-settings-card__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 11px;
    color: var(--joy-green-dark);
    background: rgba(32, 184, 135, 0.12);
}

.profile-settings-card header span:not(.profile-settings-card__icon) {
    display: block;
    color: var(--joy-green-dark);
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.profile-settings-card h2 {
    margin: 0.12rem 0 0;
    color: var(--joy-ink);
    font-family: var(--joy-title-font);
    font-size: 1.45rem;
}

.profile-setting-list {
    display: grid;
    padding: 0.4rem 1rem;
}

.profile-setting {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    min-height: 5rem;
    padding: 0.8rem 0.2rem;
    border: 0;
    border-bottom: 1px solid rgba(55, 118, 126, 0.1);
    color: var(--joy-text);
    background: transparent;
    font-family: 'montserrat', Arial, sans-serif;
    text-align: left;
    cursor: pointer;
}

.profile-setting:last-child {
    border-bottom: 0;
}

.profile-setting > span {
    display: grid;
    gap: 0.25rem;
}

.profile-setting strong {
    color: var(--joy-ink);
    font-size: 0.76rem;
}

.profile-setting small {
    max-width: 24rem;
    color: var(--joy-muted);
    font-size: 0.66rem;
    line-height: 1.5;
}

.profile-setting > i {
    color: var(--joy-green);
    font-size: 1.25rem;
    transition: color 0.18s ease, transform 0.18s ease;
}

.profile-setting:hover > i {
    color: var(--joy-green-dark);
    transform: scale(1.08);
}

.profile-setting:focus-visible {
    border-radius: 8px;
    outline: 3px solid var(--joy-focus);
    outline-offset: 2px;
}

.profile-photo-library > .profile-empty-state {
    grid-column: 1 / -1;
}

.profile-photo-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(55, 118, 126, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 13px 28px rgba(57, 89, 89, 0.08);
}

.profile-photo-card img,
.profile-photo-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    color: rgba(32, 133, 106, 0.5);
    background: linear-gradient(145deg, #e8f7f2, #edf7fb);
    font-size: 1.8rem;
}

.profile-photo-card figcaption {
    padding: 0.7rem 0.8rem;
    color: var(--joy-muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.community-form-page {
    width: min(100% - 2.5rem, 980px);
    min-height: 65vh;
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.community-form-shell {
    display: grid;
    grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(55, 118, 126, 0.17);
}

.community-form-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
}

.community-form-heading__icon {
    width: 2.8rem;
    height: 2.8rem;
}

.community-form-heading h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
}

.community-form-content {
    padding: 1.2rem;
    border: 1px solid rgba(55, 118, 126, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 34px rgba(57, 89, 89, 0.08);
}

.community-form-content .row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    margin: 0 0 0.9rem;
}

.community-form-content .col-form-label,
.community-form-content .col-sm-10 {
    width: 100%;
    padding: 0;
}

.community-form-content .col-form-label {
    color: var(--joy-ink);
    font-size: 0.73rem;
    font-weight: 800;
}

.community-form-content .form-control,
.community-form-content .form-select {
    min-height: 3rem;
    border: 1px solid rgba(55, 118, 126, 0.18);
    border-radius: 9px;
    background: #ffffff;
}

.community-form-content .btn {
    min-height: 2.8rem;
    border: 0;
    border-radius: 9px;
    font-weight: 800;
}

@media (max-width: 850px) {
    .profile-hero {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .profile-score {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
        align-items: end;
        padding-top: 0.8rem;
        border-top: 1px solid rgba(55, 118, 126, 0.12);
        text-align: left;
    }

    .profile-points {
        justify-items: end;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-tabs {
        position: static;
        z-index: 2;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .profile-tab {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        justify-items: center;
        text-align: center;
    }

    .profile-tab small {
        display: none;
    }

    .profile-tab:hover {
        transform: translateY(-1px);
    }

    .community-form-shell {
        grid-template-columns: 1fr;
    }

    .profile-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .profile-page,
    .community-form-page {
        width: min(100% - 1.25rem, 1180px);
        padding-top: 1.5rem;
    }

    .profile-hero {
        grid-template-columns: 1fr;
        justify-items: start;
        border-radius: 18px;
    }

    .profile-avatar {
        width: 4.8rem;
        height: 4.8rem;
        border-radius: 17px;
    }

    .profile-score {
        width: 100%;
    }

    .profile-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-tab {
        grid-template-columns: 1.2rem minmax(0, 1fr);
        justify-items: start;
        text-align: left;
    }

    .profile-composer__header,
    .profile-post__footer,
    .profile-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-composer__header {
        display: flex;
    }

    .profile-section-heading {
        display: flex;
    }

    .profile-post__media {
        grid-template-columns: 1fr;
    }

    .profile-photo-library {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .community-form-heading {
        grid-template-columns: 1fr;
    }
}
