* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            color: #fff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            overflow-x: hidden;
        }
        
        .container {
            max-width: 1100px;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        header {
            text-align: center;
            margin-bottom: 30px;
            padding: 20px;
            width: 100%;
        }
        
        h1 {
            font-size: 3.5rem;
            margin-bottom: 10px;
            background: linear-gradient(45deg, #ff6b6b, #feca57);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
        }
        
        .subtitle {
            font-size: 1.2rem;
            color: #a5b1c2;
            margin-bottom: 20px;
        }
        
        .game-area {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
            width: 100%;
            margin-bottom: 30px;
        }
        
        .player-section {
            flex: 1;
            min-width: 300px;
            background: rgba(30, 30, 60, 0.7);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
        }
        
        .sacrifice-section {
            flex: 1;
            min-width: 300px;
            background: rgba(30, 30, 60, 0.7);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
        }
        
        .section-title {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: #feca57;
            border-bottom: 2px solid #ff6b6b;
            padding-bottom: 5px;
        }
        
        .stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .stat {
            background: rgba(255, 255, 255, 0.1);
            padding: 10px;
            border-radius: 8px;
            text-align: center;
        }
        
        .stat-value {
            font-size: 1rem;
            font-weight: 700;
            color: #ff6b6b;
        }
        
        .stat-label {
            font-size: 0.9rem;
            color: #a5b1c2;
        }
        
        .abilities {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 20px;
        }
        
        .ability {
            background: rgba(255, 255, 255, 0.1);
            padding: 10px;
            border-radius: 8px;
            text-align: center;
            flex: 1;
            min-width: 120px;
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .ability.active {
            background: rgba(255, 107, 107, 0.3);
            box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
            transform: scale(1.05);
        }
        
        .ability-icon {
            font-size: 2rem;
            margin-bottom: 5px;
        }
        
        .sacrifice-options {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-top: 20px;
        }
        
        .sacrifice-option {
            background: rgba(255, 255, 255, 0.1);
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .sacrifice-option:hover {
            background: rgba(255, 107, 107, 0.3);
            transform: translateY(-5px);
        }
        
        .sacrifice-option.sacrificed {
            background: rgba(100, 100, 100, 0.5);
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .key {
            font-size: 1.8rem;
            font-weight: bold;
            color: #feca57;
            margin-bottom: 5px;
        }
        
        .sacrifice-effect {
            font-size: 0.9rem;
            color: #a5b1c2;
        }
        
        .maze-container {
            width: 100%;
            max-width: 800px;
            height: 500px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 15px;
            overflow: hidden;
            margin: 20px 0;
            position: relative;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            padding: 1rem;
        }
        
        #mazeCanvas {
            width: 100%;
            height: 100%;
        }
        
        #gamestats{
            display: flex;
            justify-content: space-between;
        }
        .controls {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        button {
            padding: 12px 25px;
            border: none;
            border-radius: 8px;
            background: linear-gradient(45deg, #ff6b6b, #feca57);
            color: #1a1a2e;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
            font-size: 1rem;
        }
        
        button:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
        }
        
        button:disabled {
            background: #555;
            color: #999;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .message {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.8);
            padding: 20px 40px;
            border-radius: 10px;
            text-align: center;
            font-size: 1.5rem;
            color: #feca57;
            display: none;
            z-index: 10;
            box-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
        }
        
        .instructions {
            background: rgba(30, 30, 60, 0.7);
            border-radius: 15px;
            padding: 20px;
            margin-top: 20px;
            width: 100%;
            max-width: 800px;
        }
        
        .instructions h3 {
            color: #feca57;
            margin-bottom: 10px;
        }
        
        .instructions p {
            margin-bottom: 10px;
            line-height: 1.5;
        }
        
        .keyboard {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 5px;
            margin-top: 15px;
            max-width: 600px;
        }
        
        .keyboard-key {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 5px;
            font-weight: bold;
            transition: all 0.3s;
        }
        
        .keyboard-key.sacrificed {
            background: rgba(255, 107, 107, 0.3);
            transform: scale(0.9);
            opacity: 0.7;
        }
        
        .progress-bar {
            width: 100%;
            height: 10px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 5px;
            margin-top: 10px;
            overflow: hidden;
        }
        
        .progress {
            height: 100%;
            background: linear-gradient(90deg, #ff6b6b, #feca57);
            width: 0%;
            transition: width 0.5s;
        }
        
        .mini-map {
            width: 150px;
            height: 150px;
            background: rgba(0, 0, 0, 0.5);
            border: 2px solid #feca57;
            border-radius: 8px;
            position: absolute;
            bottom: 20px;
            right: 20px;
            z-index: 5;
        }
        
        @media (max-width: 768px) {
            .game-area {
                flex-direction: column;
            }
            
            .sacrifice-options {
                grid-template-columns: repeat(2, 1fr);
            }
            
            h1 {
                font-size: 2.5rem;
            }
            
            .mini-map {
                width: 100px;
                height: 100px;
                bottom: 10px;
                right: 10px;
            }
        }