:root {
    --bg-color: #0b0f19;
    --surface-color: rgba(15, 23, 42, 0.85);
    --surface-border: rgba(147, 51, 234, 0.3);
    --primary-color: #f43f5e; /* Rose */
    --primary-glow: rgba(244, 63, 94, 0.6);
    --accent-color: #8b5cf6; /* Violet */
    --accent-glow: rgba(139, 92, 246, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --font-main: 'Be Vietnam Pro', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.1), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(244, 63, 94, 0.1), transparent 25%);
}

.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: 
        linear-gradient(rgba(11, 15, 25, 0.9) 0%, rgba(11, 15, 25, 0.95) 100%),
        url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h40v40H0V0zm20 20h20v20H20V20zM0 20h20v20H0V20zM20 0h20v20H20V0z" fill="rgba(255,255,255,0.02)"/></svg>');
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
}

.orb-1 {
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite alternate;
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.1); }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header {
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
}

.logo {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.logo span {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

main {
    flex: 1;
    padding: 1rem 0 4rem;
}

.section-header {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.line-decorator {
    width: 80px;
    height: 6px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    box-shadow: 0 0 15px var(--primary-glow);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--surface-color);
    border: 2px solid var(--surface-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition-smooth);
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.7), 0 0 20px var(--accent-glow);
}

.game-card:hover::before {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.card-image svg {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.2));
    transition: var(--transition-smooth);
}

.game-card:hover .card-image svg {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

.card-content {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, transparent 100%);
}

.card-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 1rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card-action::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: rgba(255,255,255,0.2);
    transform: rotate(45deg);
    transition: var(--transition-smooth);
    opacity: 0;
}

.game-card:hover .card-action::after {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.card-action svg {
    width: 20px;
    height: 20px;
    margin-left: 0.8rem;
    transition: transform 0.3s ease;
}

.game-card:hover .card-action svg {
    transform: translateX(8px);
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .logo { font-size: 2.8rem; }
    .subtitle { font-size: 0.9rem; }
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .header { padding: 2rem 0 1rem; }
    .card-image { height: 180px; }
}
