* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    color: #c7d5e0;
    min-height: 100vh;
    padding: 20px;
}

#hub-button {
    background: rgba(102, 192, 244, 0.1);
    color: #66c0f4;
    border: 1px solid #66c0f4;

    padding: 12px 20px;
    border-radius: 6px;

    font-size: 16px;
    font-weight: bold;
    cursor: pointer;

    transition: all 0.3s;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1000;
}

/* Hover lift + glow */
#hub-button:hover {
    background: rgba(102, 192, 244, 0.2);
    transform: translateY(-2px);
}

/* Optional active/pressed state */
#hub-button:active {
    background: rgba(102, 192, 244, 0.3);
    border-color: #56a0d4;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: #66c0f4;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #66c0f4;
    font-size: 1.3em;
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(102, 192, 244, 0.3);
    border-top-color: #66c0f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #ff6b7a;
    padding: 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
}

.info {
    background: rgba(102, 192, 244, 0.1);
    border: 1px solid #66c0f4;
    color: #c7d5e0;
    padding: 20px;
    border-radius: 8px;
    margin: 20px auto 40px;
    max-width: 800px;
}

.info h3 {
    color: #66c0f4;
    margin-bottom: 15px;
}

.info code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    color: #66c0f4;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 1800px) {
    .games-grid {
grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1400px) {
    .games-grid {
grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .games-grid {
grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .games-grid {
grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .games-grid {
grid-template-columns: 1fr;
    }
}

.games-grid.hidden {
    display: none;
}

.game-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #3d5a6c;
    border-radius: 8px;
    padding: 0;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #66c0f4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.game-card-main {
    padding: 0;
}

.game-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
}

.game-icon {
    width: 100%;
    height: auto;
    aspect-ratio: 460 / 215;
    border-radius: 0;
    margin: 0;
    background: #3d5a6c;
    object-fit: cover;
}

.game-info {
    width: 100%;
    text-align: center;
    padding: 12px 15px 8px;
}

.game-title {
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-appid {
    color: #8f98a0;
    font-size: 0.8em;
    margin-bottom: 8px;
}

.game-source {
    color: #66c0f4;
    font-size: 0.75em;
    margin-top: 2px;
    font-weight: 600;
}

.game-progress-section {
    padding: 0 15px 15px 15px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    margin: 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #66c0f4, #56a0d4);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.progress-fill.low-percentage {
    justify-content: flex-start;
    padding-left: 5px;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin: 0;
    padding: 20px;
    border-top: 1px solid #3d5a6c;
    border-bottom: 1px solid #3d5a6c;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #66c0f4;
}

.stat-label {
    font-size: 0.85em;
    color: #8f98a0;
    margin-top: 5px;
}

.game-detail-view {
    display: none;
    max-width: 460px;
    margin: 0 auto;
}

.game-detail-view.active {
    display: block;
}

.back-button {
    background: rgba(102, 192, 244, 0.1);
    color: #66c0f4;
    border: 1px solid #66c0f4;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-button:hover {
    background: rgba(102, 192, 244, 0.2);
    transform: translateX(-5px);
}

.detail-header {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #3d5a6c;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    margin-bottom: 30px;
}

.detail-game-icon {
    width: 100%;
    height: auto;
    aspect-ratio: 460 / 215;
    display: block;
    object-fit: cover;
}

.detail-game-info {
    padding: 25px;
}

.detail-game-title {
    color: #fff;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.detail-game-appid {
    color: #8f98a0;
    font-size: 1em;
    margin-bottom: 20px;
}

.achievements-list {
    margin-top: 0;
    max-height: none;
    overflow-y: visible;
    padding: 0;
}

.achievements-section-title {
    color: #66c0f4;
    font-size: 1.2em;
    margin: 20px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3d5a6c;
}

.achievements-section-title.locked-title {
    color: #8f98a0;
}

/* NEW: Group Headers for DLCs/Updates */
.achievements-section-title.group-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 4px;
    border-bottom: none;
    margin-top: 30px;
    border-left: 4px solid #66c0f4;
    font-size: 1.1em;
}

.sort-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sort-button {
    background: rgba(102, 192, 244, 0.1);
    color: #66c0f4;
    border: 1px solid #66c0f4;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    min-width: 45px;
}

.sort-button:hover {
    background: rgba(102, 192, 244, 0.2);
}

.sort-button:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    margin-bottom: 5px;
    z-index: 1000;
    pointer-events: none;
}

.sort-button:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    margin-bottom: -5px;
    z-index: 1000;
    pointer-events: none;
}

.sort-button.active {
    background: rgba(102, 192, 244, 0.3);
    border-color: #56a0d4;
}

.achievement-desc.hidden-desc {
    font-style: italic;
    color: #6b7580;
}

.hidden-spoiler {
    font-style: italic;
    color: #6b7580;
}

.hidden-spoiler-text {
    display: inline;
    margin-top: 5px;
    background: #3d5a6c;
    color: transparent;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
    border-radius: 3px;
    padding: 1px 6px;
}

.hidden-spoiler-text:hover {
    background: transparent;
    color: #8f98a0;
}

.achievements-list::-webkit-scrollbar {
    width: 8px;
}

.achievements-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.achievements-list::-webkit-scrollbar-thumb {
    background: #66c0f4;
    border-radius: 4px;
}

.achievement {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border-left: 4px solid transparent;
    transition: all 0.2s;
}

.achievement:hover {
    background: rgba(0, 0, 0, 0.5);
}

.achievement.unlocked {
    border-left-color: #66c0f4;
}

.achievement.locked {
    opacity: 0.5;
}

.achievement-icon {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    margin-right: 15px;
    background: #3d5a6c;
    flex-shrink: 0;
    position: relative;
}

.achievement-icon.rare-glow {
    box-shadow: 0 0 10px 2px rgba(255, 215, 0, 0.6),
0 0 20px 4px rgba(255, 215, 0, 0.4),
0 0 30px 6px rgba(255, 215, 0, 0.2);
    animation: golden-pulse 2s ease-in-out infinite;
}

@keyframes golden-pulse {
    0%, 100% {
box-shadow: 0 0 10px 2px rgba(255, 215, 0, 0.6),
    0 0 20px 4px rgba(255, 215, 0, 0.4),
    0 0 30px 6px rgba(255, 215, 0, 0.2);
    }
    50% {
box-shadow: 0 0 15px 3px rgba(255, 215, 0, 0.8),
    0 0 25px 5px rgba(255, 215, 0, 0.6),
    0 0 35px 7px rgba(255, 215, 0, 0.3);
    }
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.05em;
}

.achievement-desc {
    font-size: 0.9em;
    color: #8f98a0;
    line-height: 1.4;
}

.achievement-unlock-time {
    font-size: 0.85em;
    color: #66c0f4;
    margin-top: 5px;
}

.achievement-rarity {
    font-size: 0.85em;
    margin-top: 5px;
    font-weight: bold;
    color: #8f98a0;
}

.rarity-rare {
    color: #ffd700;
}

.summary {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.summary.hidden {
    display: none;
}

.summary-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.gamer-card-container {
    flex-shrink: 0;
}

.gamer-card-container img {
    display: block;
    max-height: 80px;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .summary-header {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
.gamer-card-container {
        margin-top: 10px;
    }
}
    
/* Ensure the sort controls align center */
.grid-sort-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Safe for mobile */
}
.grid-sort-controls.hidden {
    display: none;
}

.grid-sort-button {
    background: rgba(102, 192, 244, 0.1);
    color: #66c0f4;
    border: 1px solid #66c0f4;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.grid-sort-button:hover {
    background: rgba(102, 192, 244, 0.2);
    transform: translateY(-2px);
}

.grid-sort-button.active {
    background: rgba(102, 192, 244, 0.3);
    border-color: #56a0d4;
}

.grid-sort-button:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 13px;
    margin-bottom: 8px;
    z-index: 1000;
    pointer-events: none;
}

.grid-sort-button:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    margin-bottom: 2px;
    z-index: 1000;
    pointer-events: none;
}

.profile-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #66c0f4;
    transition: transform 0.2s;
    cursor: pointer;
}

.profile-icon:hover {
    transform: scale(1.05);
}

.summary-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 20px;
}

/* ===== COMPARISON MODE STYLES ===== */

.compare-button {
    background: rgba(102, 192, 244, 0.1);
    color: #66c0f4;
    border: 1px solid #66c0f4;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.compare-button:hover {
    background: rgba(102, 192, 244, 0.2);
    transform: translateY(-2px);
}

.compare-button:active {
    background: rgba(102, 192, 244, 0.3);
    transform: translateY(0);
}

.compare-mode-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.toggle-btn {
    flex: 1;
    background: rgba(102, 192, 244, 0.1);
    color: #66c0f4;
    border: 1px solid #66c0f4;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn:hover {
    background: rgba(102, 192, 244, 0.2);
}

.toggle-btn.active {
    background: rgba(102, 192, 244, 0.3);
    border-color: #56a0d4;
}

.comparison-unavailable {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #3d5a6c;
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    margin: 20px 0;
}

.comparison-unavailable-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.6;
}

.comparison-unavailable h3 {
    color: #66c0f4;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.comparison-unavailable p {
    color: #c7d5e0;
    font-size: 1.1em;
    line-height: 1.6;
}

.comparison-header {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #3d5a6c;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.comparison-users {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 30px;
}

.comparison-user {
    text-align: center;
}

.comparison-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #66c0f4;
    margin-bottom: 10px;
}

.comparison-username {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.comparison-count {
    font-size: 1.1em;
    color: #66c0f4;
    font-weight: bold;
}

.comparison-vs {
    font-size: 1.5em;
    font-weight: bold;
    color: #66c0f4;
    padding: 0 20px;
}

.comparison-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #3d5a6c;
}

.comparison-stat {
    text-align: center;
}

.comparison-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.comparison-filter-btn {
    background: rgba(102, 192, 244, 0.1);
    color: #66c0f4;
    border: 1px solid #66c0f4;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.comparison-filter-btn:hover {
    background: rgba(102, 192, 244, 0.2);
}

.comparison-filter-btn.active {
    background: rgba(102, 192, 244, 0.3);
    border-color: #56a0d4;
}

.comparison-achievements {
    margin-top: 20px;
}

.comparison-achievement {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border-left: 4px solid transparent;
    transition: all 0.2s;
    position: relative;
}

.comparison-achievement:hover {
    background: rgba(0, 0, 0, 0.5);
}

.comparison-both {
    border-left-color: #90EE90;
}

.comparison-you-only {
    border-left-color: #66c0f4;
}

.comparison-they-only {
    border-left-color: #FFB84D;
}

.comparison-both-locked {
    border-left-color: #8f98a0;
    opacity: 0.6;
}

.comparison-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-both {
    background: rgba(144, 238, 144, 0.2);
    color: #90EE90;
    border: 1px solid #90EE90;
}

.badge-you {
    background: rgba(102, 192, 244, 0.2);
    color: #66c0f4;
    border: 1px solid #66c0f4;
}

.badge-them {
    background: rgba(255, 184, 77, 0.2);
    color: #FFB84D;
    border: 1px solid #FFB84D;
}

.badge-locked {
    background: rgba(143, 152, 160, 0.2);
    color: #8f98a0;
    border: 1px solid #8f98a0;
}

.comparison-unlock-times {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    font-size: 0.85em;
}

.unlock-time-you {
    color: #66c0f4;
}

.unlock-time-them {
    color: #FFB84D;
    margin-left: auto;
    text-align: right;
}

/* Comparison Modal */
.comparison-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s;
}

.comparison-modal {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid #66c0f4;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.comparison-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #3d5a6c;
}

.comparison-modal-header h3 {
    color: #66c0f4;
    font-size: 1.3em;
    margin: 0;
}

.comparison-modal-close {
    background: transparent;
    border: none;
    color: #8f98a0;
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.comparison-modal-close:hover {
    color: #66c0f4;
}

.comparison-modal-body {
    padding: 20px 25px;
    overflow-y: auto;
    flex: 1;
}

.comparison-loading {
    text-align: center;
    padding: 40px 20px;
    color: #66c0f4;
}

.comparison-error {
    text-align: center;
    padding: 40px 20px;
    color: #c7d5e0;
}

.comparison-user-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comparison-user-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #3d5a6c;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.comparison-user-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: #66c0f4;
    transform: translateX(5px);
}

.comparison-user-item.selected {
    border-color: #66c0f4;
    background: rgba(102, 192, 244, 0.1);
}

.comparison-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #66c0f4;
}

.comparison-user-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comparison-user-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
}

.comparison-user-badge {
    background: rgba(102, 192, 244, 0.2);
    color: #66c0f4;
    border: 1px solid #66c0f4;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.comparison-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #3d5a6c;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.comparison-modal-button {
    background: rgba(102, 192, 244, 0.1);
    color: #66c0f4;
    border: 1px solid #66c0f4;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.comparison-modal-button:hover {
    background: rgba(102, 192, 244, 0.2);
}

.comparison-modal-button.cancel {
    background: rgba(143, 152, 160, 0.1);
    color: #8f98a0;
    border-color: #8f98a0;
}

.comparison-modal-button.cancel:hover {
    background: rgba(143, 152, 160, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .comparison-users {
        flex-direction: column;
        gap: 20px;
    }
    
    .comparison-vs {
        padding: 10px 0;
    }
    
    .comparison-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .comparison-filters {
        flex-direction: column;
    }
    
    .comparison-badge {
        position: static;
        margin-top: 10px;
        display: inline-block;
    }
    
    .comparison-achievement {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 12px;
    }
    
    .achievement-icon {
        margin-bottom: 10px;
    }
    
    .comparison-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .comparison-modal-header {
        padding: 15px 20px;
    }
    
    .comparison-modal-body {
        padding: 15px 20px;
    }
}

/* Search Bar Styles */
.search-container {
    margin: 0 auto 20px auto;
    max-width: 700px;
    padding: 0 20px;
}

.search-container.hidden {
    display: none !important;
}

/* The Wrapper acts as the "One Thing" container */
.search-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Ensure both stretch to full height */
    
    /* Container styling (merged look) */
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #3d5a6c;
    border-radius: 25px;
    transition: all 0.3s ease;
}

/* Highlight the WHOLE container when user clicks inside */
.search-wrapper:focus-within {
    border-color: #66c0f4;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(102, 192, 244, 0.15);
}

#search-type {
    /* Transparent background to blend in */
    background: transparent;
    border: none;
    border-right: 1px solid rgba(61, 90, 108, 0.5); /* Subtle separator line */
    border-radius: 25px 0 0 25px; /* Round left side only */
    
    color: #c7d5e0;
    font-size: 16px;
    padding: 12px 15px;
    cursor: pointer;
    outline: none;
    min-width: 130px;
}

/* Ensure the dropdown menu itself is dark */
#search-type option {
    background: #1b2838;
    color: #c7d5e0;
}

#game-search {
    /* Transparent background */
    background: transparent;
    border: none;
    border-radius: 0 25px 25px 0; /* Round right side only */
    
    color: #c7d5e0;
    font-size: 16px;
    padding: 12px 20px;
    width: 100%;
    outline: none;
}

/* Remove default focus outlines since wrapper handles it */
#search-type:focus, #game-search:focus {
    outline: none;
    box-shadow: none;
}

/* Optional: Make the search toggle square-ish */
#search-toggle-btn {
    min-width: 44px; /* Standard touch target size */
    padding: 8px 12px;
}

/* Conditional uniform height for game cards */
.game-card.uniform-height .game-info {
    min-height: 90px;
}

.game-card.uniform-height .game-source {
    min-height: 1.2em;
}

/* Add this at the end of your CSS file or near other achievement classes */
.achievement-group {
    color: #f9b44d;
    font-size: 0.9em;
    margin-top: 4px;
    display: block;
    letter-spacing: 0.5px;
}