/* Estilos generales */
:root {
    --primary-color: #4a2c2a;
    --secondary-color: #8b5d33;
    --accent-color: #d4af37;
    --text-color: #f0e6d2;
    --dark-color: #1a1a1a;
    --panel-bg: rgba(26, 26, 26, 0.85);
    --panel-border: rgba(212, 175, 55, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1684&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* Contenedor principal del juego */
#game-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Estilos para las pantallas */
.screen {
    background-color: var(--panel-bg);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    padding: 30px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--panel-border);
    position: relative;
}

/* Pantalla de inicio */
#start-screen {
    text-align: center;
    max-width: 800px;
}

.title-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

h1 {
    font-family: 'MedievalSharp', cursive;
    font-size: 3.5rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.crown-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    animation: glow 2s infinite alternate;
}

#start-screen p {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

#start-button {
    background-color: var(--accent-color);
    color: var(--dark-color);
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'MedievalSharp', cursive;
}

#start-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-color);
}

/* Pantalla principal del juego */
#game-screen {
    display: flex;
    flex-direction: column;
    height: 90vh;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--panel-border);
    margin-bottom: 20px;
}

.game-header h2 {
    font-family: 'MedievalSharp', cursive;
    color: var(--accent-color);
    font-size: 2rem;
}

.player-info {
    display: flex;
    align-items: center;
}

.player-name {
    font-size: 1.2rem;
    margin-right: 15px;
    font-weight: bold;
}

#help-button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

#help-button:hover {
    color: var(--accent-color);
}

.game-content {
    display: flex;
    flex: 1;
    gap: 20px;
    height: calc(90vh - 100px);
}

/* Paneles del juego */
.game-panel {
    background-color: rgba(26, 26, 26, 0.7);
    border-radius: 8px;
    border: 1px solid var(--panel-border);
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.panel-header {
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.panel-header h3 {
    font-family: 'MedievalSharp', cursive;
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* Panel de ubicación */
.location-panel {
    flex: 3;
    min-width: 300px;
}

.location-image {
    height: 250px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    margin-bottom: 15px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--panel-border);
}

.location-description {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Panel de acciones */
.action-panel {
    flex: 4;
    min-width: 350px;
}

.message-log {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.message {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
    animation: fadeIn 0.5s ease;
}

.message.system {
    border-left: 3px solid var(--accent-color);
    background-color: rgba(212, 175, 55, 0.1);
}

.message.player {
    border-left: 3px solid #4a8dff;
    background-color: rgba(74, 141, 255, 0.1);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-row {
    display: flex;
    gap: 10px;
}

.action-button {
    flex: 1;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: 1px solid var(--panel-border);
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-button:hover {
    background-color: var(--secondary-color);
    border-color: var(--accent-color);
}

.action-button i {
    font-size: 1.2rem;
}

/* Dropdown para opciones de movimiento y objetos */
.dropdown {
    position: relative;
    flex: 1;
}

.dropdown-toggle {
    width: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--panel-bg);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1;
    border-radius: 5px;
    border: 1px solid var(--panel-border);
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-content button {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dropdown-content button:hover {
    background-color: rgba(212, 175, 55, 0.2);
}

.dropdown-content.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Panel de inventario */
.inventory-panel {
    flex: 2;
    min-width: 200px;
}

.inventory-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    flex: 1;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.inventory-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 5px;
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.inventory-item:hover {
    background-color: rgba(212, 175, 55, 0.2);
    transform: translateX(5px);
}

.inventory-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.empty-inventory {
    text-align: center;
    color: rgba(240, 230, 210, 0.5);
    padding: 20px;
    font-style: italic;
}

/* Pantalla de ayuda */
#help-screen {
    max-width: 600px;
}

.help-content {
    text-align: center;
}

.help-content h2 {
    font-family: 'MedievalSharp', cursive;
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.help-content ul {
    text-align: left;
    list-style-type: none;
    margin-bottom: 30px;
}

.help-content li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-content li i {
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

#close-help-button {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: 1px solid var(--panel-border);
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 20px;
}

#close-help-button:hover {
    background-color: var(--secondary-color);
    border-color: var(--accent-color);
}

/* Pantalla de victoria */
#victory-screen {
    max-width: 600px;
    text-align: center;
}

.victory-content h2 {
    font-family: 'MedievalSharp', cursive;
    color: var(--accent-color);
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.crown-large {
    font-size: 5rem;
    color: var(--accent-color);
    margin: 30px 0;
    animation: glow 2s infinite alternate;
}

.victory-content p {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

#play-again-button {
    background-color: var(--accent-color);
    color: var(--dark-color);
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'MedievalSharp', cursive;
}

#play-again-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-color);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    from { text-shadow: 0 0 5px rgba(212, 175, 55, 0.5); }
    to { text-shadow: 0 0 20px rgba(212, 175, 55, 0.8); }
}

/* Responsive */
@media (max-width: 1024px) {
    .game-content {
        flex-direction: column;
        height