#card-grid {
    display: flex;
    flex-direction: row;
    justify-content: left;
    gap: 4px;
}

#bannerColumn {
    flex: 1;
    margin-left: auto;
    height: 250px;
}

#home-banner {
    display: block;
}

#carousel-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 100%;
    display: flex;
    z-index: 2;
}

#centerCard {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 350px;
}

/* Force text color for Home elements */
.getting-started-step,
.game-pitch {
    color: var(--text-main);
}

#game-info-top-wrapper {
    position: relative;
}

#game-stats {
    display: flex;
    flex-direction: column;
    height: fit-content;
    width: 100%;
}

#centerColumn {
    opacity: 1;
}

#centerColumn.column-hidden {
    opacity: 0;
}

#home {
    position: relative;
    height: 300px;
}

#centerCard {
    position: fixed;
    left: 90px;
    overflow: hidden;
}

#start-steps-card:hover {
    filter: brightness(1.2);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.game-pitch {
    line-height: 0.9;
    font-style: italic;
    margin: 0;
}

.update-card {
    padding: 0 0.2rem;
    line-height: 1.2;
    text-wrap: nowrap;
    text-align: center;
    color: var(--text-main);
}

/* --- Token Widget Styles (Moved from Products.css) --- */
.custom-token-widget {
    padding: 0;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.token-header {
    display: flex;
    align-items: center;
}

.token-icon {
    width: 100px;
    height: 100px;
}

.token-title {
    font-size: 0.9rem;
    font-weight: bold;
}

.token-title-price {
    display: flex;
    flex-direction: column;
}

/* --- Diplomatic Marginalia (Moved from Diplomatic.css) --- */
.diplomatic-marginalia {
    position: absolute;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 10;
    pointer-events: none;
}

.diplomatic-marginalia.horizontal-bottom {
    background-image: var(--diplomatic-marginalia-h-url);
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
}

#centerCard .diplomatic-marginalia.horizontal-bottom {
    position: relative;
    width: 100%;
}

@media(max-height: 900px) {

    .custom-token-widget,
    .diplomatic-marginalia {
        display: none;
    }
}

@media (max-width: 1300px) {

    #card-grid {
        flex-direction: column-reverse;
        align-items: center;
        width: 100%;
    }

    #centerCard {
        position: relative;
        left: 0;
    }

    #bannerColumn {
        max-width: 100%;
        margin-left: 0;
    }

    #home-banner {
        max-height: 240px;
    }

    #home {
        height: auto;
    }

    #carousel-overlay {
        position: relative;
        height: auto;
        min-height: 100%;
    }
}

@media (max-width: 576px) {

    #centerCard {
        width: 300px;
        padding: 0;
    }

    #game-stats {
        font-size: 1rem;
    }

    .update-card {
        padding: 0;
        gap: 0;
    }

    .custom-token-widget {
        margin: 0;
    }
}