/* Moushly - GIF que anda em linha reta */
.moushly {
    position: fixed;
    z-index: 5000;
    width: 160px;
    height: 160px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('https://trenchgun1337.neocities.org/img/moushly.png');
}

.moushly.flipped {
    transform: scaleX(-1);
}

/* LeonMouse - predador */
.leonmouse {
    position: fixed;
    z-index: 5001;
    width: 140px;
    height: 140px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('https://trenchgun1337.neocities.org/img/leonmouse.png');
    cursor: pointer;
}

.leonmouse.hit {
    filter: brightness(0.5) sepia(1) hue-rotate(-50deg) saturate(6) !important;
}

/* Explosão de morte */
.explosion {
    position: fixed;
    z-index: 4999;
    width: 130px;
    height: 130px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('https://img1.picmix.com/output/stamp/normal/6/5/8/1/2521856_b29ee.gif');
    pointer-events: none;

}


.moushly-expression {
    position: absolute;
    font-size: 12px;
    font-weight: bold;
    color: #000;
    white-space: nowrap;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    animation: expressionFade 0.6s forwards;
    pointer-events: none;
}

@keyframes expressionFade {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

#battleModal {
    background: #d4d0c8;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    width: 95vw;
    height: 95vh;
    max-width: 900px;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.modal-titlebar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: white;
    padding: 3px 5px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.modal-close-btn {
    width: 16px;
    height: 14px;
    background: #d4d0c8;
    border: 1px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    font-size: 9px;
    cursor: pointer;
    color: #000;
    font-weight: bold;
}

#battleContainer {
    flex: 1;
    overflow: auto;
    background: #d4d0c8;
}

#battleContainer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Password Modal */
.password-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #d4d0c8;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 0;
    z-index: 10001;
    min-width: 320px;
    display: none;
}

.password-modal.show {
    display: block;
}

.password-titlebar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: white;
    padding: 3px 5px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.password-content {
    padding: 15px;
}

.password-input {
    width: 100%;
    padding: 6px;
    margin: 10px 0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    font-family: 'MS Sans Serif', Arial;
    background: #fff;
    color: #000;
    box-sizing: border-box;
}

.password-buttons {
    text-align: center;
    margin-top: 15px;
}

.btn-ok, .btn-cancel {
    background: #d4d0c8;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 4px 15px;
    cursor: pointer;
    margin: 0 5px;
    font-weight: bold;
    font-size: 11px;
}

.btn-ok:active, .btn-cancel:active {
    border-color: #808080 #ffffff #ffffff #808080;
}

.password-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.password-overlay.show {
    display: block;
}

.error-message {
    color: red;
    font-weight: bold;
    text-align: center;
    margin: 5px 0;
}