.dialog-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-container {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    color: #e0e0e0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 300px;
}

.npc-portrait-container {
    width: 130px;
    height: 130px;
    aspect-ratio: 1;
    border: 1px solid rgba(107, 185, 240, 0.5);
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto 15px auto;
    clip-path: var(--game-clip-path);
    box-shadow: var(--game-shadow-sm);
}

.npc-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    border-radius: 0;
}

.npc-name {
    text-align: center;
    margin: 5px 0 15px 0;
    color: #ff9800;
}

.dialogue-text {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 5px;
    font-size: 1.1rem;
    line-height: 1.4;
    min-height: 80px;
    border: 1px solid #333;
}

/* Renamed from .options-container to match JSX */
.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

/* Make the last item span full width if it's the only one in the row (odd number of items) */
/*.options-grid>*:last-child:nth-child(odd) {
    grid-column: span 2;
}*/

.option-btn {
    /* Base styles handled by GameButton, but ensure consistent height */
    flex: 1 1 45%;
    min-width: 120px;
    margin: 0;
}

.full-width {
    flex: 1 1 100%;
    width: 100%;
}

.option-button {
    /* Legacy style - keeping just in case */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #555;
    color: #ccc;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
}

.option-button:hover {
    background: rgba(255, 152, 0, 0.1);
    border-color: #ff9800;
    color: #fff;
}

.action-button {
    border-left: 3px solid #ff9800;
}

.dialog-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
}

.dialog-close-btn:hover {
    color: #fff;
}