:root {
    --c-norse-gold: #eab308;
    --c-norse-amber: #d97706;
    --c-norse-crimson: #991b1b;
    --c-norse-stone: #1c1917;
    --c-norse-parchment: #fef3c7;
    --c-norse-bronze: #78350f;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0c0a09;
}

.font-serif {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
}

/* Filmisk teksturoverlay for sagastemning */
body::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.7" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.045"/></svg>');
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* Rystelse og lyseffekter */
@keyframes screenShake {
    0%, 100% { transform: translate(0, 0); }
    15% { transform: translate(-6px, -4px) rotate(-0.3deg); }
    30% { transform: translate(5px, 4px) rotate(0.3deg); }
    45% { transform: translate(-4px, 3px); }
    60% { transform: translate(4px, -3px); }
    75% { transform: translate(-2px, 2px); }
    90% { transform: translate(2px, -1px); }
}
body.effect-shake #parallax-container,
body.effect-shake {
    animation: screenShake 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes screenFlash {
    0% { filter: brightness(2.5) contrast(1.3); }
    30% { filter: brightness(1.7) sepia(0.4); }
    100% { filter: none; }
}
body.effect-flash {
    animation: screenFlash 0.85s ease-out both;
}

/* Parallax Bakgrunn & Hotspots */
#parallax-container {
    perspective: 1000px;
    background-color: #080605;
}

.parallax-layer {
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.hotspot-zone {
    position: absolute;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease-out;
}

.hotspot-zone:hover {
    background-color: rgba(234, 179, 8, 0.2);
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.45);
}

.hotspot-pin {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle, #fef08a 0%, #b45309 75%);
    border: 2px solid #fff;
    box-shadow: 0 0 16px rgba(234, 179, 8, 0.9), 0 2px 8px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #1c1917;
    animation: pulseNorse 2.2s infinite ease-in-out;
}

@keyframes pulseNorse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 12px rgba(234, 179, 8, 0.6);
    }
    50% {
        transform: scale(1.12);
        box-shadow: 0 0 24px rgba(234, 179, 8, 0.95);
    }
}

/* Forbedret dialog og skriftrull */
#dialogue-box {
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.char-portrait {
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.9));
    transition: transform 0.3s ease-out;
}
.char-portrait:hover {
    transform: scale(1.03);
}

/* Tilpassede rullestil for pergament */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
}
::-webkit-scrollbar-thumb {
    background: rgba(202, 138, 4, 0.5);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(234, 179, 8, 0.8);
}
