/* ========================
   HOW TO PLAY MODAL STYLING
   ======================== */

.how-to-play-modal {
    max-width: 700px;
    max-height: 80vh;
    background: linear-gradient(145deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.95));
    border: 2px solid var(--gold-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.how-to-play-modal .modal-title {
    color: var(--gold-color);
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    border-bottom: 2px solid rgba(240, 195, 60, 0.3);
    padding-bottom: 15px;
}

.how-to-play-content {
    padding: 0 20px;
    color: #ffffff;
    line-height: 1.6;
}

.game-section {
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid var(--gold-color);
}

.game-section h3 {
    color: var(--gold-color);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.game-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.game-section li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.game-section li::before {
    content: "⚓";
    position: absolute;
    left: 0;
    color: var(--gold-color);
    font-weight: bold;
}

.game-section li strong {
    color: #ffffff;
    font-weight: 600;
}

.warning-section {
    background: rgba(231, 76, 60, 0.1);
    border-left-color: #e74c3c;
}

.warning-section h3 {
    color: #e74c3c;
}

.warning-section li::before {
    content: "⚠️";
}

.how-to-play-modal .button-container {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(240, 195, 60, 0.3);
    margin-top: 20px;
}

.how-to-play-modal .primary-button {
    background: var(--treasure-gradient);
    color: var(--dark-color);
    border: 2px solid var(--gold-color);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.how-to-play-modal .primary-button:hover {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.how-to-play-modal .primary-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* ========================
   RESPONSIVE DESIGN
   ======================== */

@media (max-width: 768px) {
    .how-to-play-modal {
        max-width: 95vw;
        max-height: 85vh;
        margin: 20px auto;
    }

    .how-to-play-modal .modal-title {
        font-size: 1.5rem;
    }

    .how-to-play-content {
        padding: 0 15px;
    }

    .game-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .game-section h3 {
        font-size: 1.2rem;
    }

    .game-section li {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .how-to-play-modal {
        max-width: 98vw;
        max-height: 90vh;
        margin: 10px auto;
        border-radius: 10px;
    }

    .how-to-play-modal .modal-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .game-section {
        padding: 12px;
        margin-bottom: 15px;
    }

    .game-section h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .game-section li {
        font-size: 0.9rem;
        margin-bottom: 8px;
        padding-left: 18px;
    }

    .how-to-play-modal .button-container {
        padding: 15px;
    }

    .how-to-play-modal .primary-button {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

/* ========================
   SCROLLBAR STYLING
   ======================== */

.how-to-play-modal::-webkit-scrollbar {
    width: 8px;
}

.how-to-play-modal::-webkit-scrollbar-track {
    background: rgba(44, 62, 80, 0.3);
    border-radius: 4px;
}

.how-to-play-modal::-webkit-scrollbar-thumb {
    background: var(--gold-color);
    border-radius: 4px;
    opacity: 0.7;
}

.how-to-play-modal::-webkit-scrollbar-thumb:hover {
    opacity: 1;
}
