/* Shared card and logo components */
.card-glow-wrapper {
    position: absolute;
    width: min(70vw, 600px);
    height: min(70vw, 600px);
    transform-origin: center;
    transition: all 0.1s ease-out;
    will-change: transform;
}

/* Desktop sizing for better gameplay */
@media (min-width: 1200px) {
    .card-glow-wrapper {
        width: min(60vw, 700px);
        height: min(60vw, 700px);
    }
}

@media (min-width: 1600px) {
    .card-glow-wrapper {
        width: min(50vw, 800px);
        height: min(50vw, 800px);
    }
}

/* Even brand color glow distribution */
.card-glow-wrapper::before {
    content: '';
    position: absolute;
    inset: -30px;
    background: conic-gradient(
        from 0deg at center,
        rgba(0, 188, 212, 0.4),     /* Cyan */
        rgba(50, 205, 50, 0.4),     /* Green */
        rgba(255, 99, 71, 0.4),     /* Orange */
        rgba(0, 188, 212, 0.4)      /* Back to cyan */
    );
    filter: blur(40px);
    opacity: 0.5;
    z-index: -1;
    border-radius: 50px;
    transition: all 0.1s ease-out;
}

.card {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.05)
    );
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        /* Essential shadows only */
        0 0 20px rgba(255, 255, 255, 0.1),        /* Subtle outer glow */
        0 8px 32px rgba(0, 0, 0, 0.1),            /* Standard depth shadow */
        /* Inset highlights */
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    box-sizing: border-box;
}

/* Top edge highlight */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    pointer-events: none;
}

/* Left edge highlight */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.6),
        transparent,
        rgba(255, 255, 255, 0.2)
    );
    pointer-events: none;
}

.logo-container {
    width: 100%;
    max-width: 100%;
    height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.logo-container img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Mobile adjustments - reduced for better gameplay */
@media (max-width: 480px) {
    .card-glow-wrapper {
        width: 60vw;
        height: 60vw;
    }
    
    .card {
        padding: 14px;
        aspect-ratio: 1;
    }

    .logo-container {
        max-width: 100%;
        width: 100%;
        height: 100%;
    }
}

/* Small mobile adjustments - reduced for better gameplay */
@media (max-width: 380px) {
    .card-glow-wrapper {
        width: 55vw;
        height: 55vw;
    }
    
    .card {
        padding: 10px;
    }
}

/* Tablet adjustments - reduced for better gameplay */
@media (max-width: 768px) {
    .card-glow-wrapper {
        width: 55vw;
        height: 55vw;
    }
    
    .card {
        padding: 20px;
    }
}