/* GAME PORTAL STYLES */

/* --- Hero Section: Cyberpunk Banner --- */
.hero-banner {
    background: radial-gradient(circle at 50% 50%, rgba(250, 204, 21, 0.15), transparent 70%),
        linear-gradient(to bottom right, #1a1b20, #000);
    border: 1px solid rgba(250, 204, 21, 0.3);
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--gold-primary);
    filter: blur(80px);
    opacity: 0.3;
    border-radius: 50%;
    animation: pulse-glow 3s infinite alternate;
}

/* --- Action Grid: "Glass App Icons" Look --- */
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0 0.25rem;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.action-item::before {
    display: none;
}

.action-item:hover {
    background: transparent;
    border: none;
    box-shadow: none;
    transform: translateY(-5px);
}

.action-icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    /* Smooth Squircle */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
    font-size: 1.7rem;
    /* color: removed to allow individual classes */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Shine effect on hover */
.action-icon-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s ease;
}

.action-item:hover .action-icon-box::after {
    opacity: 1;
    transform: scale(1);
}

.action-item:hover .action-icon-box {
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Text Styling */
.action-item p {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
    /* Normal case looks cleaner */
    letter-spacing: 0.3px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.action-item:hover p {
    color: #fff;
}

/* --- Game Cards: Glass Poster Style --- */
.game-card-portal {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
    /* Taller poster aspect ratio */
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border */
    background: #18181b;
    /* Fallback */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.game-card-portal:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* 1. Visual Area (Top) */
.game-visual {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dynamic Gradients for Visuals */
.visual-gold {
    background: linear-gradient(135deg, #453005 0%, #000 100%);
}

.visual-cyan {
    background: linear-gradient(135deg, #083344 0%, #000 100%);
}

.visual-purple {
    background: linear-gradient(135deg, #2e1065 0%, #000 100%);
}

.visual-red {
    background: linear-gradient(135deg, #450a0a 0%, #000 100%);
}

.visual-gray {
    background: linear-gradient(135deg, #27272a 0%, #000 100%);
}

.game-icon-visual {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s ease;
}

.game-card-portal:hover .game-icon-visual {
    transform: scale(1.15) rotate(5deg);
}

/* 2. Info Area (Bottom) */
.game-info {
    height: 85px;
    /* Increased from 70px to fix overflow */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 2;
}

.game-title-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-title {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.2;
}

.game-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.3;
    max-width: 100px;
    /* Force wrap if needed, but constrain width */
}

.btn-play-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.game-card-portal:hover .btn-play-mini {
    background: var(--gold-primary);
    color: #000;
    transform: scale(1.1);
}

/* Tags */
.game-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 5;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-hot {
    color: #facc15;
    border-color: #facc15;
}

.tag-new {
    color: #22d3ee;
    border-color: #22d3ee;
}

/* --- Utility Glows --- */
.icon-glow-purple {
    color: #d946ef;
    text-shadow: 0 0 10px rgba(217, 70, 239, 0.6);
}

.icon-glow-red {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.icon-glow-green {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
}

/* --- Marquee Bar --- */
.portal-marquee {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    /* padding-left: 100%; removed because we are scrolling a duplicated list now */
}

.portal-marquee {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}