<!DOCTYPE html>
<html lang="en" class="scroll-smooth">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Stargazer Games - Free Roleplaying Games</title>
    <link rel="icon" type="image/png" href="favicon16.png">
    
    <!-- Configuration Variables -->
    <script>
        // Edit these URLs to point to your actual PDF files.
        const GAME_DOWNLOAD_LINKS = {
            'WR&M Core Rulebook': 'download/WRM.pdf',
            'WR&M SRD': 'download/WRMSRD.rtf',
            'WR&M German SRD': 'download/WRMSRD_de.pdf',
            'WR&M Character Sheets': 'download/wrm_sheets.zip',
            'WR&M Early Draft': 'download/wrm_original.pdf', 
            'From the Imperial Forges': 'download/From_The_Imperial_Forges.pdf',
            'From the Imperial Forges 2': 'download/From_The_Imperial_Forges_2.pdf',
            'Discovered Lore': 'download/Discovered_Lore.pdf',
            'The Art of Combat': 'download/The_Art_of_Combat.pdf',
            'From the Imperial Library': 'download/From_The_Imperial_Library.pdf',
            'A Wanderer\'s Romance': 'download/AWR.pdf',
            'Arcane Heroes': 'download/Arcane-Heroes.pdf',
            'BADASS (EN)': 'download/badass_en.zip',
            'BADASS (PT-BR)': 'download/badass_ptbr.zip',
            'Chronicles of the Four Dragons': 'download/ChroniclesoftheFourDragons.pdf',
            'Resolute, Adventurer & Genius': 'download/RAG_final.pdf',
            'Thrilling Noir Stories': 'download/noir_bogart31.pdf',
            'Horror of Leatherbury House': 'download/opd1.pdf',
            'FUDGE in a Nutshell': 'download/fudge_one_page.pdf',
            'Fallout Fudged Rules': 'download/fallout_fudged_rules.pdf',
            'Fallout Fudged Character Sheet': 'download/falloutfudgedsheet.pdf'
        };
    </script>

    <!-- Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        brand: {
                            bg: '#0a0914',
                            surface: '#171626',
                            card: '#201f35',
                            accent: '#8b5cf6', // Violet
                            gold: '#fbbf24', // Amber
                        }
                    },
                    fontFamily: {
                        sans: ['system-ui', '-apple-system', 'sans-serif'],
                        serif: ['Georgia', 'Cambria', 'Times New Roman', 'Times', 'serif'],
                    },
                    animation: {
                        'float': 'float 6s ease-in-out infinite',
                        'float-delayed': 'float 8s ease-in-out 2s infinite',
                        'float-slow': 'float 10s ease-in-out 4s infinite',
                        'spin-slow': 'spin 25s linear infinite',
                        'wiggle': 'wiggle 5s ease-in-out infinite',
                        'dice-shake': 'dice-shake 0.3s ease-in-out infinite',
                    },
                    keyframes: {
                        float: {
                            '0%, 100%': { transform: 'translateY(0)' },
                            '50%': { transform: 'translateY(-20px)' },
                        },
                        wiggle: {
                            '0%, 100%': { transform: 'rotate(10deg)' },
                            '50%': { transform: 'rotate(-10deg)' },
                        },
                        'dice-shake': {
                            '0%, 100%': { transform: 'rotate(0deg)' },
                            '25%': { transform: 'rotate(15deg) scale(1.1)' },
                            '75%': { transform: 'rotate(-15deg) scale(1.1)' },
                        }
                    }
                }
            }
        }
    </script>

    <style>
        body {
            background-color: #0a0914;
            background-image: 
                radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.15), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(251, 191, 36, 0.1), transparent 25%);
            color: #f8fafc;
            overflow-x: hidden;
        }
        
        .glass-nav {
            background: rgba(10, 9, 20, 0.8);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .game-card {
            background: linear-gradient(180deg, rgba(32, 31, 53, 0.9) 0%, rgba(23, 22, 38, 0.9) 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(8px);
            transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .game-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #0a0914; 
        }
        ::-webkit-scrollbar-thumb {
            background: #3f3e5c; 
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #8b5cf6; 
        }
    </style>
</head>
<body class="antialiased min-h-screen flex flex-col relative">

    <!-- SVG Library (Hidden) -->
    <svg width="0" height="0" class="hidden">
        <defs>
            <g id="icon-d20" fill="none" stroke="currentColor" stroke-width="3" stroke-linejoin="round" stroke-linecap="round">
                <!-- Outer perimeter -->
                <polygon points="50,5 95,30 95,70 50,95 5,70 5,30" />
                <!-- Inner downward triangle -->
                <polygon points="25,35 75,35 50,75" />
                <!-- Internal lines radiating from inner triangle vertices -->
                <line x1="25" y1="35" x2="50" y2="5" />
                <line x1="75" y1="35" x2="50" y2="5" />
                <line x1="25" y1="35" x2="5" y2="30" />
                <line x1="75" y1="35" x2="95" y2="30" />
                <line x1="25" y1="35" x2="5" y2="70" />
                <line x1="75" y1="35" x2="95" y2="70" />
                <line x1="50" y1="75" x2="5" y2="70" />
                <line x1="50" y1="75" x2="95" y2="70" />
                <line x1="50" y1="75" x2="50" y2="95" />
            </g>
            <g id="icon-d6" fill="currentColor">
                <rect x="15" y="15" width="70" height="70" rx="10" fill="none" stroke="currentColor" stroke-width="6"/>
                <circle cx="35" cy="35" r="7" />
                <circle cx="65" cy="65" r="7" />
                <circle cx="35" cy="65" r="7" />
                <circle cx="65" cy="35" r="7" />
                <circle cx="50" cy="50" r="7" />
            </g>
            <g id="icon-pencil" fill="none" stroke="currentColor" stroke-width="5" stroke-linejoin="round">
                <rect x="40" y="25" width="20" height="55" />
                <polygon points="40,80 60,80 50,95" />
                <polygon points="46,89 54,89 50,95" fill="currentColor" />
                <rect x="40" y="5" width="20" height="20" />
                <line x1="40" y1="12" x2="60" y2="12" />
            </g>
            <g id="icon-sheet" fill="none" stroke="currentColor" stroke-width="5" stroke-linejoin="round">
                <rect x="20" y="10" width="60" height="80" rx="4" />
                <line x1="30" y1="25" x2="70" y2="25" />
                <line x1="30" y1="35" x2="70" y2="35" />
                <rect x="30" y="50" width="10" height="10" />
                <rect x="45" y="50" width="10" height="10" />
                <rect x="60" y="50" width="10" height="10" />
                <line x1="30" y1="75" x2="50" y2="75" />
            </g>
        </defs>
    </svg>

    <!-- Navigation -->
    <nav class="fixed w-full z-50 glass-nav transition-all duration-300 py-2">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex flex-col md:flex-row justify-between items-center gap-2 md:gap-0">
            <a href="#" class="flex items-center group">
                <img src="sgg_logo_white.png" alt="Stargazer Games" class="w-[150px] h-[150px] object-contain opacity-90 group-hover:opacity-100 transition-opacity duration-300">
            </a>
            <div class="flex flex-wrap justify-center items-center gap-4 md:gap-8 font-medium text-sm text-slate-300 pb-2 md:pb-0">
                <a href="#wrm" class="hover:text-brand-accent transition-colors">Warrior, Rogue & Mage</a>
                <a href="#other-games" class="hover:text-brand-accent transition-colors">Other Games</a>
                <a href="https://site.drivethrurpg.com/browse/pub/3313/Stargazer-Games?affiliate_id=5405" target="_blank" class="hover:text-brand-accent transition-colors flex items-center gap-1">
                    DriveThruRPG
                    <svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg>
                </a>
            </div>
        </div>
    </nav>

    <!-- Hero Section -->
    <header class="relative pt-48 md:pt-40 pb-20 lg:pb-32 overflow-hidden flex-shrink-0">
        <!-- Floating Paraphernalia Background -->
        <div class="absolute inset-0 pointer-events-none overflow-hidden">
            <svg viewBox="0 0 100 100" class="absolute top-[15%] left-[10%] w-20 h-20 text-brand-accent opacity-20 animate-float transform -rotate-12"><use href="#icon-d20"></use></svg>
            <svg viewBox="0 0 100 100" class="absolute top-[40%] right-[15%] w-16 h-16 text-brand-gold opacity-20 animate-spin-slow"><use href="#icon-d6"></use></svg>
            <svg viewBox="0 0 100 100" class="absolute bottom-[20%] left-[25%] w-24 h-24 text-red-500 opacity-20 animate-float-delayed"><use href="#icon-d20"></use></svg>
            <svg viewBox="0 0 100 100" class="absolute top-[65%] right-[30%] w-16 h-16 text-slate-500 opacity-20 animate-wiggle"><use href="#icon-pencil"></use></svg>
            <svg viewBox="0 0 100 100" class="absolute bottom-[15%] right-[20%] w-20 h-20 text-emerald-500 opacity-15 animate-float-slow transform -rotate-6"><use href="#icon-sheet"></use></svg>
        </div>

        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10 text-center">
            <div class="inline-block mb-4 px-4 py-1.5 rounded-full border border-brand-gold/30 bg-brand-gold/10 text-brand-gold text-sm font-semibold tracking-wider">
                100% Free and Open Roleplaying Games
            </div>
            
            <h1 class="font-serif text-5xl md:text-7xl font-bold mb-6 tracking-tight leading-tight text-transparent bg-clip-text bg-gradient-to-r from-white via-slate-200 to-slate-400">
                Your Next Campaign <br/><span class="text-brand-accent">Costs Nothing.</span>
            </h1>
            
            <p class="text-lg md:text-xl text-slate-400 mb-10 max-w-2xl mx-auto leading-relaxed">
                Bringing you free, high-quality, lightweight roleplaying games since 2010. Simple mechanics, endless possibilities, zero cost.
            </p>
            
            <div class="flex flex-col sm:flex-row justify-center gap-4">
                <a href="#wrm" class="px-8 py-4 bg-brand-accent hover:bg-violet-500 text-white rounded-lg font-semibold transition-all shadow-[0_0_20px_rgba(139,92,246,0.3)] hover:shadow-[0_0_30px_rgba(139,92,246,0.5)] transform hover:-translate-y-1">
                    Play Warrior, Rogue & Mage
                </a>
                <a href="#other-games" class="px-8 py-4 bg-brand-surface border border-slate-700 hover:border-slate-500 text-slate-200 rounded-lg font-semibold transition-all hover:bg-slate-800">
                    Explore All Games
                </a>
            </div>
        </div>
        
        <!-- Scroll indicator -->
        <div class="absolute bottom-10 left-1/2 transform -translate-x-1/2 text-slate-500 animate-bounce">
            <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 14l-7 7m0 0l-7-7m7 7V3"></path></svg>
        </div>
    </header>

    <main class="flex-grow z-10">
        
        <!-- News Section -->
        <section id="news" class="py-12 relative border-t border-slate-800/50 bg-brand-surface">
            <div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
                <div class="flex items-center gap-4 mb-8">
                    <h2 class="font-serif text-2xl md:text-3xl font-bold text-white">Latest News</h2>
                    <div class="flex-grow h-[1px] bg-slate-800"></div>
                </div>
                
                <div class="space-y-4">
                    <!-- News Item (Misc Downloads) -->
                    <div class="game-card p-6 rounded-xl border-l-4 border-l-blue-500 flex flex-col sm:flex-row sm:items-center justify-between gap-4">
                        <div>
                            <span class="text-xs font-bold tracking-wider text-blue-400 uppercase mb-2 block">August 18, 2026</span>
                            <p class="text-slate-300 text-lg">New downloads added to the Miscellaneous section! Check out Horror of Leatherbury House, FUDGE in a Nutshell, and Fallout Fudged.</p>
                        </div>
                        <a href="#miscellaneous" class="shrink-0 px-4 py-2 bg-blue-500/20 hover:bg-blue-500 hover:text-white text-blue-400 border border-blue-500/50 rounded-lg text-sm font-semibold transition-colors flex items-center gap-2">
                            <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 14l-7 7m0 0l-7-7m7 7V3"></path></svg> View Downloads
                        </a>
                    </div>

                    <!-- News Item (CC BY 4.0 Update) -->
                    <div class="game-card p-6 rounded-xl border-l-4 border-l-brand-gold flex flex-col sm:flex-row sm:items-center justify-between gap-4">
                        <div>
                            <span class="text-xs font-bold tracking-wider text-brand-gold uppercase mb-2 block">August 18, 2026</span>
                            <p class="text-slate-300 text-lg">The Warrior, Rogue & Mage System Reference Document has now been updated to Creative Commons Attribution 4.0.</p>
                        </div>
                        <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" class="shrink-0 px-4 py-2 bg-brand-gold/20 hover:bg-brand-gold hover:text-slate-900 text-brand-gold border border-brand-gold/50 rounded-lg text-sm font-semibold transition-colors flex items-center gap-2">
                            <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg> CC 4.0 BY License
                        </a>
                    </div>

                    <!-- News Item 1 (Interactive SRD) -->
                    <div class="game-card p-6 rounded-xl border-l-4 border-l-emerald-500 flex flex-col sm:flex-row sm:items-center justify-between gap-4">
                        <div>
                            <span class="text-xs font-bold tracking-wider text-emerald-500 uppercase mb-2 block">August 13, 2026</span>
                            <p class="text-slate-300 text-lg">Interactive WR&M SRD now available.</p>
                        </div>
                        <a href="srd/index.html" class="shrink-0 px-4 py-2 bg-emerald-500/20 hover:bg-emerald-500 hover:text-white text-emerald-400 border border-emerald-500/50 rounded-lg text-sm font-semibold transition-colors flex items-center gap-2">
                            <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg> View SRD
                        </a>
                    </div>

                    <!-- News Item 2 (German SRD) -->
                    <div class="game-card p-6 rounded-xl border-l-4 border-l-brand-accent flex flex-col sm:flex-row sm:items-center justify-between gap-4">
                        <div>
                            <span class="text-xs font-bold tracking-wider text-brand-accent uppercase mb-2 block">August 13, 2026</span>
                            <p class="text-slate-300 text-lg">WR&M System Reference Document now available in German language.</p>
                        </div>
                        <button onclick="downloadGame('WR&M German SRD')" class="shrink-0 px-4 py-2 bg-brand-accent/20 hover:bg-brand-accent hover:text-white text-brand-accent border border-brand-accent/50 rounded-lg text-sm font-semibold transition-colors flex items-center gap-2">
                            <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> Download DE SRD
                        </button>
                    </div>

                    <!-- News Item 2 (Yesterday) -->
                    <div class="game-card p-6 rounded-xl border-l-4 border-l-brand-gold">
                        <span class="text-xs font-bold tracking-wider text-brand-gold uppercase mb-2 block">August 12, 2026</span>
                        <p class="text-slate-300 text-lg">Website Relaunch.</p>
                    </div>
                </div>
            </div>
        </section>

        <!-- Warrior, Rogue & Mage Section -->
        <section id="wrm" class="py-24 relative border-t border-slate-800/50 bg-gradient-to-b from-brand-bg to-brand-surface">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
                
                <div class="text-center mb-16">
                    <h2 class="font-serif text-3xl md:text-4xl font-bold text-white mb-4">Featured System</h2>
                    <div class="w-24 h-1 bg-brand-accent mx-auto rounded-full"></div>
                </div>

                <div class="grid lg:grid-cols-12 gap-12 items-start">
                    
                    <!-- Left: Main Game Details -->
                    <div class="lg:col-span-5 space-y-8 relative">
                        <div class="absolute -top-10 -left-10 w-32 h-32 bg-brand-accent/20 rounded-full blur-3xl pointer-events-none"></div>
                        
                        <div>
                            <h3 class="font-serif text-4xl font-bold text-white mb-2">Warrior, Rogue & Mage</h3>
                            <p class="text-brand-gold font-medium mb-6">By Michael Wolf</p>
                            
                            <p class="text-slate-300 leading-relaxed mb-6">
                                A simple, lightweight roleplaying game that allows a group of players and a game master to experience epic adventures in a fantasy world filled with wondrous magic.
                            </p>
                            <p class="text-slate-300 leading-relaxed mb-8">
                                <strong class="text-white">No Classes:</strong> Although WR&M uses three basic fantasy RPG classes in its name, it doesn't make use of classes. Players create characters freely. Warrior, Rogue and Mage are actually the character's basic attributes, measuring their capabilities in combat, stealth and academics respectively.
                            </p>
                        </div>

                        <!-- Core Rulebook Download -->
                        <div class="game-card p-6 rounded-2xl border-brand-accent/50">
                            <div class="flex justify-between items-start mb-4">
                                <div>
                                    <h4 class="font-serif font-bold text-xl text-white">Core Rulebook</h4>
                                    <p class="text-sm text-slate-400">Pages: 41 • File size: 7.5 MB</p>
                                </div>
                                <div class="bg-brand-accent/20 p-2 rounded-lg text-brand-accent">
                                    <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"></path></svg>
                                </div>
                            </div>
                            <p class="text-sm text-slate-300 mb-6">Contains complete game rules (character creation, combat, magic, equipment, monsters) and the Fallen Imperium of Vaneria setting.</p>
                            
                            <button onclick="downloadGame('WR&M Core Rulebook')" class="w-full py-3 bg-brand-accent hover:bg-violet-500 text-white rounded-lg font-semibold transition-colors flex justify-center items-center gap-2">
                                <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg>
                                Download PDF
                            </button>
                        </div>
                    </div>

                    <!-- Right: Supplements -->
                    <div class="lg:col-span-7">
                        <h4 class="font-serif text-2xl font-bold text-white mb-6 flex items-center gap-3">
                            <span class="w-8 h-[2px] bg-brand-gold"></span>
                            Official Supplements
                        </h4>
                        
                        <div class="grid sm:grid-cols-2 gap-4">
                            
                            <!-- Supplement 1 -->
                            <div class="game-card p-5 rounded-xl hover:border-brand-gold/50 flex flex-col justify-between h-full group">
                                <div>
                                    <h5 class="font-bold text-lg text-white mb-1 group-hover:text-brand-gold transition-colors">From the Imperial Forges</h5>
                                    <p class="text-xs text-slate-400 mb-3">By Colin Chapman • 7 pgs, 3.6 MB</p>
                                    <p class="text-sm text-slate-300 mb-4 line-clamp-2">Over 20 unique magical items for your game from ENnie-nominated designer.</p>
                                </div>
                                <button onclick="downloadGame('From the Imperial Forges')" class="text-brand-accent hover:text-white text-sm font-semibold flex items-center gap-1 transition-colors w-max">
                                    <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> Download
                                </button>
                            </div>

                            <!-- Supplement 2 -->
                            <div class="game-card p-5 rounded-xl hover:border-brand-gold/50 flex flex-col justify-between h-full group">
                                <div>
                                    <h5 class="font-bold text-lg text-white mb-1 group-hover:text-brand-gold transition-colors">From the Imperial Forges 2</h5>
                                    <p class="text-xs text-slate-400 mb-3">By Colin Chapman • 7 pgs, 4.7 MB</p>
                                    <p class="text-sm text-slate-300 mb-4 line-clamp-2">19 more unique magical items. Usable standalone or with the first book.</p>
                                </div>
                                <button onclick="downloadGame('From the Imperial Forges 2')" class="text-brand-accent hover:text-white text-sm font-semibold flex items-center gap-1 transition-colors w-max">
                                    <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> Download
                                </button>
                            </div>

                            <!-- Supplement 3 -->
                            <div class="game-card p-5 rounded-xl hover:border-brand-gold/50 flex flex-col justify-between h-full group">
                                <div>
                                    <h5 class="font-bold text-lg text-white mb-1 group-hover:text-brand-gold transition-colors">Discovered Lore</h5>
                                    <p class="text-xs text-slate-400 mb-3">By Andrew Modro • 8 pgs, 4.6 MB</p>
                                    <p class="text-sm text-slate-300 mb-4 line-clamp-2">Six new playable races (Mountain Giant to Merfolk), new items, and sample NPCs.</p>
                                </div>
                                <button onclick="downloadGame('Discovered Lore')" class="text-brand-accent hover:text-white text-sm font-semibold flex items-center gap-1 transition-colors w-max">
                                    <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> Download
                                </button>
                            </div>

                            <!-- Supplement 4 -->
                            <div class="game-card p-5 rounded-xl hover:border-brand-gold/50 flex flex-col justify-between h-full group">
                                <div>
                                    <h5 class="font-bold text-lg text-white mb-1 group-hover:text-brand-gold transition-colors">The Art of Combat</h5>
                                    <p class="text-xs text-slate-400 mb-3">By Michael Wolf • 6 pgs, 4.2 MB</p>
                                    <p class="text-sm text-slate-300 mb-4 line-clamp-2">Alternate armor rules, new talents, dodging and parrying for exciting combats.</p>
                                </div>
                                <button onclick="downloadGame('The Art of Combat')" class="text-brand-accent hover:text-white text-sm font-semibold flex items-center gap-1 transition-colors w-max">
                                    <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> Download
                                </button>
                            </div>

                            <!-- Supplement 5 -->
                            <div class="game-card p-5 rounded-xl hover:border-brand-gold/50 flex flex-col justify-between h-full group">
                                <div>
                                    <h5 class="font-bold text-lg text-white mb-1 group-hover:text-brand-gold transition-colors">From the Imperial Library</h5>
                                    <p class="text-xs text-slate-400 mb-3">By Brian Brousseau • 39 pgs, 5.5 MB</p>
                                    <p class="text-sm text-slate-300 mb-4 line-clamp-2">Variant magic systems, new and revised spells, and talents to turn magic to eleven.</p>
                                </div>
                                <button onclick="downloadGame('From the Imperial Library')" class="text-brand-accent hover:text-white text-sm font-semibold flex items-center gap-1 transition-colors w-max">
                                    <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> Download
                                </button>
                            </div>

                            <!-- Supplement 6 (SRD) -->
                            <div class="game-card p-5 rounded-xl hover:border-brand-gold/50 flex flex-col justify-between h-full group">
                                <div>
                                    <h5 class="font-bold text-lg text-white mb-1 group-hover:text-brand-gold transition-colors">System Reference Document</h5>
                                    <p class="text-xs text-slate-400 mb-3">RTF Format</p>
                                    <p class="text-sm text-slate-300 mb-4 line-clamp-2">The barebones system mechanics, ready for creators to use and adapt for their own games.</p>
                                </div>
                                <button onclick="downloadGame('WR&M SRD')" class="text-brand-accent hover:text-white text-sm font-semibold flex items-center gap-1 transition-colors w-max">
                                    <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> Download
                                </button>
                            </div>
                            
                            <!-- Supplement 9 (German SRD) -->
                            <div class="game-card p-5 rounded-xl hover:border-brand-gold/50 flex flex-col justify-between h-full group">
                                <div>
                                    <h5 class="font-bold text-lg text-white mb-1 group-hover:text-brand-gold transition-colors">German SRD</h5>
                                    <p class="text-xs text-slate-400 mb-3">PDF Format</p>
                                    <p class="text-sm text-slate-300 mb-4 line-clamp-2">The System Reference Document translated into German.</p>
                                </div>
                                <button onclick="downloadGame('WR&M German SRD')" class="text-brand-accent hover:text-white text-sm font-semibold flex items-center gap-1 transition-colors w-max">
                                    <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> Download
                                </button>
                            </div>

                            <!-- Supplement 10 (Interactive SRD) -->
                            <div class="game-card p-5 rounded-xl hover:border-brand-gold/50 flex flex-col justify-between h-full group">
                                <div>
                                    <h5 class="font-bold text-lg text-white mb-1 group-hover:text-brand-gold transition-colors">Interactive SRD</h5>
                                    <p class="text-xs text-slate-400 mb-3">Web Version</p>
                                    <p class="text-sm text-slate-300 mb-4 line-clamp-2">The fully searchable and interactive web version of the System Reference Document.</p>
                                </div>
                                <a href="srd/index.html" class="text-brand-accent hover:text-white text-sm font-semibold flex items-center gap-1 transition-colors w-max">
                                    <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg> View SRD
                                </a>
                            </div>

                            <!-- Supplement 7 (Character Sheets) -->
                            <div class="game-card p-5 rounded-xl hover:border-brand-gold/50 flex flex-col justify-between h-full group">
                                <div>
                                    <h5 class="font-bold text-lg text-white mb-1 group-hover:text-brand-gold transition-colors">Character Sheets</h5>
                                    <p class="text-xs text-slate-400 mb-3">PDF Format</p>
                                    <p class="text-sm text-slate-300 mb-4 line-clamp-2">Character, Spell, Equipment and Variant sheets (includes printer-friendly versions).</p>
                                </div>
                                <button onclick="downloadGame('WR&M Character Sheets')" class="text-brand-accent hover:text-white text-sm font-semibold flex items-center gap-1 transition-colors w-max">
                                    <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> Download
                                </button>
                            </div>

                            <!-- Supplement 8 (Early Draft) -->
                            <div class="game-card p-5 rounded-xl hover:border-brand-gold/50 flex flex-col justify-between h-full group">
                                <div>
                                    <h5 class="font-bold text-lg text-white mb-1 group-hover:text-brand-gold transition-colors">Early Draft Edition</h5>
                                    <p class="text-xs text-slate-400 mb-3">4 Pages • PDF</p>
                                    <p class="text-sm text-slate-300 mb-4 line-clamp-2">The original 4-paged "Early Draft" edition of the Warrior, Rogue & Mage core rules.</p>
                                </div>
                                <button onclick="downloadGame('WR&M Early Draft')" class="text-brand-accent hover:text-white text-sm font-semibold flex items-center gap-1 transition-colors w-max">
                                    <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> Download
                                </button>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Other Games Section -->
        <section id="other-games" class="py-24 relative bg-brand-surface border-t border-slate-800">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
                
                <div class="text-center mb-16">
                    <h2 class="font-serif text-3xl md:text-4xl font-bold text-white mb-4">More Adventures</h2>
                    <p class="text-slate-400 max-w-2xl mx-auto">Explore entirely different worlds, from high-octane action and wuxia martial arts to pulp adventures and gritty noir detective stories.</p>
                </div>

                <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
                    
                    <!-- A Wanderer's Romance -->
                    <div class="game-card rounded-2xl overflow-hidden flex flex-col border-t-4 border-t-emerald-500">
                        <div class="p-6 flex-grow flex flex-col">
                            <div class="flex justify-between items-start mb-4">
                                <h3 class="font-serif font-bold text-2xl text-emerald-400">A Wanderer's Romance</h3>
                                <span class="text-2xl" title="Martial Arts & Tea">🍵</span>
                            </div>
                            <p class="text-xs text-slate-400 mb-4 uppercase tracking-wider font-semibold">By Chris McDowall</p>
                            <p class="text-sm text-slate-300 flex-grow mb-6">
                                A game of martial art duels and tea-making contests set in a world of unnatural islands on an endless sea. Fast task resolution and a wuxia-influenced character-driven setting.
                            </p>
                            <button onclick="downloadGame('A Wanderer\'s Romance')" class="w-full py-2 bg-slate-800 hover:bg-emerald-600 border border-slate-700 hover:border-emerald-500 text-white rounded font-medium transition-colors flex justify-center items-center gap-2">
                                <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> Download PDF
                            </button>
                        </div>
                    </div>

                    <!-- Arcane Heroes -->
                    <div class="game-card rounded-2xl overflow-hidden flex flex-col border-t-4 border-t-purple-500">
                        <div class="p-6 flex-grow flex flex-col">
                            <div class="flex justify-between items-start mb-4">
                                <h3 class="font-serif font-bold text-2xl text-purple-400">Arcane Heroes</h3>
                                <span class="text-2xl" title="Magic & Industry">⚙️</span>
                            </div>
                            <p class="text-xs text-slate-400 mb-4 uppercase tracking-wider font-semibold">By Michael Wolf</p>
                            <p class="text-sm text-slate-300 flex-grow mb-6">
                                A rules-light RPG set in a fantasy world undergoing an industrial revolution. Play as descendants of ancient, almost forgotten bloodlines in a time when true heroes are needed again.
                            </p>
                            <button onclick="downloadGame('Arcane Heroes')" class="w-full py-2 bg-slate-800 hover:bg-purple-600 border border-slate-700 hover:border-purple-500 text-white rounded font-medium transition-colors flex justify-center items-center gap-2">
                                <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> Download PDF
                            </button>
                        </div>
                    </div>

                    <!-- BADASS -->
                    <div class="game-card rounded-2xl overflow-hidden flex flex-col border-t-4 border-t-rose-500">
                        <div class="p-6 flex-grow flex flex-col">
                            <div class="flex justify-between items-start mb-4">
                                <h3 class="font-serif font-bold text-2xl text-rose-400">BADASS</h3>
                                <span class="text-2xl" title="Explosions & Awesomeness">💥</span>
                            </div>
                            <p class="text-xs text-slate-400 mb-4 uppercase tracking-wider font-semibold">By Jay Steven Anyong</p>
                            <p class="text-sm text-slate-300 flex-grow mb-6">
                                A game filled with pure awesomesauce that kicks logic in the face. Kick a metal fire door down off its hinges, catch a bullet, or slice through a tank with a katana!
                            </p>
                            <div class="grid grid-cols-2 gap-2 mt-auto">
                                <button onclick="downloadGame('BADASS (EN)')" class="py-2 bg-slate-800 hover:bg-rose-600 border border-slate-700 hover:border-rose-500 text-white text-sm rounded font-medium transition-colors flex justify-center items-center gap-1">
                                    <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> EN PDF
                                </button>
                                <button onclick="downloadGame('BADASS (PT-BR)')" class="py-2 bg-slate-800 hover:bg-rose-600 border border-slate-700 hover:border-rose-500 text-white text-sm rounded font-medium transition-colors flex justify-center items-center gap-1">
                                    <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> PT-BR PDF
                                </button>
                            </div>
                        </div>
                    </div>

                    <!-- Chronicles of the Four Dragons -->
                    <div class="game-card rounded-2xl overflow-hidden flex flex-col border-t-4 border-t-red-600">
                        <div class="p-6 flex-grow flex flex-col">
                            <div class="flex justify-between items-start mb-4">
                                <h3 class="font-serif font-bold text-2xl text-red-400 leading-tight">Chronicles of the Four Dragons</h3>
                                <span class="text-2xl" title="Wuxia Action">🐉</span>
                            </div>
                            <p class="text-xs text-slate-400 mb-4 uppercase tracking-wider font-semibold">By Michael Wolf</p>
                            <p class="text-sm text-slate-300 flex-grow mb-6">
                                A wuxia roleplaying game using a modified version of the Warrior, Rogue & Mage rules.
                            </p>
                            <button onclick="downloadGame('Chronicles of the Four Dragons')" class="w-full py-2 bg-slate-800 hover:bg-red-600 border border-slate-700 hover:border-red-500 text-white rounded font-medium transition-colors flex justify-center items-center gap-2">
                                <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> Download PDF
                            </button>
                        </div>
                    </div>

                    <!-- Resolute, Adventurer & Genius -->
                    <div class="game-card rounded-2xl overflow-hidden flex flex-col border-t-4 border-t-amber-600">
                        <div class="p-6 flex-grow flex flex-col">
                            <div class="flex justify-between items-start mb-4">
                                <h3 class="font-serif font-bold text-2xl text-amber-500 leading-tight">Resolute, Adventurer & Genius</h3>
                                <span class="text-2xl" title="Pulp Action">🤠</span>
                            </div>
                            <p class="text-xs text-slate-400 mb-4 uppercase tracking-wider font-semibold">By Andrew Modro & Jason Cabral</p>
                            <p class="text-sm text-slate-300 flex-grow mb-6">
                                A pulp action roleplaying game based on the WR&M system. Explore ancient ruins, fight evil cults, and save the world!
                            </p>
                            <button onclick="downloadGame('Resolute, Adventurer & Genius')" class="w-full py-2 bg-slate-800 hover:bg-amber-600 border border-slate-700 hover:border-amber-500 text-white rounded font-medium transition-colors flex justify-center items-center gap-2">
                                <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> Download PDF
                            </button>
                        </div>
                    </div>

                    <!-- Thrilling Noir Stories -->
                    <div class="game-card rounded-2xl overflow-hidden flex flex-col border-t-4 border-t-slate-400">
                        <div class="p-6 flex-grow flex flex-col">
                            <div class="flex justify-between items-start mb-4">
                                <h3 class="font-serif font-bold text-2xl text-slate-300 leading-tight">Thrilling Noir Stories</h3>
                                <span class="text-2xl" title="Noir Detective">🕵️</span>
                            </div>
                            <p class="text-xs text-slate-400 mb-4 uppercase tracking-wider font-semibold">By Michael Garcia & Michael Wolf</p>
                            <p class="text-sm text-slate-300 flex-grow mb-6">
                                A hardboiled detective roleplaying game powered by WR&M. Navigate the gritty streets and uncover the truth.
                            </p>
                            <button onclick="downloadGame('Thrilling Noir Stories')" class="w-full py-2 bg-slate-800 hover:bg-slate-600 border border-slate-700 hover:border-slate-400 text-white rounded font-medium transition-colors flex justify-center items-center gap-2">
                                <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> Download PDF
                            </button>
                        </div>
                    </div>

                </div>
            </div>
        </section>

        <!-- Miscellaneous Section -->
        <section id="miscellaneous" class="py-24 relative bg-gradient-to-b from-brand-surface to-brand-bg border-t border-slate-800">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
                
                <div class="text-center mb-16">
                    <h2 class="font-serif text-3xl md:text-4xl font-bold text-white mb-4">Miscellaneous</h2>
                    <p class="text-slate-400 max-w-2xl mx-auto">Other tabletop RPG projects, one-page dungeons, and rules summaries.</p>
                </div>

                <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
                    
                    <!-- Horror of Leatherbury House -->
                    <div class="game-card rounded-2xl overflow-hidden flex flex-col border-t-4 border-t-red-800">
                        <div class="p-6 flex-grow flex flex-col">
                            <div class="flex justify-between items-start mb-4">
                                <h3 class="font-serif font-bold text-2xl text-red-400 leading-tight">Horror of Leatherbury House</h3>
                                <span class="text-2xl" title="Non-Fantasy Dungeon">🏚️</span>
                            </div>
                            <p class="text-xs text-slate-400 mb-4 uppercase tracking-wider font-semibold">By Michael Wolf</p>
                            <p class="text-sm text-slate-300 flex-grow mb-6">
                                The 2009 One Page Dungeon Contest winner in the "Non-Fantasy Dungeon" category. Explore the chilling secrets within.
                            </p>
                            <button onclick="downloadGame('Horror of Leatherbury House')" class="w-full py-2 bg-slate-800 hover:bg-red-900 border border-slate-700 hover:border-red-700 text-white rounded font-medium transition-colors flex justify-center items-center gap-2">
                                <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> Download PDF
                            </button>
                        </div>
                    </div>

                    <!-- FUDGE in a Nutshell -->
                    <div class="game-card rounded-2xl overflow-hidden flex flex-col border-t-4 border-t-blue-500">
                        <div class="p-6 flex-grow flex flex-col">
                            <div class="flex justify-between items-start mb-4">
                                <h3 class="font-serif font-bold text-2xl text-blue-400 leading-tight">FUDGE in a Nutshell</h3>
                                <span class="text-2xl" title="Rules Summary">🎲</span>
                            </div>
                            <p class="text-xs text-slate-400 mb-4 uppercase tracking-wider font-semibold">By Michael Wolf</p>
                            <p class="text-sm text-slate-300 flex-grow mb-6">
                                A highly convenient One-Page Edition of the FUDGE rules system. Perfect for quick reference at the table.
                            </p>
                            <button onclick="downloadGame('FUDGE in a Nutshell')" class="w-full py-2 bg-slate-800 hover:bg-blue-600 border border-slate-700 hover:border-blue-500 text-white rounded font-medium transition-colors flex justify-center items-center gap-2">
                                <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> Download PDF
                            </button>
                        </div>
                    </div>

                    <!-- Fallout Fudged -->
                    <div class="game-card rounded-2xl overflow-hidden flex flex-col border-t-4 border-t-green-500">
                        <div class="p-6 flex-grow flex flex-col">
                            <div class="flex justify-between items-start mb-4">
                                <h3 class="font-serif font-bold text-2xl text-green-400 leading-tight">Fallout Fudged</h3>
                                <span class="text-2xl" title="Post-Apocalyptic RPG">☢️</span>
                            </div>
                            <p class="text-xs text-slate-400 mb-4 uppercase tracking-wider font-semibold">By Michael Wolf</p>
                            <p class="text-sm text-slate-300 flex-grow mb-6">
                                A Fallout TTRPG based on Fallout 1 & 2 using the FUDGE rules.
                            </p>
                            <div class="grid grid-cols-2 gap-2 mt-auto">
                                <button onclick="downloadGame('Fallout Fudged Rules')" class="py-2 bg-slate-800 hover:bg-green-600 border border-slate-700 hover:border-green-500 text-white text-sm rounded font-medium transition-colors flex justify-center items-center gap-1">
                                    <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> Rules
                                </button>
                                <button onclick="downloadGame('Fallout Fudged Character Sheet')" class="py-2 bg-slate-800 hover:bg-green-600 border border-slate-700 hover:border-green-500 text-white text-sm rounded font-medium transition-colors flex justify-center items-center gap-1">
                                    <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> Sheet
                                </button>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </section>

        <!-- About Section -->
        <section id="about" class="py-24 relative bg-brand-surface border-t border-slate-800">
            <div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8">
                
                <!-- Title Header (Moved outside grid for better alignment) -->
                <div class="mb-8">
                    <h2 class="font-serif text-3xl md:text-4xl font-bold text-white mb-2">About Stargazer Games</h2>
                    <div class="w-16 h-1 bg-brand-accent rounded-full"></div>
                </div>

                <div class="grid md:grid-cols-3 gap-12 items-start">
                    
                    <!-- Left: Text -->
                    <div class="md:col-span-2 space-y-6">
                        <p class="text-slate-300 text-lg leading-relaxed text-justify">
                            Stargazer Games is the independent publishing label of Michael Wolf, a passionate tabletop roleplaying gamer and game designer based in Germany. 
                        </p>
                        <p class="text-slate-300 text-lg leading-relaxed text-justify">
                            Since 2010, Michael has been creating and sharing free, lightweight, and open-licensed RPGs out of pure love for the hobby. The site hosts a wide range of rules-lite free games, offering a diverse collection of imaginative worlds and systems, from high-flying pulp action to gritty noir detective stories.
                        </p>
                        <p class="text-slate-300 text-lg leading-relaxed text-justify">
                            While Michael founded the label, Stargazer Games is incredibly proud to feature fantastic standalone games and supplements crafted by other talented designers, including Colin Chapman, Andrew Modro, Jason Cabral, Brian Brousseau, Chris McDowall, Jay Steven Anyong, and Michael Garcia.
                        </p>
                        <p class="text-slate-300 text-lg leading-relaxed text-justify">
                            In addition to designing games, Michael is also the editor-in-chief of the long-running <a href="https://stargazersworld.com" target="_blank" class="text-brand-accent hover:text-white transition-colors font-medium">Stargazer's World</a> blog, where he has shared reviews, thoughts, and news about the TTRPG industry for almost two decades. You can also find his complete ludography on his <a href="https://rpggeek.com/rpgdesigner/22914/michael-wolf" target="_blank" class="text-brand-accent hover:text-white transition-colors font-medium">RPG Geek designer page</a>.
                        </p>
                    </div>

                    <!-- Right: Image -->
                    <div class="md:col-span-1 flex justify-center md:justify-end">
                        <div class="relative group">
                            <div class="absolute -inset-2 bg-gradient-to-r from-brand-accent to-brand-gold rounded-2xl blur opacity-20 group-hover:opacity-40 transition duration-1000 group-hover:duration-200"></div>
                            <img src="https://stargazergames.eu/sgg_mw_300.jpg" alt="Michael Wolf" class="relative w-[300px] h-[300px] object-cover rounded-2xl border border-slate-700 shadow-2xl transition-all duration-500">
                        </div>
                    </div>

                </div>
            </div>
        </section>

        <!-- Dice Roller & Community Section -->
        <section id="dice-roller" class="py-16 relative bg-brand-bg border-t border-slate-800/50">
            <div class="max-w-5xl mx-auto px-4 sm:px-6 lg:px-8">
                
                <div class="grid md:grid-cols-3 gap-8">
                    
                    <!-- Left: Dice Roller -->
                    <div class="md:col-span-2 game-card p-8 rounded-2xl flex flex-col md:flex-row items-center gap-8 shadow-2xl">
                        <!-- Shaking D20 Icon -->
                        <div id="dice-icon-container" class="w-24 h-24 text-brand-accent flex-shrink-0 transition-transform duration-200">
                            <svg viewBox="0 0 100 100" class="w-full h-full drop-shadow-[0_0_15px_rgba(139,92,246,0.3)]"><use href="#icon-d20"></use></svg>
                        </div>
                        
                        <!-- Input and Results -->
                        <div class="flex-grow w-full">
                            <h3 class="font-serif text-2xl font-bold text-white mb-2">Quick Dice Roller</h3>
                            <p class="text-sm text-slate-400 mb-4">Enter a formula (e.g., 4d6, 1d20+5, 4dF)</p>
                            
                            <div class="flex gap-3 mb-4">
                                <input type="text" id="dice-input" placeholder="1d20+5" class="flex-grow bg-slate-900 border border-slate-700 rounded-lg px-4 py-3 text-white focus:outline-none focus:border-brand-accent focus:ring-1 focus:ring-brand-accent transition-all font-mono text-lg" onkeypress="if(event.key === 'Enter') rollDice()">
                                <button onclick="rollDice()" class="px-6 py-3 bg-brand-accent hover:bg-violet-500 text-white rounded-lg font-bold transition-all shadow-[0_0_15px_rgba(139,92,246,0.2)] hover:shadow-[0_0_25px_rgba(139,92,246,0.5)] whitespace-nowrap">
                                    Roll!
                                </button>
                            </div>
                            
                            <!-- Result Display -->
                            <div id="dice-result-box" class="hidden bg-slate-900/50 border border-slate-700/50 rounded-lg p-4">
                                <div class="flex items-center justify-between">
                                    <span id="dice-total" class="text-3xl font-bold text-brand-gold transition-transform duration-150 inline-block"></span>
                                    <span id="dice-details" class="text-sm text-slate-400 font-mono text-right max-w-[60%] break-words"></span>
                                </div>
                            </div>
                            <!-- Error Display -->
                            <div id="dice-error" class="hidden text-rose-400 text-sm font-medium mt-2"></div>
                        </div>
                    </div>
                    
                    <!-- Right: Discord Panel -->
                    <div class="md:col-span-1 game-card p-8 rounded-2xl flex flex-col items-center justify-center text-center gap-6 shadow-2xl">
                        <h3 class="font-serif text-2xl font-bold text-white">Join us on Discord</h3>
                        
                        <a href="https://discord.gg/rdVjDtM" target="_blank" class="group text-[#5865F2] hover:text-white transition-all duration-300 transform hover:scale-110 drop-shadow-[0_0_15px_rgba(88,101,242,0.4)] hover:drop-shadow-[0_0_25px_rgba(88,101,242,0.8)]">
                            <svg class="w-24 h-24 fill-current" viewBox="0 0 127.14 96.36">
                                <path d="M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.31,60,73.31,53s5-12.74,11.43-12.74S96.2,46,96.12,53,91.08,65.69,84.69,65.69Z"/>
                            </svg>
                        </a>
                        
                        <p class="text-sm text-slate-400">Chat with the community, get homebrew ideas, and talk TTRPGs.</p>
                    </div>
                    
                </div>
                
            </div>
        </section>
    </main>

    <!-- Footer -->
    <footer class="bg-[#05040a] border-t border-slate-800 py-12 text-slate-400 z-10">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 grid md:grid-cols-3 gap-8 lg:gap-12 text-center md:text-left">
            <!-- Brand Section -->
            <div class="md:col-span-1 flex flex-col items-center md:items-start">
                <div class="mb-4">
                    <img src="sgg_logo_white.png" alt="Stargazer Games" class="w-[150px] h-[150px] object-contain opacity-75 hover:opacity-100 transition-opacity duration-300">
                </div>
                <p class="text-sm leading-relaxed mb-4">Bringing you free roleplaying games since 2010.<br>Shared under open licenses because we love the hobby.</p>
            </div>
            
            <!-- Games Links -->
            <div class="md:col-span-1">
                <h4 class="text-white font-bold mb-4">Games</h4>
                <ul class="space-y-2 text-sm">
                    <li><a href="#wrm" class="hover:text-brand-accent transition-colors">Warrior, Rogue & Mage</a></li>
                    <li><a href="#other-games" class="hover:text-brand-accent transition-colors">Other Games</a></li>
                </ul>
            </div>

            <!-- Quick Links -->
            <div class="md:col-span-1 flex flex-col items-center md:items-start">
                <h4 class="text-white font-bold mb-4">Quick Links</h4>
                <ul class="space-y-2 text-sm text-center md:text-left">
                    <li><a href="https://stargazersworld.com" target="_blank" class="hover:text-brand-accent transition-colors">Stargazer's World</a></li>
                    <li><a href="https://site.drivethrurpg.com/browse/pub/3313/Stargazer-Games?affiliate_id=5405" target="_blank" class="hover:text-brand-accent transition-colors">Stargazer Games at DriveThruRPG</a></li>
                    <li><button onclick="togglePanel('legal-privacy-panel')" class="hover:text-brand-accent transition-colors focus:outline-none">Legal & Privacy</button></li>
                </ul>
            </div>
        </div>
        
        <!-- Info Panels (Centered below columns) -->
        <div class="max-w-3xl mx-auto px-4 sm:px-6 lg:px-8">
            <div id="legal-privacy-panel" class="hidden mt-8 p-6 bg-brand-surface border border-slate-700 rounded-lg text-slate-300 text-sm shadow-inner transition-all duration-300 space-y-4">
                <p>Stargazer Games is the brainchild of Michael Wolf, editor-in-chief of the roleplaying games blog Stargazer’s World. This site is dedicated to all the games, adventures, supplements, etc. he created over the years and made available for free on the internet. If there’s anything missing here, please contact us and we'll add it as soon as possible.</p>
                
                <h5 class="text-white font-bold text-lg mt-6 mb-2">Contact</h5>
                <p>If you have any suggestions, questions or advice, please send us an email or you can reach us by snail mail by sending your letter to:</p>
                <address class="not-italic block mt-2 mb-4 bg-brand-bg/50 p-4 rounded-md border border-slate-800">
                    Michael Wolf<br>
                    Schulstrasse 23<br>
                    35792 Löhnberg<br>
                    GERMANY<br>
                    info (at) stargazersworld.com
                </address>

                <h5 class="text-white font-bold text-lg mt-6 mb-2">Copyright</h5>
                <p>Unless otherwise noted, the copyright to all Content on the Site is held by the individual authors.</p>

                <h5 class="text-white font-bold text-lg mt-6 mb-2">Privacy</h5>
                <p>This site doesn't collect any user data.</p>
            </div>
        </div>

        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 mt-12 pt-8 border-t border-slate-800 text-sm flex flex-col md:flex-row justify-between items-center gap-4">
            <p>&copy; 2026 Michael Wolf. All rights reserved.</p>
            <p class="flex items-center gap-1">Made with <span class="text-brand-accent">♥</span> for TTRPGs</p>
        </div>
    </footer>

    <!-- JavaScript for Interactions -->
    <script>
        // Toggle Footer Panels
        window.togglePanel = function(panelId) {
            const panel = document.getElementById(panelId);
            
            // Toggle the clicked one
            if (panel.classList.contains('hidden')) {
                panel.classList.remove('hidden');
            } else {
                panel.classList.add('hidden');
            }
        };

        window.downloadGame = function(gameId) {
            const url = GAME_DOWNLOAD_LINKS[gameId];
            if (url) {
                // Open the corresponding download link from the GAME_DOWNLOAD_LINKS dictionary
                window.open(url, '_blank');
            } else {
                console.warn('Download link not configured for: ' + gameId);
            }
        };

        // --- Dice Roller Logic ---
        window.rollDice = function() {
            const inputElement = document.getElementById('dice-input');
            const resultBox = document.getElementById('dice-result-box');
            const totalElement = document.getElementById('dice-total');
            const detailsElement = document.getElementById('dice-details');
            const errorElement = document.getElementById('dice-error');
            const diceIcon = document.getElementById('dice-icon-container');

            let expr = inputElement.value.trim() || '1d20'; // Default roll
            
            // Hide previous results/errors
            resultBox.classList.add('hidden');
            errorElement.classList.add('hidden');
            
            // Start shake animation
            diceIcon.classList.add('animate-dice-shake');

            // Simulate the physical roll time (600ms)
            setTimeout(() => {
                diceIcon.classList.remove('animate-dice-shake');
                
                const result = parseAndRollDice(expr);
                
                if (result.error) {
                    errorElement.textContent = result.error;
                    errorElement.classList.remove('hidden');
                } else {
                    totalElement.textContent = result.total;
                    detailsElement.textContent = result.details;
                    resultBox.classList.remove('hidden');
                    
                    // Small pop animation for the final number
                    totalElement.style.transform = 'scale(1.2)';
                    setTimeout(() => totalElement.style.transform = 'scale(1)', 150);
                }
            }, 600); 
        };

        function parseAndRollDice(expr) {
            // Strip whitespace and lower case
            expr = expr.replace(/\s+/g, '').toLowerCase();
            
            // Match pattern: optional count, 'd', sides (number or 'f'), optional modifier
            const match = expr.match(/^(\d*)d(\d+|f)(.*)$/);
            
            if (!match) return { error: "Invalid format. Try 1d20, 4d6+2, or 2dF" };

            const count = parseInt(match[1]) || 1;
            const sidesStr = match[2];
            const modifierStr = match[3];

            let isFate = sidesStr === 'f';
            let sides = isFate ? 3 : parseInt(sidesStr);

            // Guardrails
            if (count > 100) return { error: "Too many dice! Let's keep it under 100." };
            if (sides > 1000 && !isFate) return { error: "Too many sides! Keep it under 1000." };
            if (count < 1) return { error: "Must roll at least 1 die." };
            if (sides < 2 && !isFate) return { error: "Dice must have at least 2 sides." };

            let rolls = [];
            let total = 0;

            for (let i = 0; i < count; i++) {
                if (isFate) {
                    let roll = Math.floor(Math.random() * 3) - 1; // Generates -1, 0, or 1
                    rolls.push(roll === -1 ? '-' : (roll === 1 ? '+' : '0'));
                    total += roll;
                } else {
                    let roll = Math.floor(Math.random() * sides) + 1;
                    rolls.push(roll);
                    total += roll;
                }
            }

            let resultStr = `[${rolls.join(', ')}]`;

            // Handle Math modifiers (+, -, *, /)
            if (modifierStr) {
                const modMatch = modifierStr.match(/^([+\-*/])(\d+)$/);
                if (modMatch) {
                    const op = modMatch[1];
                    const val = parseInt(modMatch[2]);
                    if (op === '+') total += val;
                    if (op === '-') total -= val;
                    if (op === '*') total *= val;
                    if (op === '/') total = Math.floor(total / val);
                    resultStr += ` ${op} ${val}`;
                } else {
                    return { error: "Invalid modifier. Use +, -, *, or / followed by a number." };
                }
            }

            return { total: total, details: resultStr };
        }
    </script>
</body>
</html>