@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=MedievalSharp&display=swap');

:root {
    --royal-red: #7a0000;
    --royal-red-light: #a30000;
    --gold: #d4af37;
    --gold-dim: #8a7224;
    --gold-bright: #ffef9e;
    --dark: #050505;
}

* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

body { 
    margin: 0; 
    background-color: var(--dark);
    background-image: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    font-family: 'MedievalSharp', cursive; 
    color: var(--gold-bright); 
    overflow-x: hidden; 
    min-height: 100vh;
}

/* SMOKE SCREEN LAYER */
#smoke-screen { 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    z-index: 20000; 
    pointer-events: none; 
}

/* MAP LOADING TRANSITION */
#map-loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #1a1510 url('https://www.transparenttextures.com/patterns/old-map.png');
    z-index: 10001;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.map-scroll-icon {
    width: 120px;
    filter: sepia(1) saturate(2) hue-rotate(330deg);
    animation: rotateScroll 2s infinite linear;
}

@keyframes rotateScroll {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* HEADER & AVATAR */
.crown-header { 
    text-align: center; 
    padding: 60px 20px 30px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.royal-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    object-fit: cover;
    object-position: top center;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
    animation: floatAvatar 4s ease-in-out infinite;
}

.royal-title { 
    font-family: 'Cinzel Decorative', serif; 
    font-size: 2.2rem; 
    color: var(--gold); 
    margin: 20px 0 10px; 
}

.daily-note { 
    color: #ccc; 
    font-style: italic; 
    max-width: 80%; 
}

/* QUEST LIST & UPDATED BUTTONS */
.quest-list { 
    padding: 0 20px 50px; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.quest-item { 
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid var(--gold-dim);
    border-left: 5px solid var(--gold);
    border-radius: 12px; 
    padding: 18px; 
    display: flex; 
    align-items: center;
    cursor: pointer;
    position: relative;
    opacity: 0; 
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.quest-item.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

.quest-item:hover {
    transform: scale(1.03);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.quest-item:active {
    transform: scale(0.98);
}

.quest-icon {
    font-size: 2.2rem;
    margin-right: 20px;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

.quest-info h3 {
    margin: 0;
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.1rem;
    color: var(--gold);
}

.quest-info p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #aaa;
}

/* GAME OVERLAY */
#game-overlay { 
    display: none; 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: var(--dark); 
    z-index: 9999; 
    flex-direction: column; 
}

.overlay-header { 
    padding: 15px; 
    background: #111; 
    border-bottom: 1px solid var(--gold-dim); 
    display: flex; 
    align-items: center; 
}

.back-btn { 
    background: var(--royal-red); 
    color: white; 
    border: none; 
    padding: 8px 16px; 
    border-radius: 20px; 
    margin-right: 15px; 
    font-family: 'MedievalSharp', cursive;
}

.audio-toggle { 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    background: rgba(0, 0, 0, 0.8); 
    border: 2px solid var(--gold); 
    color: var(--gold); 
    padding: 10px 20px; 
    border-radius: 30px; 
    z-index: 1000; 
    font-family: 'MedievalSharp', cursive;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.audio-toggle:hover {
    background: var(--gold);
    color: black;
    box-shadow: 0 0 20px var(--gold);
}

@keyframes floatAvatar { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-8px); } 
}