
.profile-games-section { padding: 8px 0 24px; }
.profile-section-title {
    color: var(--ff-gray-6);
    font-size: 1.4em;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 24px;
}
.profile-games-empty {
    color: var(--ff-gray-4);
    font-size: 14px;
    margin: 0;
    text-align: center;
    padding: 24px 0;
    font-style: italic;
}

.profile-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
@media (max-width: 1199.98px) { .profile-games-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767.98px)  { .profile-games-grid { grid-template-columns: 1fr; gap: 14px; } }

.profile-games-grid .game-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: var(--ff-white);
    overflow: hidden;
    box-shadow: 0 2px 5px var(--ff-black-a10);
    border-radius: 4px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.profile-games-grid .game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--ff-games-card-shadow-hover);
}
.profile-games-grid .game-card-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-color: var(--ff-games-cover-bg);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.profile-games-grid .game-card-image-wrapper picture,
.profile-games-grid .game-card-image-wrapper img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}
.profile-games-grid .game-card:hover .game-card-image-wrapper img { transform: scale(1.05); }

.profile-game-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ff-font-body);
    font-size: 2em; font-weight: 600;
    color: var(--ff-games-cover-icon); letter-spacing: 0.06em;
    background-color: var(--ff-games-cover-bg);
}

.profile-games-grid .game-card-info {
    background-color: var(--ff-black);
    color: var(--ff-white);
    padding: 10px 12px;
    box-sizing: border-box;
    display: flex; flex-direction: column;
    justify-content: center;
    min-height: 50px;
}
.profile-games-grid .game-card-info h3 {
    font-size: 0.85em;
    margin: 0 0 3px 0;
    font-weight: bold;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile-games-grid .game-card-info .release-date {
    font-size: 0.72em;
    margin: 0;
    color: var(--ff-gray-3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 767.98px) {
    .profile-games-grid .game-card-image-wrapper { aspect-ratio: 16 / 9; border-radius: 4px 4px 0 0; }
    .profile-games-grid .game-card-image-wrapper picture,
    .profile-games-grid .game-card-image-wrapper img { border-radius: 4px 4px 0 0; }
    .profile-games-grid .game-card-info { padding: 10px 15px; min-height: initial; border-radius: 0 0 4px 4px; }
    .profile-games-grid .game-card-info h3,
    .profile-games-grid .game-card-info .release-date { white-space: normal; }
}

.profile-game-detail { padding: 4px 0 24px; }

.gd-back {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--ff-gray-5); font-size: 13px; text-decoration: none;
}
.gd-back:hover { color: var(--ff-black); text-decoration: underline; }

.gd-level-block {
    margin: 0 0 18px;
    width: 100%;
    display: block;
}
.gd-level-progress {
    display: block;
    height: 12px;
    background: var(--ff-games-progress-track);
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    position: relative;
}
.gd-level-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--ff-black) 0%, var(--ff-gray-5) 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
    min-width: 0;
}
.gd-level-top {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    margin-bottom: 6px;
}
.gd-level-bottom {
    display: flex;
    justify-content: flex-start;
    margin-top: 6px;
}
.gd-level-points {
    font-size: 13px;
    color: var(--ff-gray-5);
    font-weight: 600;
}
.gd-level-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: var(--ff-black);
}
.gd-level-tag-label {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--ff-black);
    font-weight: 700;
}
.gd-level-tag-value {
    font-family: var(--ff-font-display);
    font-size: 2.4em;
    line-height: 1;
    color: var(--ff-black);
}

.gd-hero {
    position: relative;
    background-color: var(--ff-black);
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16 / 5;
    margin-bottom: 24px;
}
.gd-banner { width: 100%; height: 100%; object-fit: cover; }
.gd-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--ff-games-hero-shade-bottom) 0%, var(--ff-games-hero-shade-top) 60%, transparent 100%);
    display: flex; align-items: flex-end;
}
.gd-hero-content {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 24px;
    color: var(--ff-white);
}
.gd-logo { height: 60px; width: auto; max-width: 60%; display: block; margin: 0 0 6px; }
.gd-title { margin: 0 0 4px; font-size: 1.6em; font-weight: 700; }
.gd-sub { font-size: 13px; opacity: 0.85; }
.gd-hero-text { display: flex; flex-direction: column; align-items: flex-start; }

.gd-section { margin-bottom: 28px; }
.gd-section-title {
    color: var(--ff-gray-6); font-size: 1.15em; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin: 0 0 12px; display: flex; align-items: center; gap: 10px;
}
.gd-pill {
    background: var(--ff-gray-1); color: var(--ff-gray-5);
    padding: 2px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 600;
}

.gd-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 991.98px) { .gd-stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .gd-stat-grid { grid-template-columns: repeat(2, 1fr); } }
.gd-stat {
    background: var(--ff-white); border: 1px solid var(--ff-gray-2); border-radius: 6px;
    padding: 14px; display: flex; flex-direction: column; gap: 4px;
    text-align: left;
}
.gd-stat-v { font-size: 1.4em; font-weight: 700; color: var(--ff-black); }
.gd-stat-l {
    font-size: 11px; font-weight: 600; color: var(--ff-gray-5);
    text-transform: uppercase; letter-spacing: 0.5px;
}


.gd-empty { color: var(--ff-gray-4); font-style: italic; padding: 16px 0; }
.gd-ach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (max-width: 767.98px) { .gd-ach-grid { grid-template-columns: 1fr; } }
.gd-ach {
    background: var(--ff-white); border: 1px solid var(--ff-gray-2); border-radius: 6px;
    padding: 14px 16px;
    opacity: 0.7;
}
.gd-ach.unlocked { opacity: 1; border-color: var(--ff-black); }
.gd-ach-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.gd-ach-name { font-weight: 700; color: var(--ff-black); }
.gd-ach-pts { font-size: 11px; font-weight: 600; color: var(--ff-gray-5); }
.gd-ach-desc { margin: 6px 0 10px; font-size: 13px; color: var(--ff-gray-5); }
.gd-ach-progress { height: 6px; background: var(--ff-games-ach-progress-track); border-radius: 3px; overflow: hidden; }
.gd-ach-progress-bar { height: 100%; background: var(--ff-black); transition: width 0.3s; }
.gd-ach-meta { font-size: 11px; color: var(--ff-gray-5); margin-top: 6px; font-weight: 600; }
.gd-ach.unlocked .gd-ach-meta { color: var(--ff-success); }

.gd-ach-body { display: flex; gap: 12px; align-items: flex-start; }
.gd-ach-icon-wrap {
    flex-shrink: 0;
    width: 56px; height: 56px;
}
.gd-ach-icon {
    width: 56px; height: 56px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.gd-ach-icon.locked {
    filter: grayscale(1) brightness(0.55);
    opacity: 0.6;
}
.gd-ach-icon-fallback {
    width: 56px; height: 56px;
    border-radius: 4px;
    background: var(--ff-games-ach-icon-bg);
    color: var(--ff-games-ach-icon);
    border: 1px solid var(--ff-games-ach-icon-line);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6em;
    font-family: var(--ff-font-display);
}
.gd-ach-icon-fallback.unlocked {
    background: var(--ff-black);
    color: var(--ff-white);
    border-color: var(--ff-black);
}
.gd-ach-content { flex: 1; min-width: 0; }

.gd-prestige-banner {
    display: flex; gap: 16px; align-items: stretch;
    background: var(--ff-white);
    border: 1px solid var(--ff-gray-2);
    border-radius: 4px;
    padding: 16px 18px;
    margin: 0 0 14px;
    width: 100%;
}
.gd-prestige-banner-icon {
    flex-shrink: 0;
    width: 64px; height: 64px;
    display: flex; align-items: center;
}
.gd-prestige-banner-icon .gd-ach-icon { width: 64px; height: 64px; }
.gd-prestige-banner-body { flex: 1; min-width: 0; }
.gd-prestige-banner-head {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 6px;
}
.gd-prestige-banner-name {
    font-weight: 700; color: var(--ff-black); font-size: 1.05em;
}
.gd-prestige-banner-pts {
    margin-left: auto;
    font-size: 11px; font-weight: 700; color: var(--ff-gray-5);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.gd-prestige-banner-desc {
    margin: 0 0 10px; color: var(--ff-gray-5); font-size: 13px;
}
.gd-prestige-banner .gd-ach-progress {
    height: 8px;
    background: var(--ff-games-progress-track);
    border-radius: 4px;
}
.gd-prestige-banner .gd-ach-progress-bar {
    background: var(--ff-black);
    border-radius: 4px;
}

.gd-ach.prestige { border-color: var(--ff-black); box-shadow: 0 0 0 1px var(--ff-black) inset; }
.gd-ach-prestige-badge {
    display: inline-block;
    background: var(--ff-black);
    color: var(--ff-white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 8px;
    margin-right: 6px;
    vertical-align: middle;
}

@media (max-width: 575.98px) {
    .gd-level-tag-value { font-size: 2em; }
}

.gd-compare-toggle {
    margin-left: auto;
    background: var(--ff-white);
    border: 1px solid var(--ff-gray-3);
    color: var(--ff-black);
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    padding: 6px 14px; border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.gd-compare-toggle:hover { background: var(--ff-gray-1); }
.gd-compare-toggle[aria-pressed="true"] {
    background: var(--ff-black); color: var(--ff-white); border-color: var(--ff-black);
}
.gd-achievements-section.compare-on .gd-ach-single { display: none; }
.gd-ach-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 991.98px) { .gd-ach-compare { grid-template-columns: 1fr; } }
.gd-ach-col-title {
    font-size: 0.9em; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: var(--ff-gray-5); margin: 0 0 12px;
    padding-bottom: 8px; border-bottom: 1px solid var(--ff-gray-2);
}
