:root {
    --primary-color: hsla(268, 100%, 7%, 0.851);
    --secondary-color: hsl(270, 100%, 14%);
    --text-color: hsl(0, 0%, 86%);
    --accent-color: hsl(141, 76%, 46%);
    --border-radius: 11px;
    --game-max-width: 800px;
}

.game-container {
    max-width: var(--game-max-width);
    margin: 0 auto;
    padding: 50px;
    text-align: center;
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-header h1 {
    color: var(--accent-color);
    font-size: 3rem;
    margin-bottom: 10px;
    font-family: 'October Crow', sans-serif;
    text-shadow: 0 0 10px hsl(141, 76%, 46%);
}

.game-main-content {
    width: 100%;
    background-color: var(--primary-color);
    border: 1px dashed var(--accent-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-sizing: border-box;
}

.rules-section {
    color: var(--text-color);
    font-family: 'lazy dog', sans-serif;
    line-height: 1.6;
}

.rules-section h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin: 30px 0 15px;
    text-transform: uppercase;
    text-align: center;
    position: relative;
}

.rules-section h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin: 25px 0 10px;
    border-bottom: 1px dashed var(--accent-color);
    padding-bottom: 5px;
    position: relative;
}

.rules-section p {
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: center;
}

.rules-section ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

.rules-section li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.game-phase {
    margin-bottom: 30px;
    background-color: hsla(270, 100%, 14%, 0.2);
    padding: 15px;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.specific-rules {
    background-color: hsla(141, 76%, 46%, 0.1);
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px dashed var(--accent-color);
    position: relative;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {
    .game-container {
        padding: 15px;
    }
    
    .game-header h1 {
        font-size: 2rem;
        padding-top: 100px;
    }
    
    .game-main-content {
        padding: 20px;
    }
    
    .rules-section h3 {
        font-size: 1.3rem;
        margin: 25px 0 12px;
    }
}

@media (max-width: 480px) {
    .game-header h1 {
        font-size: 1.8rem;
    }
    
    .rules-section {
        font-size: 0.9rem;
    }
    
    .rules-section ul {
        padding-left: 15px;
    }
    
    .game-phase {
        padding: 10px;
    }
}