:root {
    --primary: #ff0055;
    --secondary: #1a1a2e;
    --bg-color: #050510;
    --text-color: #ffffff;
    --card-bg-color: rgba(255, 255, 255, 0.05);
    --navbar-bg-color: rgba(0, 0, 0, 0.2);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gold: #FFD700;
    /* For accents */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Animation */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #2a2a4e 0%, #050510 100%);
    z-index: -1;
    opacity: 0.5;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: var(--navbar-bg-color);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo img {
    height: 50px;
    object-fit: contain;
}

.title {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary);
}

.container {
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Search Bar */
.search-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.search-wrapper form {
    display: flex;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
}

.search-wrapper input {
    border: none;
    padding: 10px 15px;
    width: 100%;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

.search-wrapper button {
    background: var(--gold);
    /* Gold */
    border: none;
    padding: 0 15px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3D Card Styles */
.card-wrapper {
    perspective: 1000px;
}

.card {
    background: var(--card-bg-color);
    border: 2px solid var(--gold);
    /* Gold Border as shown in example */
    border-radius: 5px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
    background: var(--navbar-bg-color);
}

.card-content {
    padding: 15px;
    transform: translateZ(20px);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--gold);
    /* Gold Background for lower part */
    color: black;
    /* Dark text on gold */
}

.player-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #333;
    font-weight: 600;
}

.game-name {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: black;
    text-transform: uppercase;
    line-height: 1.2;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.7rem;
    color: #555;
    text-transform: uppercase;
}

.stat-value {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
}

/* Custom Read More Button */
.btn-readmore {
    display: block;
    width: 100%;
    padding: 10px 0;
    margin-top: auto;
    background: #007bff;
    /* Blue button */
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-readmore:hover {
    background: #0056b3;
}

/* Hover Effects */
.card-wrapper:hover .card {
    box-shadow: 0 20px 50px -20px var(--primary);
}

.empty-state {
    text-align: center;
    padding: 100px 0;
    color: #555;
}

.btn-login {
    background: linear-gradient(45deg, var(--primary), #ff5500);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s;
    border: none;
}

/* Floating Action Button */
.fab-lucky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #FFD700, #ffaa00);
    color: black;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    z-index: 999;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: bounce 2s infinite;
}

.fab-lucky:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-card {
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.95), rgba(10, 10, 20, 0.98));
    border: 1px solid var(--primary);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.3);
    position: relative;
    transform: scale(0.9);
    animation: popIn 0.3s forwards;
}

@keyframes popIn {
    to {
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: white;
}

.lucky-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

@media(max-width: 600px) {
    .lucky-form {
        flex-direction: column;
    }
}

.lucky-form input {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    outline: none;
}

.lucky-form button {
    padding: 15px 30px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: rgb(0, 0, 0);
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.lucky-form button:hover {
    transform: scale(1.05);
}

.lucky-result {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}

.lucky-percent {
    font-size: 3rem;
    font-weight: 800;
    color: #00ff88;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
    margin: 10px 0;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hacker Overlay HD */
#hackerOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* CRT Effects */
.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 10;
    animation: flicker 0.15s infinite;
}

#hackerOverlay::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 10;
}

.hacking-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    z-index: 5;
}

.hacking-text {
    width: 100%;
    text-align: left;
    white-space: pre-wrap;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
    font-size: 1.1rem;
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
}

.hack-progress-bar {
    width: 100%;
    height: 20px;
    background: #111;
    border: 1px solid #00ff00;
    box-shadow: 0 0 5px #00ff00;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.hack-progress-fill {
    height: 100%;
    background: #00ff00;
    width: 0%;
    box-shadow: 0 0 10px #00ff00;
    transition: width 0.1s linear;
}

@keyframes flicker {
    0% {
        opacity: 0.97;
    }

    5% {
        opacity: 0.95;
    }

    10% {
        opacity: 0.9;
    }

    15% {
        opacity: 0.95;
    }

    20% {
        opacity: 0.99;
    }

    25% {
        opacity: 0.95;
    }

    30% {
        opacity: 0.9;
    }

    35% {
        opacity: 0.96;
    }

    40% {
        opacity: 0.98;
    }

    45% {
        opacity: 0.95;
    }

    50% {
        opacity: 0.99;
    }

    55% {
        opacity: 0.93;
    }

    60% {
        opacity: 0.9;
    }

    65% {
        opacity: 0.96;
    }

    70% {
        opacity: 1;
    }

    75% {
        opacity: 0.97;
    }

    80% {
        opacity: 0.95;
    }

    85% {
        opacity: 0.92;
    }

    90% {
        opacity: 0.98;
    }

    95% {
        opacity: 0.99;
    }

    100% {
        opacity: 0.96;
    }
}

.glitch {
    animation: glitch 0.2s infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(2px, -2px);
    }

    60% {
        transform: translate(-2px, -2px);
    }

    80% {
        transform: translate(2px, 2px);
    }

    100% {
        transform: translate(0, 0);
    }
}

```