:root {
    --c-publisher-dark: #0a0814;
    --c-publisher-paper: #faf7f2;
    --c-publisher-ink: #1a1528;
    --c-publisher-poetry: #8b5cf6;
    --c-publisher-amber: #f59e0b;
    --c-publisher-gold: #fbbf24;
    --c-publisher-red: #e11d48;
}

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

.font-comic {
    font-family: 'Cinzel', 'Outfit', sans-serif;
}

.font-mono {
    font-family: 'Roboto Mono', monospace;
}

/* 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.035"/></svg>');
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* Skjermrystelse ved lyrikk-alarm og deadline-panikk */
@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.2) contrast(1.3); }
    30% { filter: brightness(1.6) sepia(0.3); }
    100% { filter: none; }
}
body.effect-flash {
    animation: screenFlash 0.85s ease-out both;
}

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

/* Dokumentboks med poetisk papir-preg */
.parchment-box {
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px rgba(139, 92, 246, 0.15);
}

/* Karakteranimasjoner */
.char-breathing {
    animation: charBreath 4.2s ease-in-out infinite;
}

@keyframes charBreath {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-4px) scale(1.004); }
}

.char-focused {
    filter: drop-shadow(0 14px 35px rgba(0,0,0,0.9)) brightness(1);
    opacity: 1;
    transform: scale(1);
}

.char-dimmed {
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.7)) brightness(0.65);
    opacity: 0.72;
    transform: scale(0.97);
}
