/* Featured Game Card — hero section */

/* Stack container — gives back card room to peek out */
.featured-cards-stack {
    position: relative;
    width: 100%;
    padding-bottom: 48px;
    padding-right: 44px;
}

/* Front wrapper — float animation */
.featured-game-card-wrapper {
    position: relative;
    z-index: 2;
    animation: fgcFloat 4s ease-in-out infinite;
    will-change: transform;
}

/* Back wrapper — rotated float, peeking out bottom-right */
.featured-game-card-wrapper--back {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
    animation-name: fgcFloatBack;
    animation-duration: 3.6s;
    animation-delay: -1.8s;
}

@keyframes fgcFloat {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes fgcFloatBack {
    0%   { transform: translateY(0px)   rotate(5deg); }
    50%  { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0px)   rotate(5deg); }
}

/* Back card — smaller, dimmer, no description */
.featured-game-card--sm {
    max-width: 360px;
    opacity: 0.88;
    border-color: rgba(14, 165, 233, 0.15);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.06), 0 16px 32px rgba(0, 0, 0, 0.4);
    transition: opacity 0.28s ease, transform 0.28s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Swap fade — both cards fade out during the swap transition */
.is-swapping .featured-game-card {
    opacity: 0 !important;
    transform: scale(0.94) !important;
    transition: opacity 0.28s ease, transform 0.28s ease !important;
}

.featured-game-card--sm .featured-game-card__body {
    padding-top: 140px;
}

.featured-game-card--sm .featured-game-card__title {
    font-size: 26px;
}

.featured-game-card--sm .featured-game-card__desc {
    display: none;
}

.featured-game-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, 0.25);
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.12), 0 24px 48px rgba(0, 0, 0, 0.4);
    isolation: isolate;
    transform-style: preserve-3d;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
    will-change: transform;
}

.featured-game-card:hover {
    box-shadow: 0 0 60px rgba(14, 165, 233, 0.3), 0 32px 64px rgba(0, 0, 0, 0.5);
    border-color: rgba(14, 165, 233, 0.6);
}

.featured-game-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 0.5s ease;
}

.featured-game-card:hover .featured-game-card__bg {
    transform: scale(1.06);
}

/* Shine sweep on hover */
.featured-game-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(
        115deg,
        transparent 40%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 60%
    );
    background-size: 200% 200%;
    background-position: 200% 0;
    transition: background-position 0.6s ease;
    pointer-events: none;
}

.featured-game-card:hover::after {
    background-position: -50% 0;
}

.featured-game-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 22, 40, 0.3) 0%,
        rgba(10, 22, 40, 0.7) 50%,
        rgba(10, 22, 40, 0.97) 100%
    );
    z-index: 1;
}

.featured-game-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(14, 165, 233, 0.5);
    color: #38bdf8;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    letter-spacing: 0.03em;
}

.featured-game-card__body {
    position: relative;
    z-index: 2;
    padding: 180px 24px 24px;
}

.featured-game-card__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
}

.featured-game-card__title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.1;
}

.featured-game-card__desc {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.featured-game-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.featured-game-card__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.featured-game-card__price-from {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.featured-game-card__price-amount {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
}

.featured-game-card__price-period {
    font-size: 13px;
    color: #64748b;
}

.featured-game-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0ea5e9;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.featured-game-card__btn:hover {
    background: #0284c7;
    color: #ffffff;
    transform: translateY(-1px);
}
