﻿/* =========================================================
   DIÀLEGS DEL MOTOR
   ========================================================= */
.game-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.game-dialog {
    width: 100%;
    max-width: 420px;
    max-height: 100%;
    overflow-y: auto;
    padding: 28px 24px 24px;
    border: 1px solid var(--game-secondary);
    border-radius: var(--radius);
    background: var(--game-surface);
    color: var(--game-text);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    animation: game-dialog-appear 180ms ease-out;
}
.game-dialog h2 {
    margin: 0 0 14px;
    font-family: var(--font-title);
    font-size: clamp(1.6rem, 6vw, 2rem);
    line-height: 1.15;
    text-align: center;
}
.game-dialog p {
    margin: 0 0 20px;
    color: var(--game-muted);
    line-height: 1.55;
}
.game-dialog-details {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 14px;
    margin: 0 0 24px;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--game-background);
    overflow-wrap: anywhere;
}
.game-dialog-details dt { color: var(--game-muted); }
.game-dialog-details dd { margin: 0; font-weight: 600; }
.game-dialog-actions { display: flex; flex-direction: column; gap: 10px; }
.game-dialog-actions .button { min-height: 50px; }
.game-dialog-actions .button-secondary { background: transparent; }
@keyframes game-dialog-appear {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .game-dialog { animation: none; }
}
