:root {
    --c-amber: #d97706;
    --c-gold: #f59e0b;
    --c-parchment: #fdfbf7;
    --c-leather: #382414;
    --c-ink: #1c1917;
    --c-pine: #1b2e24;
}

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

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

/* Subtilt filmisk teksturoverlay */
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.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.04"/></svg>');
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* Skjermeffekter */
@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: #0a0807;
}

.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(217, 119, 6, 0.2);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
}

.hotspot-pin {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle, #fde68a 0%, #b45309 70%);
    border: 2px solid #fff;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.85), 0 2px 8px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #291807;
    animation: pulseGlow 2.2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 12px rgba(217, 119, 6, 0.6);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 24px rgba(245, 158, 11, 0.95);
    }
}

.hotspot-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(28, 25, 23, 0.96);
    border: 1px solid rgba(217, 119, 6, 0.7);
    color: #fef3c7;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Roboto Mono', monospace;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.8);
    z-index: 100;
}

.hotspot-zone:hover .hotspot-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Dialog & HUD */
#dialogue-box {
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.94) 0%, rgba(12, 10, 9, 0.98) 100%);
    border-top: 2px solid rgba(217, 119, 6, 0.6);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9);
}

.char-portrait {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.8));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dokumentviser / Kildegransking */
.theme-parchment {
    background: #fdfbf7;
    color: #292524;
    border: 2px solid #b45309;
}

.theme-military {
    background: #1c1917;
    color: #fef3c7;
    border: 2px solid #78350f;
}
