:root {
    --arcane-panel: rgba(14, 19, 33, 0.86);
    --arcane-border: rgba(140, 167, 212, 0.22);
}

.community-shell {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    overflow-x: hidden;
}

.community-hero {
    position: relative;
    border: 1px solid rgba(216, 178, 110, 0.3);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 18px;
    background: linear-gradient(120deg, rgba(32, 40, 64, 0.92), rgba(20, 33, 57, 0.9) 42%, rgba(34, 27, 44, 0.88));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.community-hero h1 {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    background: linear-gradient(135deg, #f3d798, #d8b26e 55%, #9f7840);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.community-hero p {
    margin-top: 8px;
    color: #bbcae7;
}

.hero-orb {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff4cc 0%, #d8b26e 36%, #5e89da 100%);
    opacity: 0.9;
    box-shadow: 0 0 26px rgba(216, 178, 110, 0.6);
    animation: orbPulse 3.6s ease-in-out infinite;
}

.composer-card,
.feed-post,
.content-card,
.composer-modal-card {
    background: var(--arcane-panel);
    border: 1px solid var(--arcane-border);
    border-radius: 14px;
}

.composer-card {
    margin-bottom: 16px;
    padding: 14px;
}

.community-campaign-browser {
    margin-bottom: 14px;
    padding: 14px;
}

.community-campaign-head h2 {
    margin: 0;
}

.community-campaign-head p {
    margin: 6px 0 12px;
}

.community-campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.community-campaign-card {
    border: 1px solid rgba(121, 151, 203, 0.24);
    border-radius: 12px;
    background: rgba(8, 13, 24, 0.55);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.community-campaign-card h3 {
    margin: 0;
}

.community-campaign-card p {
    margin: 0;
}

.community-campaign-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.composer-head {
    display: flex;
    gap: 10px;
    align-items: center;
}

.composer-trigger {
    flex: 1;
    border: 1px solid rgba(121, 151, 203, 0.26);
    background: rgba(10, 14, 25, 0.65);
    border-radius: 999px;
    color: #dce4f7;
    padding: 10px 14px;
    text-align: left;
    cursor: pointer;
}

.composer-notify {
    color: #fff;
    background: rgba(111, 169, 255, 0.18);
    border: 1px solid rgba(111, 169, 255, 0.4);
    padding: 6px 10px;
    border-radius: 999px;
    text-decoration: none;
}

#fim-comments-list {
    border: 1px solid rgba(121, 151, 203, 0.2);
    border-radius: 10px;
    padding: 8px;
    background: rgba(10, 16, 27, 0.55);
}

.composer-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.65);
    display: flex!important;
    justify-content: center;
    align-items: flex-start;
    padding-top: 9vh;
    overflow-y: auto;
}

.composer-modal[hidden] {
    display: none !important;
}

.composer-modal-card {
    width: min(640px, 94vw);
    padding: 16px;
}

.composer-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(121, 151, 203, 0.2);
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.post-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-form input,
.post-form textarea,
.post-form select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(121, 151, 203, 0.25);
    background: rgba(11, 15, 26, 0.82);
    color: #ecf1ff;
    padding: 10px 12px;
}

.post-form textarea {
    min-height: 140px;
    resize: vertical;
}

.composer-row {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
}

.composer-preview-wrap {
    border: 1px solid rgba(121, 151, 203, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.composer-preview {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
}

.file-label {
    border: 1px dashed rgba(121, 151, 203, 0.4);
    border-radius: 10px;
    padding: 10px;
    color: #c7d3ee;
    cursor: pointer;
}

.file-label input {
    display: none;
}

.btn-post {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    background: linear-gradient(135deg, #ddc38f, #9f7a39);
    color: #0f1116;
    font-weight: 700;
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feed-post {
    padding: 14px;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.feed-post-vip {
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
    background: linear-gradient(135deg, var(--vip-card-color, rgba(24, 44, 78, 0.94)) 0%, rgba(8, 12, 20, 0.94) 100%);
    min-height: 0;
    border: none;
}

.feed-post-bannered {
    min-height: 0;
    background: linear-gradient(135deg, rgba(16, 28, 50, 0.92), rgba(8, 12, 20, 0.94));
    border: none;
}

.feed-post-backdrop {
    position: absolute !important;
    inset: 0 !important;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0 !important;
    pointer-events: none;
}

.feed-post-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 5, 10, 0.72) 0%, rgba(2, 3, 8, 0.94) 100%);
}

.feed-post-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.04);
    filter: saturate(1.04);
}

.feed-post > * {
    position: relative;
    z-index: 1;
}

.post-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    justify-content: flex-start;
}

.post-main-copy,
.post-foot {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-meta,
.comment-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    color: #9eb0d0;
    font-size: 0.8rem;
}

.author-link {
    color: #ecf1ff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.author-avatar,
.author-avatar-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-avatar-wrap {
    position: relative;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.author-frame {
    position: absolute;
    inset: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    object-fit: contain;
    pointer-events: none;
}

.author-avatar {
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(9, 13, 22, 0.45);
    padding: 2px;
}

.author-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    background: linear-gradient(135deg, #457ad6, #274a8a);
    color: #fff;
}

.post-author,
.comment-author {
    color: #f3f7ff;
    text-decoration: none;
    font-weight: 600;
}

.vip-badge {
    border: 1px solid rgba(216, 178, 110, 0.45);
    background: rgba(216, 178, 110, 0.18);
    color: #f7e3b4;
    font-size: 0.68rem;
    border-radius: 999px;
    padding: 2px 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.post-campaign-tag {
    border: 1px solid rgba(111, 169, 255, 0.45);
    color: #9dc0ff;
    background: rgba(111, 169, 255, 0.12);
    border-radius: 999px;
    padding: 2px 8px;
}

.post-edited {
    color: #b4b8c6;
    font-size: 0.74rem;
}

.post-title,
.post-title a {
    margin: 0;
    color: #f3f7ff;
    font-family: 'Cinzel', serif;
    text-decoration: none;
}

.post-preview,
.comment-body {
    color: #c7d3ee;
    line-height: 1.6;
    white-space: pre-wrap;
}

.post-image-wrap {
    width: 100%;
    height: auto;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.post-image-thumb,
.post-full-image {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.reaction-summary {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    color: #bad0f5;
}

.reaction-total {
    margin-left: auto;
}

.reaction-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

.reaction-btn {
    border: none;
    color: #b8caeb;
    background: transparent;
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.reaction-btn:hover {
    color: #dce8ff;
}

.reaction-btn.active {
    color: #f7e3b4;
}

.post-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.post-actions form {
    margin: 0;
}

.action-btn {
    color: #b7c9ea;
    border: 1px solid rgba(121, 151, 203, 0.22);
    background: rgba(14, 19, 33, 0.72);
    border-radius: 8px;
    padding: 6px 10px;
    text-decoration: none;
    cursor: pointer;
}

.action-btn.danger,
.comment-delete {
    color: #f08989;
}

.comments-section {
    margin-top: 16px;
}

.comments-header {
    font-family: 'Cinzel', serif;
    margin-bottom: 10px;
    color: #d7dff0;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(121, 151, 203, 0.2);
    border-radius: 10px;
    padding: 10px;
    background: rgba(12, 17, 30, 0.75);
}

.comment-form textarea {
    min-height: 80px;
}

.comment-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item {
    border: 1px solid rgba(121, 151, 203, 0.18);
    border-radius: 10px;
    background: rgba(10, 15, 25, 0.66);
    padding: 10px;
}

.comment-item-vip-animated {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-color: rgba(216, 178, 110, 0.28);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.comment-item-vip-animated::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 5, 10, 0.62) 0%, rgba(2, 3, 8, 0.85) 100%);
    pointer-events: none;
}

.comment-item-vip-animated > * {
    position: relative;
    z-index: 1;
}

.reply-list {
    margin-top: 10px;
    border-left: 2px solid rgba(121, 151, 203, 0.22);
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reply-item {
    border: 1px solid rgba(121, 151, 203, 0.14);
    border-radius: 8px;
    padding: 8px;
    background: rgba(14, 20, 34, 0.66);
}

.reply-item.comment-item-vip-animated {
    border-color: rgba(216, 178, 110, 0.24);
    }

    .composer-options {
        display: flex;
        flex: 1;
        gap: 8px;
    }

    .composer-option {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 6px;
        border: 1px solid rgba(121, 151, 203, 0.26);
        background: rgba(10, 14, 25, 0.65);
        border-radius: 8px;
        color: #dce4f7;
        padding: 8px 10px;
        text-align: left;
        cursor: pointer;
        text-decoration: none;
        font-size: 0.85rem;
        transition: all 0.2s ease;
    }

    .composer-option:hover {
        background: rgba(10, 14, 25, 0.85);
        border-color: rgba(121, 151, 203, 0.4);
    }

    .composer-option .option-icon {
        font-size: 1.1em;
        flex-shrink: 0;
    }

    .home-shortcuts-collapse-inner {
        margin-bottom: 14px;
    }

    .home-shortcuts-toggle-inner {
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        color: #dce4f7;
        font-size: 0.95rem;
        font-weight: 500;
        padding: 8px 0;
        border: none;
        background: none;
        width: 100%;
        text-align: left;
    }

    .home-shortcuts-toggle-inner:hover {
        color: #ecf1ff;
    }

    .home-shortcuts-toggle-inner .home-toggle-arrow {
        transition: transform 0.3s ease;
        display: inline-block;
    }

    .home-shortcuts-collapse-inner[open] .home-shortcuts-toggle-inner .home-toggle-arrow {
        transform: rotate(180deg);
    }

    .online-masters-badge {
        display: inline-block;
        background: rgba(111, 169, 255, 0.15);
        border: 1px solid rgba(111, 169, 255, 0.35);
        color: #a8c5ff;
        padding: 6px 12px;
        border-radius: 999px;
        font-size: 0.85rem;
        font-weight: 500;
        margin-bottom: 12px;
        margin-left: 0;
    }

    .online-masters-badge strong {
        color: #e8f0ff;
        font-weight: 700;
    overflow: hidden;
}

.replying-to {
    color: #9dbaf0;
    font-size: 0.8rem;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-item {
    border: 1px solid rgba(121, 151, 203, 0.2);
    border-radius: 10px;
    background: rgba(12, 17, 29, 0.78);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.notification-item.unread {
    border-color: rgba(216, 178, 110, 0.45);
    box-shadow: 0 0 0 1px rgba(216, 178, 110, 0.25) inset;
}

.notification-main p {
    margin: 0;
    color: #d8e3f8;
}

.comment-time {
    color: #91a5ca;
    font-size: 0.78rem;
}

.feed-empty {
    padding: 24px;
    text-align: center;
    color: #9eb0d0;
    border: 1px dashed rgba(121, 151, 203, 0.2);
    border-radius: 12px;
}

.pager-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .community-shell {
        max-width: 100%;
    }

    .feed-list {
        width: 100%;
    }

    .feed-post,
    .content-card,
    .composer-card,
    .composer-modal-card {
        max-width: 100%;
    }

    .composer-notify {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .post-actions .action-btn,
    .post-actions form .action-btn {
        min-height: 30px;
        padding: 4px 8px;
        font-size: 0.74rem;
    }

    .comment-meta {
        row-gap: 4px;
    }

    #fim-comments-list {
        max-height: 220px;
    }

    .composer-row {
        grid-template-columns: 1fr;
    }

    .reaction-total {
        margin-left: 0;
        width: 100%;
    }

    .hero-orb {
        width: 58px;
        height: 58px;
    }
}

/* ===================================================
   GitHub-style profile layout
   =================================================== */

.profile-public-shell {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    isolation: isolate;
}

.profile-public-shell.has-page-backdrop::before {
    content: '';
    position: fixed;
    inset: 0;
    border-radius: 0;
    background-image:
        linear-gradient(180deg, rgba(8, 13, 25, 0.18) 0%, rgba(8, 13, 25, 0.72) 26%, rgba(8, 13, 25, 0.9) 100%),
        var(--profile-page-backdrop);
    background-size: cover;
    background-position: center top;
    filter: blur(12px) saturate(1.08);
    opacity: 0.66;
    transform: scale(1.03);
    z-index: -2;
    pointer-events: none;
}

.profile-public-shell.has-page-backdrop::after {
    content: '';
    position: fixed;
    inset: 0;
    border-radius: 0;
    background-image:
        linear-gradient(180deg, rgba(5, 10, 19, 0.3) 0%, rgba(5, 10, 19, 0.82) 100%),
        var(--profile-page-backdrop);
    background-size: cover;
    background-position: center;
    opacity: 0.46;
    filter: none;
    z-index: -1;
    pointer-events: none;
}

.profile-public-shell > * {
    position: relative;
    z-index: 1;
}

.profile-gh-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
    margin-top: 18px;
    position: relative;
    z-index: 2;
}

.profile-steam-hero {
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
    padding: 0;
    min-height: 390px;
    border-radius: 20px;
    border: 1px solid rgba(112, 146, 199, 0.14);
    background-image:
        linear-gradient(180deg, rgba(4, 7, 16, 0.58) 0%, rgba(4, 7, 16, 0.68) 100%),
        var(--profile-primary-banner, linear-gradient(135deg, var(--profile-base-color, #4a1c8a) 0%, #6726b1 32%, #1f3577 100%));
    background-size: cover;
    background-position: center;
    box-shadow: 0 22px 44px rgba(2, 8, 18, 0.34);
}

.profile-steam-hero-fog {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 9, 18, 0.28) 0%, rgba(5, 9, 18, 0.1) 35%, transparent 58%),
        radial-gradient(circle at 15% 12%, rgba(165, 195, 255, 0.08) 0%, transparent 36%);
    pointer-events: none;
    z-index: 0;
}

.profile-steam-hero-inner {
    position: relative;
    z-index: 1;
    min-height: 390px;
    padding: 14px 14px 18px;
}

.profile-steam-hero-actions {
    width: min(100%, 1040px);
    margin: 0 auto 14px;
    display: flex;
    justify-content: flex-end;
}

.profile-steam-top-action {
    min-width: 176px;
    justify-content: center;
}

.profile-steam-stage {
    width: min(100%, 1040px);
    margin: 0 auto;
    display: grid;
    gap: 12px;
    position: relative;
    padding: 12px;
    border-radius: 22px;
    overflow: hidden;
}

.profile-steam-stage::before,
.profile-steam-stage::after {
    display: none;
}

.profile-steam-stage > * {
    position: relative;
    z-index: 1;
}

.profile-steam-profile-panel {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    justify-content: start;
    padding: 22px 20px;
    min-height: 196px;
    width: 100%;
    border-radius: 18px;
    background: rgba(5, 9, 18, 0.22);
    border: 1px solid rgba(165, 195, 255, 0.2);
    box-shadow: 0 0 0 1px rgba(165, 195, 255, 0.06) inset;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: relative;
    overflow: hidden;
}

.profile-gh-about-column::before,
.profile-gh-main > .content-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 13, 25, 0.06) 0%, rgba(8, 13, 25, 0.12) 100%);
    pointer-events: none;
}

.profile-steam-profile-panel::before,
.profile-steam-achievements-block::before {
    display: none;
}

.profile-steam-profile-panel > *,
.profile-steam-achievements-block > *,
.profile-gh-about-column > *,
.profile-gh-main > .content-card > * {
    position: relative;
    z-index: 1;
}

.profile-steam-avatar-stack {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 12px;
    width: 100%;
}

.profile-steam-avatar-wrap {
    width: 148px;
    height: 148px;
    position: relative;
}

.profile-steam-avatar-wrap-raised {
    margin-top: -18px;
}

.profile-steam-tag-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 360px;
    flex-direction: row;
}

.profile-steam-avatar,
.profile-steam-avatar-placeholder {
    width: 148px;
    height: 148px;
    border: 4px solid rgba(222, 233, 255, 0.82);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #3260a3, #182b49);
}

.profile-steam-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.profile-steam-avatar-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.profile-steam-copy {
    display: grid;
    gap: 8px;
    align-content: center;
}

.profile-steam-name {
    margin: 0;
    color: #efd9a4;
    font-size: clamp(1.9rem, 3.1vw, 2.65rem);
    line-height: 1.04;
    letter-spacing: 0.01em;
}

.profile-steam-handle {
    margin: 0;
    color: #b8c8e6;
    font-size: 0.98rem;
}

.profile-steam-status {
    margin: 6px 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.profile-steam-status.is-online {
    color: #86efac;
}

.profile-steam-status.is-offline {
    color: #a6b6d4;
}

.profile-steam-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 8px;
    color: #dbe7ff;
    font-size: 0.92rem;
}

.profile-steam-achievements-block {
    background: rgba(5, 9, 18, 0.22);
    border: 1px solid rgba(165, 195, 255, 0.2);
    box-shadow: 0 0 0 1px rgba(165, 195, 255, 0.06) inset;
    border-radius: 18px;
    padding: 16px 14px 18px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: relative;
    overflow: hidden;
}

.profile-steam-custom-tag-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.profile-steam-custom-tag-row-inline {
    justify-content: flex-start;
}

.profile-steam-panel-title {
    margin: 0 0 12px;
    color: #e7efff;
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-steam-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(140, 169, 222, 0.28);
    background: rgba(13, 24, 44, 0.72);
    color: #e4ecff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.profile-steam-tag-custom {
    max-width: 100%;
    text-align: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.profile-steam-tag-neutral {
    background: rgba(18, 32, 56, 0.78);
    border-color: rgba(140, 169, 222, 0.24);
}

.profile-steam-tag-vip {
    background: rgba(132, 91, 23, 0.55);
    border-color: rgba(230, 192, 118, 0.42);
    color: #f6e2b3;
}

.profile-steam-tag-plan {
    background: rgba(26, 71, 53, 0.64);
    border-color: rgba(102, 196, 154, 0.34);
    color: #dff8ef;
}

.profile-steam-achievements-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.profile-steam-achievements-head .profile-steam-panel-title {
    margin-bottom: 0;
}

.profile-steam-achievements-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    perspective: 1200px;
}

.profile-steam-achievement-card {
    position: relative;
    min-height: 124px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(126, 152, 194, 0.18);
    background: linear-gradient(180deg, rgba(15, 27, 49, 0.72), rgba(9, 16, 31, 0.9));
    color: #dbe7ff;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 10px 18px rgba(2, 8, 18, 0.18);
}

.profile-steam-achievement-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(152, 182, 231, 0.34);
    box-shadow: 0 16px 28px rgba(2, 8, 18, 0.28);
}

.profile-steam-achievement-card:focus-visible {
    outline: 2px solid rgba(158, 194, 255, 0.88);
    outline-offset: 2px;
}

.profile-steam-achievement-flip {
    position: relative;
    display: block;
    width: 100%;
    min-height: 138px;
    transform-style: preserve-3d;
    transition: transform 0.42s ease;
}

.profile-steam-achievement-card:hover .profile-steam-achievement-flip,
.profile-steam-achievement-card.is-flipped .profile-steam-achievement-flip {
    transform: rotateY(180deg);
}

.profile-steam-achievement-face {
    position: absolute;
    inset: 0;
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 14px 12px;
    border-radius: 14px;
    backface-visibility: hidden;
}

.profile-steam-achievement-front {
    background: linear-gradient(180deg, rgba(15, 27, 49, 0.76), rgba(9, 16, 31, 0.94));
}

.profile-steam-achievement-back {
    background: linear-gradient(180deg, rgba(22, 42, 76, 0.92), rgba(11, 20, 37, 0.96));
    transform: rotateY(180deg);
    justify-items: start;
}

.profile-steam-achievement-copy {
    display: grid;
    gap: 6px;
}

.profile-steam-achievement-card strong {
    display: block;
    font-size: 0.74rem;
    line-height: 1.35;
}

.profile-book-card {
    display: grid;
    gap: 8px;
}

.profile-book-cover {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.profile-book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #aebddb;
    font-size: 0.86rem;
}

.profile-steam-achievement-card small {
    color: #96aac9;
    font-size: 0.72rem;
    line-height: 1.35;
}

.profile-steam-achievement-card.is-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
}

.profile-steam-achievement-placeholder-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.profile-steam-achievement-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(71, 119, 204, 0.9), rgba(33, 56, 98, 0.92));
    color: #f5f9ff;
    font-size: 1.1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.profile-gh-about-column,
.profile-gh-main {
    min-width: 0;
}

.profile-gh-about-column,
.profile-gh-nav-horizontal {
    padding: 18px;
    background: linear-gradient(180deg, rgba(10, 18, 34, 0.72), rgba(7, 12, 24, 0.82));
    border-color: rgba(115, 149, 203, 0.2);
    backdrop-filter: blur(8px);
}

.profile-gh-about-column {
    position: relative;
    overflow: hidden;
}

.profile-gh-main > .content-card {
    background: linear-gradient(180deg, rgba(10, 18, 34, 0.68), rgba(7, 12, 24, 0.8));
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.profile-gh-about-column::before,
.profile-gh-main > .content-card::before {
    background-image:
        linear-gradient(180deg, rgba(8, 13, 25, 0.34) 0%, rgba(8, 13, 25, 0.7) 100%),
        var(--profile-page-backdrop, none);
    background-position: center;
    opacity: 0.5;
    filter: blur(16px) saturate(1.12);
}

.profile-gh-about-column {
    display: grid;
    gap: 14px;
    align-self: stretch;
    min-height: 100%;
}

.profile-gh-about-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.profile-gh-about-head h2 {
    margin: 0;
    color: #e8f0ff;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-gh-about-edit {
    padding: 6px 10px;
    font-size: 0.78rem;
}

.profile-gh-about-body {
    color: #c7d3ee;
    line-height: 1.65;
    margin: 0;
}

.profile-gh-about-empty {
    min-height: 180px;
    border-radius: 14px;
    border: 1px dashed rgba(112, 144, 195, 0.26);
    background: rgba(9, 16, 30, 0.55);
    display: grid;
    place-items: center;
    color: #95a8c8;
    text-align: center;
    padding: 18px;
    line-height: 1.6;
}

.home-social-shell {
    max-width: 1280px;
}

.home-hero-card {
    margin-bottom: 12px;
}

.home-stories-card {
    margin-bottom: 12px;
}

.home-stories-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 1fr);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.home-story-item {
    border: 1px solid rgba(126, 160, 219, 0.28);
    border-radius: 12px;
    min-height: 150px;
    padding: 12px;
    background: linear-gradient(145deg, rgba(13, 24, 42, 0.88), rgba(9, 15, 28, 0.9));
    display: grid;
    align-content: end;
    gap: 4px;
    background-size: cover;
    background-position: center;
}

.home-story-item small {
    color: #d6e4ff;
    font-size: 0.72rem;
}

.home-story-item strong {
    color: #ffffff;
}

.home-story-item span {
    color: #c6d6f4;
    font-size: 0.78rem;
}

.home-shortcuts-collapse {
    margin-bottom: 10px;
}

.home-shortcuts-collapse > summary {
    list-style: none;
}

.home-shortcuts-collapse > summary::-webkit-details-marker {
    display: none;
}

.home-shortcuts-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(160deg, rgba(10, 18, 36, 0.9), rgba(7, 13, 26, 0.92));
    border-radius: 12px;
    border: 1px solid rgba(102, 140, 205, 0.3);
    color: #c7d3ee;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.home-toggle-arrow {
    margin-left: auto;
    transition: transform 0.18s ease;
}

.home-shortcuts-collapse[open] .home-toggle-arrow {
    transform: rotate(180deg);
}

.home-shortcuts-inline {
    margin-top: 6px;
}

.home-shortcut-sections {
    display: grid;
    gap: 12px;
}

.home-shortcut-section {
    display: grid;
    gap: 8px;
}

.home-shortcut-section-title {
    color: #d9e6ff;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 2px;
}

.home-menu-grid-inline {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    padding-bottom: 2px;
}

.home-menu-grid-inline .home-menu-tile-compact {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    border: 1px solid rgba(122, 159, 224, 0.24);
    border-radius: 10px;
    padding: 9px 6px;
    background: rgba(10, 17, 31, 0.55);
}

.home-menu-grid-inline .home-menu-copy strong {
    font-size: 0.75rem;
}

.home-menu-grid-inline .home-menu-copy small {
    display: none;
}

.home-news-card {
    margin-bottom: 12px;
}

.home-news-rotator {
    position: relative;
    min-height: 210px;
}

.home-news-slide {
    display: none;
    border: 1px solid rgba(117, 159, 233, 0.28);
    border-radius: 14px;
    padding: 18px;
    min-height: 210px;
    text-decoration: none;
    background: linear-gradient(125deg, rgba(11, 18, 35, 0.92), rgba(6, 10, 20, 0.94));
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.home-news-slide.is-static,
.home-news-slide.is-active {
    display: flex;
    align-items: flex-end;
}

.home-news-copy {
    max-width: 760px;
    display: grid;
    gap: 6px;
}

.home-news-copy small {
    color: #d6e3ff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.home-news-copy strong {
    color: #fff;
    font-size: clamp(1.15rem, 2.1vw, 1.55rem);
    line-height: 1.2;
}

.home-news-copy span {
    color: #d3e0fa;
    font-size: 0.9rem;
    line-height: 1.45;
}

.home-feed-column {
    display: grid;
    gap: 12px;
}

.home-support-stack {
    margin-top: 12px;
    display: grid;
    gap: 12px;
}

.home-support-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 12px;
}

.home-alerts-card {
    max-height: 240px;
    overflow: auto;
}

.home-bottom-composer {
    margin-bottom: 0;
}

.home-layout-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 280px;
    gap: 12px;
    align-items: start;
}

.home-left-column,
.home-right-column,
.home-feed-column {
    display: grid;
    gap: 12px;
}

.home-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.home-menu-grid-vertical {
    grid-template-columns: 1fr;
}

.home-menu-tile {
    border: 1px solid rgba(122, 159, 224, 0.24);
    border-radius: 12px;
    padding: 10px;
    background: linear-gradient(145deg, rgba(13, 22, 40, 0.86), rgba(8, 15, 30, 0.9));
    display: grid;
    gap: 4px;
    min-height: 110px;
    align-content: start;
}

.home-menu-tile-compact {
    min-height: 0;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 8px;
    border: none;
    background: transparent;
    transition: background 0.14s;
}

.home-menu-tile-compact:hover,
.home-menu-tile-compact:focus-visible {
    background: rgba(255, 255, 255, 0.07);
}

.home-left-nav-card {
    padding: 8px 4px;
    display: grid;
    gap: 0;
}

.home-left-nav-heading {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7a90b8;
    margin: 0 0 4px;
    padding: 0 6px;
}

.home-stats-card {
    padding: 10px 12px;
    margin-top: 0;
}

.home-menu-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.home-menu-tile-compact strong {
    font-size: 0.88rem;
    font-weight: 600;
    color: #dce4f7;
    line-height: 1.3;
}

.home-menu-tile-compact .home-menu-copy small {
    display: none;
}

.home-menu-emoji {
    font-size: 1.08rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.home-menu-tile small {
    color: #a8bddf;
    font-size: 0.76rem;
}

.home-index-composer {
    margin-bottom: 2px;
}

.home-online-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.home-online-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(124, 160, 216, 0.24);
    border-radius: 12px;
    background: rgba(10, 17, 31, 0.7);
    padding: 8px;
}

.home-online-avatar-wrap {
    width: 42px;
    height: 42px;
    position: relative;
}

.home-online-avatar {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.home-online-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1rem;
}

.home-online-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.home-online-copy {
    display: grid;
    gap: 2px;
}

.home-online-copy strong {
    font-size: 0.85rem;
}

.home-online-copy small {
    color: #9fd0ae;
    font-size: 0.72rem;
}

.home-online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.75);
}

.profile-gh-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: linear-gradient(170deg, rgba(11, 20, 39, 0.9), rgba(6, 11, 24, 0.96));
    border: 1px solid rgba(100, 140, 210, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    position: static;
}

.profile-gh-nav-horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 18px;
}

.profile-gh-nav-horizontal .profile-gh-nav-link {
    width: auto;
    flex: 0 0 auto;
    padding: 12px 8px;
    border-radius: 0;
    border-left: none;
    background: transparent;
    transform: none;
    gap: 7px;
}

.profile-gh-nav-horizontal .profile-gh-nav-link:hover,
.profile-gh-nav-horizontal .profile-gh-nav-link.active {
    background: transparent;
    border-left: none;
    color: #f0d9a7;
}

.profile-gh-nav-horizontal .profile-gh-nav-link.active {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.profile-gh-nav-separator {
    color: rgba(176, 194, 226, 0.42);
    font-size: 0.95rem;
    user-select: none;
}

.profile-gh-nav-horizontal .pnav-icon {
    font-size: 1rem;
    filter: none;
}

.profile-gh-nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    border-radius: 12px;
    color: #9fb4d6;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.14s;
    border-left: 3px solid transparent;
    position: relative;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.profile-gh-nav-link .pnav-icon {
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1;
    filter: grayscale(0.3);
    transition: filter 0.18s, transform 0.18s;
}

.profile-gh-nav-link .pnav-label {
    line-height: 1.2;
}

.profile-gh-nav-link:hover {
    background: rgba(100, 140, 255, 0.1);
    color: #d4e2ff;
    border-left-color: rgba(100, 140, 255, 0.35);
    transform: translateX(2px);
}

.profile-gh-nav-link:hover .pnav-icon {
    filter: grayscale(0);
    transform: scale(1.15);
}

.profile-gh-nav-link.active {
    background: linear-gradient(90deg, rgba(76, 138, 240, 0.2), rgba(76, 138, 240, 0.08));
    color: #cfe1ff;
    font-weight: 700;
    border-left-color: #60a5fa;
    letter-spacing: 0.02em;
}

.profile-gh-nav-link.active .pnav-icon {
    filter: grayscale(0);
}

.profile-gh-action-btn {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    min-width: 0;
    text-align: center;
    box-sizing: border-box;
    margin-top: 0;
    padding: 10px 18px;
    align-self: stretch;
}

.profile-gh-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-gh-main > .content-card {
    height: 100%;
}

.profile-load-more-row {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.profile-load-more-button {
    min-width: 170px;
}

.profile-bio-text {
    color: #c7d3ee;
    line-height: 1.65;
    margin: 0;
    white-space: pre-wrap;
}

/* Markdown body in profile bio */
.profile-gh-about-column .markdown-body {
    color: #c7d3ee;
    line-height: 1.65;
    font-size: 0.95rem;
}

.profile-gh-about-column .markdown-body h1,
.profile-gh-about-column .markdown-body h2,
.profile-gh-about-column .markdown-body h3 {
    color: #ecf1ff;
    margin-top: 0.8em;
    margin-bottom: 0.4em;
}

.profile-gh-about-column .markdown-body p { margin: 0.5em 0; }

.profile-gh-about-column .markdown-body a { color: #60a5fa; text-decoration: underline; }

.profile-gh-about-column .markdown-body code {
    background: rgba(255,255,255,0.08);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.88em;
}

.profile-gh-about-column .markdown-body pre {
    background: rgba(0,0,0,0.35);
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
}

.profile-gh-about-column .markdown-body table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.88rem;
    margin: 0.5em 0;
}

.profile-gh-about-column .markdown-body th,
.profile-gh-about-column .markdown-body td {
    border: 1px solid rgba(102,134,188,0.3);
    padding: 5px 10px;
}

.profile-gh-about-column .markdown-body img {
    max-width: 100%;
    border-radius: 6px;
}

.profile-gh-about-column .markdown-body p[align="center"],
.profile-gh-about-column .markdown-body div[align="center"] {
    text-align: center;
}

/* Responsive – collapse to single column on narrow screens */
@media (max-width: 1120px) {
    .home-menu-grid-inline {
        grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    }

    .home-support-grid {
        grid-template-columns: 1fr;
    }

    .profile-steam-hero-inner {
        min-height: 0;
    }

    .profile-steam-profile-panel {
        width: 100%;
    }

    .profile-gh-nav-horizontal {
        gap: 6px;
    }
}

@media (max-width: 860px) {
    .profile-gh-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .profile-gh-about-column {
        position: relative;
        top: auto;
    }

    .profile-steam-hero-actions {
        margin-bottom: 10px;
    }

    .profile-steam-profile-panel {
        grid-template-columns: 112px minmax(0, 1fr);
        align-items: center;
    }

    .profile-steam-avatar-wrap,
    .profile-steam-avatar,
    .profile-steam-avatar-placeholder {
        width: 112px;
        height: 112px;
    }

    .profile-steam-avatar-wrap-raised {
        margin-top: -8px;
    }

    .profile-steam-achievements-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .profile-gh-nav-horizontal {
        justify-content: center;
    }

    .profile-gh-nav-link {
        justify-content: flex-start;
        flex-direction: row;
        text-align: left;
        border-left: 3px solid transparent;
        border-bottom: none;
    }

    .profile-gh-nav-link:hover,
    .profile-gh-nav-link.active {
        transform: none;
        border-bottom-color: transparent;
    }
}

@media (max-width: 680px) {
    .home-shortcuts-toggle {
        font-size: 0.76rem;
        padding: 9px 10px;
    }

    .home-menu-grid-inline {
        grid-template-columns: repeat(2, minmax(76px, 1fr));
        gap: 6px;
    }

    .home-menu-grid-inline .home-menu-tile-compact {
        padding: 8px 4px;
    }

    .home-menu-grid-inline .home-menu-copy strong {
        font-size: 0.68rem;
    }

    .home-news-slide {
        min-height: 188px;
        padding: 14px;
    }

    .home-news-copy strong {
        font-size: 1.05rem;
    }

    .home-news-copy span {
        font-size: 0.82rem;
    }

    .home-support-grid {
        grid-template-columns: 1fr;
    }

    .home-bottom-composer .composer-head {
        flex-wrap: wrap;
    }

    .home-stories-strip {
        grid-auto-columns: minmax(170px, 1fr);
    }

    .profile-steam-hero {
        min-height: 0;
    }

    .profile-steam-hero-inner {
        padding: 18px;
        gap: 16px;
    }

    .profile-steam-profile-panel {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 14px;
        padding: 18px;
    }

    .profile-steam-meta {
        justify-content: center;
    }

    .profile-steam-custom-tag-row-inline {
        justify-content: center;
    }

    .profile-steam-achievement-card:hover {
        transform: none;
    }

    .profile-steam-achievements-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .profile-steam-achievement-card {
        min-height: 108px;
    }

    .profile-steam-achievement-placeholder-image {
        width: 54px;
        height: 54px;
    }

    .profile-gh-nav-horizontal {
        justify-content: center;
        padding: 14px;
    }

    .profile-gh-about-column,
    .profile-gh-nav-horizontal {
        padding: 16px;
    }

    .profile-gh-nav-link {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 500px) {
    .profile-steam-tag {
        width: 100%;
        justify-content: center;
    }

    .profile-steam-achievement-face {
        justify-items: center;
        text-align: center;
    }

    .profile-steam-achievements-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-gh-nav-horizontal {
        gap: 4px 8px;
    }

    .profile-gh-nav-separator {
        display: none;
    }

    .profile-gh-nav-link .pnav-label {
        display: inline;
    }

    .profile-gh-nav-link {
        justify-content: flex-start;
    }

    .profile-gh-nav-link .pnav-icon {
        font-size: 1.1rem;
    }
}
