        :root {
            --player-color: #2ea44f;       /* Zöld (Saját) */
            --enemy-color: #f85149;        /* Piros (Ellenség) */
            --neutral-color: #8b949e;      /* Szürke (Semleges) */
            --selection-color: #ffd700;    /* Arany a kijelöléshez */
            --font-family-game: 'Oxanium', sans-serif; /* Futurisztikus betűtípus */
        }

        body {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            margin: 0;
            background-color: #0d1117; 
            color: #fff;
            font-family: var(--font-family-game);
            overflow: auto; 
            position: relative;
        }
		
		
		a {
  text-decoration: none;
  color: inherit;
  display: block;
}

        #canvas-container {
            position: relative;
            border: 2px solid #30363d;
            box-shadow: 0 0 20px rgba(121, 192, 255, 0.1);
            max-width: 100%;
            overflow: hidden;
        }

        #gameCanvas {
                width: 100%;
    height: auto;
    display: block;
            background-color: #010409;
            cursor: crosshair; /* Jobb kurzor a kijelöléshez */
            display: block;
        }
        
        /* === JÁTÉK VÉGE KÉPERNYŐ STÍLUS === */
        #game-over-screen {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.95);
            display: none; 
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 10;
            text-align: center;
            pointer-events: all; 
            user-select: none;
        }

        #game-over-screen.active {
            display: flex;
        }

        #game-over-screen h1 {
            font-size: 5em;
            margin-bottom: 20px;
            text-transform: uppercase;
            text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
        }

        #game-over-screen p {
            font-size: 1.5em;
            margin-bottom: 30px;
            color: #ccc;
        }
        
        #game-over-screen .win-text { 
            color: var(--player-color); 
            animation: pulse-win 1.5s infinite alternate;
        }
        #game-over-screen .lose-text { 
            color: var(--enemy-color); 
            animation: pulse-lose 1.5s infinite alternate;
        }
        
        @keyframes pulse-win {
            from { text-shadow: 0 0 10px var(--player-color); }
            to { text-shadow: 0 0 25px var(--player-color), 0 0 5px rgba(255, 255, 255, 0.5); }
        }
        @keyframes pulse-lose {
            from { text-shadow: 0 0 10px var(--enemy-color); }
            to { text-shadow: 0 0 25px var(--enemy-color), 0 0 5px rgba(255, 255, 255, 0.5); }
        }

        /* Csillagok a Canvas háttérből CSS-be mozgatva a jobb teljesítményért */
        .stars {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            overflow: hidden;
            z-index: 0;
        }

        .stars div {
            position: absolute;
            background: white;
            border-radius: 50%;
            animation: twinkle linear infinite;
        }

        @keyframes twinkle {
            0% { opacity: 0; transform: scale(0.5); }
            50% { opacity: 1; transform: scale(1); }
            100% { opacity: 0; transform: scale(0.5); }
        }

        #game-info {
            margin-bottom: 15px;
            font-size: 1.2em;
            color: #79c0ff;
            font-weight: 600;
            text-align: center;
        }

        #reset-button {
            padding: 10px 25px;
            margin-top: 20px;
            font-size: 1.1em;
            cursor: pointer;
            background-color: var(--player-color); 
            color: #0d1117; /* Sötétebb szöveg a kontraszt miatt */
            border: none;
            border-radius: 50px;
            transition: background-color 0.3s, transform 0.1s;
            z-index: 11;
            font-family: var(--font-family-game);
            font-weight: 700;
            text-transform: uppercase;
        }

        #reset-button:hover {
            background-color: #3fb965;
            transform: scale(1.05);
        }
        /* === RESZPONZÍV KIEGÉSZÍTÉSEK === */

/* Nagyon kis kijelzők (max 360px, pl. régi mobilok) */
@media (max-width: 360px) {
    #game-over-screen h1 {
        font-size: 2.2em;
    }
    #game-over-screen p {
        font-size: 1em;
    }
    #reset-button {
        padding: 8px 18px;
        font-size: 0.9em;
    }
    #game-info {
        font-size: 0.9em;
    }
    #canvas-container {
        border-width: 1px;
    }
}

/* Kis mobilok (max 480px szélesség) */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    #game-over-screen h1 {
        font-size: 2.8em;
    }
    #game-over-screen p {
        font-size: 1.1em;
    }
    #reset-button {
        font-size: 1em;
        padding: 8px 20px;
    }
    #game-info {
        font-size: 1em;
    }
}

/* Mobil & kisebb tabletek (max 768px) */
@media (max-width: 768px) {
    #game-over-screen h1 {
        font-size: 3.5em;
    }
    #game-over-screen p {
        font-size: 1.2em;
    }
    #reset-button {
        font-size: 1em;
        padding: 9px 22px;
    }
    #game-info {
        font-size: 1.1em;
    }
    #canvas-container {
        max-width: 95%;
    }
}

/* Tabletek álló nézetben (max 1024px) */
@media (max-width: 1024px) {
    #game-over-screen h1 {
        font-size: 4em;
    }
    #game-over-screen p {
        font-size: 1.3em;
    }
    #canvas-container {
        max-width: 90%;
    }
}

/* Nagyobb monitorokhoz (min 1440px) */
@media (min-width: 1440px) {
    #game-over-screen h1 {
        font-size: 6em;
    }
    #game-over-screen p {
        font-size: 1.8em;
    }
    #reset-button {
        font-size: 1.2em;
        padding: 12px 28px;
    }
}
