<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>RS Universe - Game Arcade</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0a1a2a 100%);
            min-height: 100vh;
            color: white;
            overflow-x: hidden;
        }

        /* Starfield background */
        .stars {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }
        .star {
            position: absolute;
            background: white;
            border-radius: 50%;
            animation: twinkle 2s infinite;
        }
        @keyframes twinkle {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 1; }
        }

        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 40px 20px;
            position: relative;
            z-index: 1;
        }

        header {
            text-align: center;
            margin-bottom: 50px;
        }

        .logo {
            font-size: 3.5rem;
            font-weight: 800;
            background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
            background-size: 300% 300%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: gradient 5s ease infinite;
            text-shadow: 0 0 40px rgba(255, 107, 107, 0.3);
            letter-spacing: 4px;
        }
        @keyframes gradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .tagline {
            color: #888;
            font-size: 1.1rem;
            margin-top: 10px;
            letter-spacing: 2px;
        }

        .games-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 30px;
        }

        .game-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            overflow: hidden;
            transition: transform 0.3s, box-shadow 0.3s;
            border: 1px solid rgba(255, 255, 255, 0.1);
            text-decoration: none;
            color: white;
            display: block;
        }
        .game-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
        }

        .game-thumbnail {
            height: 180px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 5rem;
            position: relative;
            overflow: hidden;
        }

        .game-thumbnail.snake {
            background: linear-gradient(135deg, #0f0f23, #1a3a1a);
        }
        .game-thumbnail.snake::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 30% 70%, rgba(0, 255, 136, 0.2), transparent 50%);
        }

        .game-thumbnail.boxing {
            background: linear-gradient(135deg, #1a0a0a, #2d1515);
        }
        .game-thumbnail.boxing::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 70% 30%, rgba(255, 68, 68, 0.2), transparent 50%);
        }

        .game-info {
            padding: 20px;
        }

        .game-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .game-description {
            color: #999;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .game-tags {
            display: flex;
            gap: 8px;
            margin-top: 15px;
            flex-wrap: wrap;
        }

        .tag {
            background: rgba(255, 255, 255, 0.1);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            color: #aaa;
        }

        .play-btn {
            display: inline-block;
            margin-top: 15px;
            padding: 10px 25px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 25px;
            font-weight: 600;
            font-size: 0.9rem;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .game-card:hover .play-btn {
            transform: scale(1.05);
            box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
        }

        .coming-soon {
            text-align: center;
            padding: 60px 20px;
            color: #666;
        }
        .coming-soon h3 {
            font-size: 1.3rem;
            margin-bottom: 10px;
        }

        footer {
            text-align: center;
            padding: 40px 20px;
            color: #555;
            font-size: 0.9rem;
        }
        footer a {
            color: #667eea;
            text-decoration: none;
        }
        footer a:hover {
            text-decoration: underline;
        }

        /* Game count badge */
        .game-count {
            display: inline-block;
            background: rgba(255, 255, 255, 0.1);
            padding: 8px 20px;
            border-radius: 30px;
            margin-top: 20px;
            font-size: 0.9rem;
            color: #888;
        }
        .game-count span {
            color: #feca57;
            font-weight: 700;
        }
    </style>
</head>
<body>
    <div class="stars" id="stars"></div>

    <div class="container">
        <header>
            <h1 class="logo">RS UNIVERSE</h1>
            <p class="tagline">ARCADE GAMES</p>
            <div class="game-count"><span>2</span> games available</div>
        </header>

        <div class="games-grid">
            <a href="snake.html" class="game-card">
                <div class="game-thumbnail snake">
                    🐍
                </div>
                <div class="game-info">
                    <h2 class="game-title">Snake</h2>
                    <p class="game-description">Classic snake game. Eat food, grow longer, don't hit the walls or yourself!</p>
                    <div class="game-tags">
                        <span class="tag">Classic</span>
                        <span class="tag">Arcade</span>
                        <span class="tag">High Score</span>
                    </div>
                    <span class="play-btn">PLAY NOW</span>
                </div>
            </a>

            <a href="boxing.html" class="game-card">
                <div class="game-thumbnail boxing">
                    🥊
                </div>
                <div class="game-info">
                    <h2 class="game-title">Boxing</h2>
                    <p class="game-description">Step into the ring! Jab, hook, and uppercut your way to victory against the CPU.</p>
                    <div class="game-tags">
                        <span class="tag">Fighting</span>
                        <span class="tag">Action</span>
                        <span class="tag">VS CPU</span>
                    </div>
                    <span class="play-btn">PLAY NOW</span>
                </div>
            </a>
        </div>

        <div class="coming-soon">
            <h3>More games coming soon...</h3>
            <p>Stay tuned for new additions to the universe!</p>
        </div>
    </div>

    <footer>
        <p>RS Universe</p>
    </footer>

    <script>
        // Generate starfield
        const starsContainer = document.getElementById('stars');
        for (let i = 0; i < 100; i++) {
            const star = document.createElement('div');
            star.className = 'star';
            star.style.left = Math.random() * 100 + '%';
            star.style.top = Math.random() * 100 + '%';
            star.style.width = Math.random() * 3 + 1 + 'px';
            star.style.height = star.style.width;
            star.style.animationDelay = Math.random() * 2 + 's';
            star.style.animationDuration = (Math.random() * 2 + 1) + 's';
            starsContainer.appendChild(star);
        }
    </script>
</body>
</html>
