.tooltip-iniciar {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    background: #cc3333;
    color: #ffffff;
    border: 2px solid #aa2222;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 
        0 4px 15px rgba(204, 51, 51, 0.7),
        0 0 30px rgba(204, 51, 51, 0.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(-10px);
    white-space: normal;
    text-align: center;
    max-width: 90%;
    width: max-content;
}

.tooltip-iniciar::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #cc3333;
}

.tooltip-iniciar.mostrar {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 576px) {
    .tooltip-iniciar {
        font-size: 0.8rem;
        padding: 10px 16px;
        white-space: normal;
        max-width: 250px;
    }
}

/* Mensaje animado de cobro exitoso */
.cobro-mensaje {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: #ffffff;
    font-size: 3rem;
    font-weight: 900;
    padding: 20px 40px;
    border-radius: 16px;
    box-shadow: 
        0 10px 30px rgba(16, 185, 129, 0.5),
        0 0 50px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease-out;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cobro-mensaje.mostrar {
    bottom: 100px;
    opacity: 1;
}

.cobro-simbolo {
    font-size: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cobro-monto {
    font-size: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 576px) {
    .cobro-mensaje {
        font-size: 2rem;
        padding: 15px 30px;
        bottom: -80px;
    }
    
    .cobro-mensaje.mostrar {
        bottom: 80px;
    }
    
    .cobro-simbolo,
    .cobro-monto {
        font-size: 2rem;
    }
}

.minas-controls,.minas-status { border: 1px solid #d5ded9; border-radius: 14px; padding: 12px; margin: 12px 0; background: white; }
.minas-status h2 { font-size: 20px; font-weight: 800; }
.minas-status p { margin: 0; }
.minas-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) auto; gap: 9px; align-items: end; }
.minas-controls label { font-size: 13px; font-weight: 750; }
.minas-controls select,.sound-toggle { min-height: 44px; border: 1px solid #cdd3e2; border-radius: 9px; background: #f5f5fa; color: #293860; }
.minas-controls select { display: block; width: 100%; padding: 6px; font: 750 16px system-ui,sans-serif; }
.sound-toggle { display: grid; place-items: center; width: 66px; padding: 3px; gap: 1px; color: #fff; background: #293ba0; }
.sound-state { font-size: 11px; line-height: 1; font-weight: 700; }
.sound-toggle[aria-pressed="true"] .sound-slash { display: none; }
.sound-toggle[aria-pressed="false"] { color: #5e6974; background: #eff0f3; }
.grid-cell { min-height: 46px; padding: 0; border: 0; border-radius: 0; background: var(--papel); color: var(--tinta); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.grid-cell-inner { display: grid; place-items: center; }
.grid-cell-inner::before { content: attr(data-numero); }
.grid-cell:is(.revealed,.star) { background: #ffce54; color: #714400; }
.grid-cell:is(.revealed,.star,.star-white) .grid-cell-inner::before { content: "★"; }
.grid-cell.star-white { background: #d9eae5; color: #657c77; }
.grid-cell:is(.bomb,.explosion) .grid-cell-inner::before { content: "💣"; }
.grid-cell.bomb { background: #d5ccd5; }
.grid-cell.explosion { background: #ff8078; outline: 2px solid #ffd3b8; }
.collect-button { width: 100%; margin-top: 12px; padding: 14px; border: 0; border-radius: 12px; background: #2c40a4; color: white; font-weight: 800; }
.collect-button.cobrar { background: #ffcf56; color: #242e4e; }
.collect-button:disabled { opacity: .6; }
.bt-minas-page :focus-visible { outline: 3px solid #ffac33; outline-offset: 2px; }
.minas-modal { position: fixed; inset: 0; z-index: 11000; align-items: center; justify-content: center; padding: 12px; background: #101936bb; }
.minas-modal .modal-content { display: block; width: min(100%,402px); max-height: 90vh; overflow: auto; border: none; border-radius: 16px; background: #fffaf2; color: #192651; }
.minas-modal .modal-header,.minas-modal .modal-body,.minas-modal .modal-footer { padding: 14px 16px; }
.minas-modal .modal-header { background: #293ba0; color: white; }
.minas-modal h3 { margin: 0; color: inherit; font-size: 21px; }
.minas-modal .modal-footer { display: flex; gap: 8px; justify-content: flex-end; }
.minas-modal button { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 9px; background: #e6e9f3; font-weight: 700; }
.minas-modal .accept-button { background: #ffcf56; color: #17234a; }
