/**
 * Hoja de Estilos del Juego ¡Dónde está Buddie!
 * VERSIÓN RECONSTRUIDA
 */

/* --- Contenedor Principal --- */
#deb-game-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: auto;
    background-color: #e0e0e0;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    border: 1px solid #ccc;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#deb-game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
}

/* --- Lupa --- */
#deb-loupe {
    position: absolute;
    border: 3px solid #111;
    border-radius: 50%;
    display: none;
    pointer-events: none;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* --- Interfaz de Usuario (UI) en Juego --- */
.deb-ui-element {
    position: absolute;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-family: sans-serif;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
}
.deb-ui-top {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    z-index: 5;
    pointer-events: none;
}
#deb-ui-buddie-hint {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}
#deb-ui-coins {
    bottom: 10px;
    left: 10px;
}
.deb-ui-element .value {
    font-weight: bold;
}

/* --- Estructura Base de Modales --- */
.deb-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
}
.deb-modal-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
}
.deb-modal-content {
    background: #f9f9f9;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: deb-modal-fadein 0.3s ease;
}
@keyframes deb-modal-fadein {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.deb-modal-header {
    height: 140px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.deb-modal-header h2 {
    margin: 0;
    font-size: 2em;
}
.deb-modal-body {
    padding: 20px;
    text-align: center;
}
.deb-modal-body h3 {
    margin-top: 0;
}
.deb-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px;
    background: #e9e9e9;
}

/* --- Botones --- */
.deb-modal-footer button, .deb-modal-footer a {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.deb-modal-footer button:hover, .deb-modal-footer a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.deb-btn-main { background-color: #28a745; color: white; }
.deb-btn-info { background-color: #007bff; color: white; }
.deb-btn-exit { background-color: #6c757d; color: white; margin-right: auto; }
.deb-btn-special { background-color: #f0ad4e; color: white; }

/* --- Modal de Inicio Específico --- */
.deb-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    text-align: center;
    margin-bottom: 15px;
}
.deb-stat-item {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.deb-stat-item span {
    font-size: 0.8em;
    color: #777;
    display: block;
}
.deb-stat-item strong {
    font-size: 1.6em;
    color: #333;
}
.deb-modal-error {
    display: none;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 15px;
    font-size: 0.9em;
}

/* --- Modal de Info Específico --- */
#deb-info-image {
    max-width: 100%;
    max-height: 150px;
    height: auto;
    margin: 10px 0 15px;
    border-radius: 5px;
}
#deb-btn-info-close {
    margin-top: 10px;
}

/* --- Modal de Ganador Específico --- */
.deb-winner-title {
    color: #28a745;
    font-size: 2em;
    margin: 0 0 10px;
}