/* =========================================================================
   HUB SELECTION CARDS & PREVIEWS (60FPS GPU OPTIMIZED WITH GLASS AESTHETICS)
   ========================================================================= */

.hub-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding-top: 10px;
}

.game-card-select {
    width: 90%;
    max-width: 360px;
    height: 150px;
    background: linear-gradient(135deg, rgba(16, 26, 52, 0.82) 0%, rgba(8, 14, 32, 0.92) 100%);
    border: 1.5px solid rgba(0, 210, 255, 0.45);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateZ(0);
}

.game-card-select.card-star-theme {
    background: linear-gradient(135deg, rgba(42, 30, 10, 0.82) 0%, rgba(18, 12, 4, 0.92) 100%);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 240, 150, 0.25);
}

.game-card-select:active {
    transform: scale(0.97);
}

.game-card-select::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(11, 12, 27, 0.75) 0%, rgba(11, 12, 27, 0.1) 50%, rgba(11, 12, 27, 0.75) 100%);
}

.game-bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.45;
    transform: translateZ(0);
}

.game-info {
    position: relative;
    z-index: 3;
    text-align: center;
}

.game-info h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.8px;
}

.game-info p {
    margin: 4px 0 0;
    color: #00d2ff;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.8px;
}

/* CS:GO Style Ribbon Preview in Daily Card without mask-image */
.card-csgo-tape-bg {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%) rotate(-6deg);
    width: 210px;
    height: 78px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.88;
    overflow: hidden;
    border-top: 1.5px solid rgba(0, 210, 255, 0.7);
    border-bottom: 1.5px solid rgba(0, 210, 255, 0.7);
    background: #050d22;
    border-radius: 14px;
}

.csgo-pointer-arrow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid #ffd700;
    z-index: 10;
}

.csgo-tape-track {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    width: max-content;
    animation: csgoTapeSlide 8s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

.csgo-item-box {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.9);
}

.csgo-item-box.rare {
    background: rgba(0, 210, 255, 0.18);
    border: 1px solid #00d2ff;
}

.csgo-item-box.mythic {
    background: rgba(255, 0, 127, 0.18);
    border: 1px solid #ff007f;
}

.csgo-item-box.legendary {
    background: rgba(255, 215, 0, 0.22);
    border: 1px solid #ffd700;
}

.csgo-item-box.uncommon {
    background: rgba(0, 255, 136, 0.18);
    border: 1px solid #00ff88;
}

.csgo-item-box svg,
.csgo-item-box img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

@keyframes csgoTapeSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(var(--tape-shift, -272px)); }
}

/* Star Roulette Preview Background */
.card-roulette-bg.gold {
    position: absolute;
    left: -25px;
    top: 50%;
    width: 190px;
    height: 190px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
    border-radius: 50%;
    animation: cardWheelSpin 12s linear infinite reverse;
    will-change: transform;
    transform: translateY(-50%) rotate(0deg);
}

@keyframes cardWheelSpin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}
