/* ==========================================
   FUJI X PLAY - HOMEPAGE
========================================== */

.fx-home-main {
    padding-top: 12px;
}

/* ==========================================
   ANNOUNCEMENT
========================================== */

.fx-announcement {
    display: flex;
    align-items: center;

    gap: 10px;

    margin: 12px 0;
    padding: 9px 10px;

    min-height: 42px;

    background: var(--fx-card);
    border: 1px solid var(--fx-border);

    border-radius: 10px;
}

.fx-announcement-icon {
    color: var(--fx-gold);
    flex-shrink: 0;
}

.fx-announcement-text {
    flex: 1;
    min-width: 0;

    color: #e3d4ca;
    font-size: 12px;
}

.fx-announcement-btn {
    flex-shrink: 0;

    background: rgba(212, 175, 55, .1);

    color: var(--fx-gold-light);

    border: 1px solid var(--fx-border);
    border-radius: 7px;

    padding: 4px 9px;

    font-size: 11px !important;
}

/* ==========================================
   CATEGORY CARDS
========================================== */

.fx-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));

    gap: 9px;
}

.fx-category-card {
    grid-column: span 2;

    position: relative;

    display: flex;
    align-items: flex-end;
    justify-content: flex-end;

    min-height: 90px;

    padding: 10px;

    background: linear-gradient(
        135deg,
        var(--category-color, #402018),
        #161013
    );

    border: 1px solid rgba(212, 175, 55, .17);
    border-radius: 11px;

    overflow: hidden;
    isolation: isolate;

    color: var(--fx-gold-light);

    transition: transform .2s,
                border-color .2s;
}

.fx-category-card:nth-child(-n+2) {
    grid-column: span 3;
    min-height: 100px;
}

.fx-category-card::after {
    content: '';

    position: absolute;

    width: 100px;
    height: 100px;

    right: -35px;
    top: -35px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .035);

    z-index: -1;
}

.fx-category-card:active {
    transform: scale(.97);
}

.fx-category-art {
    position: absolute;

    top: 8px;
    left: 8px;

    font-size: 39px;
    line-height: 1;

    filter: drop-shadow(
        0 5px 7px rgba(0, 0, 0, .35)
    );
}

.fx-category-card:nth-child(-n+2) .fx-category-art {
    font-size: 52px;
    top: 15px;
    left: 15px;
}

.fx-category-name {
    position: relative;

    color: var(--fx-gold-light);

    font-size: 13px;
    font-weight: 700;

    z-index: 2;
}

/* ==========================================
   STICKY CATEGORY NAVIGATION
========================================== */

.fx-category-nav {
    position: sticky;
    top: 0;

    display: flex;
    align-items: stretch;

    gap: 6px;

    padding: 10px 0;

    margin-top: 14px;

    background: var(--fx-bg);

    overflow-x: auto;

    scrollbar-width: none;

    z-index: 100;
}

.fx-category-nav::-webkit-scrollbar {
    display: none;
}

.fx-category-tab {
    flex: 0 0 auto;

    min-width: 78px;

    padding: 8px 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 3px;

    background: var(--fx-card);

    color: var(--fx-text-muted);

    border: 1px solid var(--fx-border);
    border-radius: 9px;

    font-size: 11px !important;
    font-weight: 600;
}

.fx-category-tab span:first-child {
    font-size: 22px;
    line-height: 1.2;
}

.fx-category-tab.is-active {
    background: linear-gradient(
        135deg,
        #7d1510,
        #32110d
    );

    border-color: var(--fx-gold-dark);

    color: var(--fx-gold-light);
}

/* ==========================================
   GAME CARDS AND SECTIONS
========================================== */

.fx-game-section {
    scroll-margin-top: 90px;
}

.fx-section-count {
    color: var(--fx-gold);
    font-size: 11px;

    padding: 4px 9px;

    border: 1px solid var(--fx-border);
    border-radius: 6px;
}

.fx-games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 10px;
}

.fx-game-card {
    min-width: 0;

    background: var(--fx-card);

    border: 1px solid var(--fx-border);
    border-radius: 11px;

    overflow: hidden;

    transition: transform .2s,
                border-color .2s;
}

.fx-game-card:hover {
    border-color: var(--fx-gold-dark);
}

.fx-game-card:active {
    transform: scale(.97);
}

.fx-game-link {
    display: block;
}

.fx-game-art {
    position: relative;

    aspect-ratio: 3 / 3.6;

    background:
        radial-gradient(
            circle at 50% 40%,
            #641a10,
            transparent 65%
        ),
        linear-gradient(
            145deg,
            #321516,
            #100a0c
        );

    overflow: hidden;
    isolation: isolate;
}

.fx-game-fallback {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: clamp(36px, 12vw, 58px);
}

.fx-game-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;

    padding: 8px;

    z-index: 1;
}

/* Only hide the fallback after the image loads. */

.fx-game-art.has-image .fx-game-fallback {
    visibility: hidden;
}

.fx-game-status {
    position: absolute;

    top: 7px;
    right: 5px;

    z-index: 2;

    background: rgba(0, 0, 0, .75);

    border: 1px solid rgba(212, 175, 55, .4);
    border-radius: 5px;

    color: var(--fx-gold-light);

    padding: 3px 5px;

    font-size: 8px;
    font-weight: 600;
}

.fx-game-info {
    padding: 9px 6px 11px;

    text-align: center;
}

.fx-game-info h3 {
    margin: 0;

    font-size: 12px;
    font-weight: 700;

    color: var(--fx-text);

    overflow-wrap: anywhere;
}

.fx-game-subtitle {
    display: block;

    margin-top: 3px;

    font-size: 10px;

    color: var(--fx-text-muted);
}

/* ==========================================
   INTRODUCTION
========================================== */

.fx-introduction {
    position: relative;

    margin-top: 28px;
    padding: 24px 15px;

    text-align: center;

    background:
        radial-gradient(
            ellipse at top,
            #450c0c,
            transparent 55%
        ),
        var(--fx-card);
}

.fx-intro-logo {
    width: 145px;
    margin: 0 auto 12px;
}

.fx-intro-kicker {
    color: var(--fx-gold);
    font-size: 9px;
    letter-spacing: 3px;
}

.fx-introduction h2 {
    margin: 10px 0 5px;

    color: var(--fx-gold-light);

    font-size: 21px;
    font-weight: 900;
}

.fx-intro-tagline {
    color: var(--fx-gold);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1px;
}

.fx-intro-description {
    margin: 15px 0 22px;

    color: #c8b9b2;

    font-size: 13px;
    line-height: 1.8;
}

.fx-identity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.fx-identity-item {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 7px;

    padding: 14px 8px;

    border: 1px solid var(--fx-border);
    border-radius: 11px;

    background: rgba(0, 0, 0, .2);
}

.fx-identity-icon {
    font-size: 30px;
}

.fx-identity-item strong {
    color: var(--fx-gold-light);
    font-size: 11px;
}

.fx-identity-item > span:last-child {
    color: var(--fx-text-muted);
    font-size: 11px;
}

.fx-intro-divider {
    width: 70%;
    height: 1px;

    margin: 24px auto;

    background: linear-gradient(
        90deg,
        transparent,
        var(--fx-gold-dark),
        transparent
    );
}

.fx-intro-statements p {
    margin: 6px 0;

    color: #d6b673;
    font-size: 13px;
}

.fx-intro-welcome {
    margin-top: 20px;

    color: var(--fx-text);

    font-size: 11px;
    font-weight: 700;
}

.fx-intro-final {
    margin-top: 10px;

    color: var(--fx-gold-light);

    font-size: 19px;
    font-weight: 900;
    font-style: italic;
}

/* ==========================================
   FOOTER
========================================== */

.fx-footer {
    margin-top: 24px;
}

.fx-footer-menu {
    padding: 0 12px;
}

.fx-footer-item {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 54px;

    gap: 12px;

    padding: 12px 2px;

    color: var(--fx-text);

    border: none;
    border-bottom: 1px solid rgba(212, 175, 55, .08);

    background: transparent;

    text-align: left;

    font-size: 13px !important;
}

.fx-footer-item:last-child {
    border-bottom: 0;
}

.fx-footer-item > span:first-child {
    width: 24px;
    font-size: 20px;
}

.fx-footer-arrow {
    margin-left: auto;

    color: var(--fx-gold);
    font-size: 24px;
}

.fx-footer-brand {
    padding: 25px 10px 12px;

    text-align: center;
}

.fx-footer-brand img {
    width: 110px;
    margin: 0 auto;
}

.fx-footer-brand > p {
    color: var(--fx-gold);
    font-size: 10px;
    letter-spacing: 1px;
}

.fx-footer-legal {
    display: flex;
    justify-content: center;

    gap: 10px;

    margin: 15px 0;

    color: var(--fx-text-muted);
    font-size: 11px;
}

.fx-footer-brand .fx-footer-responsible {
    color: var(--fx-text-muted);

    font-size: 11px;
    line-height: 1.6;
    letter-spacing: 0;
}

.fx-footer-brand small {
    color: #817472;
    font-size: 10px;
}

@media (max-width: 360px) {

    .fx-container {
        padding: 0 10px;
    }

    .fx-games-grid {
        gap: 7px;
    }

    .fx-category-grid {
        gap: 7px;
    }

    .fx-category-name {
        font-size: 11px;
    }
}

/* ==========================================
   ORIGINAL CATEGORY ARTWORK
========================================== */

.fx-category-grid {
    gap: 10px;
}

.fx-category-card {
    min-height: 92px;

    padding: 10px;

    align-items: flex-end;
    justify-content: flex-end;

    border: 1px solid rgba(212, 175, 55, .22);

    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.fx-category-card:nth-child(-n+2) {
    min-height: 108px;
}

.fx-category-card .fx-category-art {
    position: absolute;

    top: 50%;
    left: -5px;

    width: 78%;
    height: 100%;

    max-width: none;

    object-fit: contain;

    transform: translateY(-50%);

    filter: drop-shadow(
        0 5px 8px rgba(0, 0, 0, .35)
    );

    z-index: 0;

    pointer-events: none;
}

.fx-category-card:nth-child(-n+2) .fx-category-art {
    top: 50%;
    left: 0;

    width: 67%;
    height: 110%;
}

.fx-category-card::before {
    content: '';

    position: absolute;
    inset: 0;

    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, .65),
        transparent 50%
    );

    z-index: 1;
}

.fx-category-name {
    position: relative;
    z-index: 2;

    font-size: 13px;
    font-weight: 800;

    color: #ffe8b4;

    text-shadow: 0 2px 5px #000;
}

.fx-category-tab-icon {
    width: 35px;
    height: 35px;

    object-fit: contain;

    filter: drop-shadow(
        0 3px 5px rgba(0, 0, 0, .3)
    );
}

.fx-category-tab {
    min-width: 81px;

    padding: 6px 8px;

    gap: 3px;
}

.fx-category-tab.is-active {
    box-shadow: inset 0 0 15px rgba(212, 175, 55, .08);
}

html[lang="ja"] .fx-category-name {
    font-size: 11px;
}

/* ==========================================
   PREMIUM GAME COVER ARTWORK
========================================== */

.fx-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.fx-game-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    border: 1px solid rgba(212, 175, 55, .22);
    border-radius: 11px;

    background: var(--fx-card);

    box-shadow: 0 5px 15px rgba(0, 0, 0, .25);

    transition:
        transform .2s ease,
        border-color .2s ease;
}

.fx-game-art {
    position: relative;

    width: 100%;

    aspect-ratio: 3 / 4;

    isolation: isolate;
    overflow: hidden;
}

.fx-game-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    padding: 0;

    object-fit: cover;
    object-position: center;

    z-index: 1;

    transition: transform .3s ease;
}

.fx-game-shade {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, .94) 0%,
        rgba(0, 0, 0, .5) 14%,
        transparent 40%
    );

    z-index: 2;

    pointer-events: none;
}

.fx-game-info {
    position: absolute;

    bottom: 0;
    left: 0;

    width: 100%;

    padding: 18px 5px 9px;

    z-index: 3;

    text-align: center;
}

.fx-game-info h3 {
    margin: 0;

    font-size: 12px;
    font-weight: 800;

    line-height: 1.3;

    color: #fff;

    text-shadow: 0 2px 6px #000;
}

.fx-game-status {
    position: absolute;

    top: 6px;
    right: 5px;

    display: flex;
    align-items: center;

    gap: 4px;

    padding: 4px 6px;

    background: rgba(0, 0, 0, .82);

    border: 1px solid rgba(212, 175, 55, .4);
    border-radius: 5px;

    color: var(--fx-gold-light);

    font-size: 8px;
    font-weight: 700;

    z-index: 4;

    backdrop-filter: blur(5px);
}

.fx-status-available {
    color: #b3f5cf;

    border-color: rgba(77, 210, 130, .4);
    background: rgba(0, 45, 22, .85);
}

.fx-live-dot {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #4ade80;
}

.fx-game-available {
    border-color: var(--fx-gold);

    box-shadow: 0 0 12px rgba(212, 175, 55, .12);
}

@media (hover: hover) {

    .fx-game-card:hover {
        border-color: var(--fx-gold);
    }

    .fx-game-card:hover .fx-game-image {
        transform: scale(1.04);
    }
}

@media (max-width: 360px) {

    .fx-games-grid {
        gap: 7px;
    }

    .fx-game-info h3 {
        font-size: 11px;
    }

    .fx-game-status {
        font-size: 7px;
        padding: 3px 4px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .fx-game-image,
    .fx-game-card {
        transition: none;
    }
}