/* =========================================
   COMMON STYLES & MEDIEVAL THEME
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Uncial+Antiqua&family=Orbitron:wght@400;700&display=swap');

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

/* Torch Flicker Animation */
@keyframes torch-flicker {
    0%   { box-shadow: 0 0 10px 5px rgba(255, 140, 0, 0.4), inset 0 0 20px rgba(255, 69, 0, 0.3); }
    25%  { box-shadow: 0 0 15px 5px rgba(255, 140, 0, 0.5), inset 0 0 25px rgba(255, 69, 0, 0.2); }
    50%  { box-shadow: 0 0 8px 3px rgba(255, 140, 0, 0.3), inset 0 0 15px rgba(255, 69, 0, 0.4); }
    75%  { box-shadow: 0 0 12px 6px rgba(255, 140, 0, 0.6), inset 0 0 22px rgba(255, 69, 0, 0.3); }
    100% { box-shadow: 0 0 10px 5px rgba(255, 140, 0, 0.4), inset 0 0 20px rgba(255, 69, 0, 0.3); }
}

.bg-medieval {
    background-color: #150d08;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(30,20,10,0.5) 0%, rgba(10,5,0,0.9) 100%),
        url('data:image/svg+xml;utf8,<svg width="200" height="200" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.02" numOctaves="4" stitchTiles="stitch"/></filter><rect width="200" height="200" filter="url(%23noise)" opacity="0.08"/></svg>');
    color: #e0ceba;
    font-family: 'Cinzel', serif;
}

.title-medieval {
    font-family: 'Uncial Antiqua', cursive;
    color: #d4af37;
    text-shadow: 2px 2px 4px #000, 0 0 10px rgba(212, 175, 55, 0.5);
    margin-bottom: 0.5em;
    text-align: center;
}

.btn-medieval {
    background: linear-gradient(145deg, #4e342e, #3e2723);
    color: #d4af37;
    border: 2px solid #8b5a2b;
    padding: 12px 24px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-medieval:hover {
    background: linear-gradient(145deg, #5d4037, #4e342e);
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.parchment-card {
    background: #dfcdb3;
    color: #2c1a0c;
    border: 3px solid #5a3a22;
    border-radius: 8px;
    padding: 20px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.4), 0 5px 15px rgba(0,0,0,0.6);
    position: relative;
}

.hidden { display: none !important; }

/* Impressum Modal */
#impressum-overlay {
    display: none;
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    justify-content: center; align-items: center;
    backdrop-filter: blur(4px);
}
#impressum-content {
    background: #2a1f1a;
    border: 2px solid #d4af37;
    border-radius: 8px;
    padding: 30px;
    max-width: 600px; width: 90%;
    max-height: 85vh; overflow-y: auto;
    color: #e0ceba;
    position: relative;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}
#impressum-close {
    position: absolute; top: 15px; right: 20px;
    font-size: 2rem; cursor: pointer; color: #d4af37;
}
.impressum-section h3 { border-bottom: 1px solid #d4af37; padding-bottom: 5px; color: #d4af37; }
.impressum-section a { color: #ffd54f; }
