body {
    background: #050308;
    color: #f2f2f2;
    font-family: "Trebuchet MS", sans-serif;
    margin: 0;
}

/* LOGIN SCREEN */

#loginScreen {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, #660022, #050308);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.login-card {
    background: #100010;
    border: 1px solid #990033;
    border-radius: 12px;
    padding: 25px 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 25px #330011;
}

.login-card h1 {
    margin-top: 0;
    margin-bottom: 10px;
}

.login-card label {
    display: block;
    text-align: left;
    margin-top: 10px;
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.login-card input,
.login-card select {
    width: 100%;
    padding: 7px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #1a0b1a;
    color: #f2f2f2;
    margin-bottom: 5px;
}

.login-card button {
    margin-top: 15px;
    width: 100%;
}

.login-hint {
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 8px;
}

/* GAME UI */

.header {
    text-align: center;
    padding: 20px;
    background: radial-gradient(circle at top, #660022, #0a0005);
    border-bottom: 3px solid #660022;
}

.header h1 {
    margin: 0;
}

.container {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.sidebar {
    width: 30%;
    background: #100010;
    padding: 15px;
    border: 1px solid #660022;
    border-radius: 8px;
    box-shadow: 0 0 10px #330011;
}

.main {
    width: 70%;
    padding: 15px;
    background: #100010;
    border: 1px solid #660022;
    border-radius: 8px;
    box-shadow: 0 0 10px #330011;
}

button {
    margin-top: 8px;
    padding: 8px 10px;
    background: #660022;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
}
button:hover {
    background: #990033;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.places-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.box {
    margin-top: 10px;
    background: #050005;
    padding: 15px;
    border: 1px solid #660022;
    border-radius: 6px;
    min-height: 120px;
}

.quest-box {
    min-height: 80px;
    font-size: 0.9rem;
}

/* Inputs en sidebar */

input[type="text"] {
    width: 100%;
    padding: 5px;
    margin-bottom: 5px;
    border-radius: 4px;
    border: 1px solid #444;
    background: #1a0b1a;
    color: #f2f2f2;
}

ul {
    padding-left: 20px;
}

/* Retrato */

.portrait {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    background: radial-gradient(circle at 30% 30%, #ff99cc, #330011);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px #660022;
    border: 2px solid #ff66aa;
}

#portraitEmoji {
    font-size: 3rem;
}

/* Barras */

.bars {
    margin-bottom: 10px;
}

.bar {
    margin-bottom: 6px;
}

.bar-label {
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.bar-track {
    width: 100%;
    height: 12px;
    background: #1a0b1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #330011;
}

.bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 8px;
    transition: width 0.2s ease-out;
}

.bar-vida {
    background: linear-gradient(90deg, #ff3366, #ffcc99);
}

.bar-energia {
    background: linear-gradient(90deg, #66ccff, #ccffff);
}

.bar-exp {
    background: linear-gradient(90deg, #cc99ff, #ffffff);
}

/* Rarezas de enemigos / ítems */

.rareza-comun {
    color: #cccccc;
}

.rareza-raro {
    color: #4aa3ff;
}

.rareza-epico {
    color: #c569ff;
}

.rareza-legendario {
    color: #ffcc33;
    text-shadow: 0 0 4px #ffcc33;
}

/* Responsive para celular */

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 10px;
    }
    .sidebar, .main {
        width: 100%;
        padding: 10px;
    }
    .places-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .actions-grid {
        grid-template-columns: 1fr;
    }
    button {
        font-size: 1rem;
        padding: 12px;
    }
}
