:root {
    --burgundy-bg: #1a0a0a;
    --burgundy-card: #221010;
    --gold-bright: #d4af37;
    --gold-muted: #8a6d3b;
    --gold-glow: rgba(212, 175, 55, 0.33);
}

/* Container for the lore section */
.lore-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* The Lore Card with Floating Hover Effect */
/* --- THE LORE CARD (THE VAULT) --- */
.lore-card {
    background: radial-gradient(circle at top left, #221010, #130808);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 60px 80px;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.9), 
                inset 0 0 40px rgba(0,0,0,0.8);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Hover Effect: The Card "Illuminates" */
.lore-card:hover {
    border-color: var(--gold-bright);
    box-shadow: 0 40px 100px rgba(0,0,0,1), 
                0 0 30px var(--gold-glow);
}

/* --- ORNAMENTAL CORNERS --- */
.corner-bracket {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid var(--gold-muted);
    opacity: 0.4;
    transition: 0.4s;
}
.top-left { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.top-right { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.bottom-right { bottom: 20px; right: 20px; border-left: none; border-top: none; }

.lore-card:hover .corner-bracket {
    opacity: 1;
    width: 45px;
    height: 45px;
    border-color: var(--gold-bright);
}

/* --- TYPOGRAPHY --- */
.security-level {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--gold-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.drop-cap {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    line-height: 0.8;
    padding-right: 15px;
    padding-top: 5px;
    color: var(--gold-bright);
    text-shadow: 0 0 15px var(--gold-glow);
}

.lore-text p {
    font-size: 1.1rem;
    line-height: 2;
    color: #f4e8d1; /* Softer cream text */
    margin-bottom: 30px;
    text-align: justify;
    opacity: 0.85;
}

/* --- FOOTER DETAILS --- */
.lore-footer {
    margin-top: 50px;
    text-align: center;
}

.wax-seal-small {
    width: 35px;
    height: 35px;
    background: #d4af37;
    color: #1a0a0a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    font-size: 1rem;
    box-shadow: 0 0 15px var(--gold-glow);
}

.archivist-note {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--gold-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.rules-container {
    max-width: 900px;
    margin: 80px auto;
    perspective: 1000px;
}

.covenant-card {
    background: linear-gradient(145deg, #1e0d0d, #140808);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 60px;
    position: relative;
    box-shadow: 0 50px 80px rgba(0,0,0,0.8);
}

.rules-header {
    text-align: center;
    margin-bottom: 50px;
}

.security-tag {
    font-size: 0.65rem;
    letter-spacing: 5px;
    color: var(--gold-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.rules-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gold-bright);
    margin: 0;
}

/* Ornamental Divider */
.ornamental-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.ornamental-divider::before, .ornamental-divider::after {
    content: '';
    height: 1px;
    width: 80px;
    background: linear-gradient(to var(--dir, right), transparent, var(--gold-muted));
}

.ornamental-divider::after { --dir: left; }

.diamond { color: var(--gold-bright); font-size: 0.8rem; }


/* Layout Wrapper */
.rules-gallery-layout {
    display: flex;
    flex-wrap: wrap; /* Allows stacking on mobile */
    gap: 30px;
    justify-content: center;
    padding: 50px 20px;

}

/* Unified Card Styling */
.rules-card {
    flex: 1; /* Makes both cards take equal width */
    min-width: 350px; /* Prevents cards from getting too squashed */
    max-width: 600px;
    
    /* Burgundy & Texture */
    background: 
        linear-gradient(rgba(74, 4, 4, 0.95), rgba(43, 2, 2, 0.95)),
        url('https://www.transparenttextures.com');
    
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-left: 5px solid #d4af37; /* The 'Power Bar' */
    padding: 40px;
    position: relative;
    box-shadow: 15px 15px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.rules-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
}

/* Header Text Styling */
.rules-title {
    font-family: 'Playfair Display', serif;
    color: #f4e8d1;
    font-size: 2rem;
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Style for the second list (Onyx & Ivory) to match the first */
.rules-list-simple {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.rules-list-simple li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    color: #f4e8d1;
    font-family: 'Lora', serif;
    line-height: 1.6;
}

.rule-no {
    color: #d4af37;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}

/* Ensure keywords in both lists pop */
.rules-card b, .rule-content h4 {
    color: #d4af37;
    letter-spacing: 1px;
}

/* Rule Items */
.rule-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
    transition: 0.4s ease;
}

.rule-item:hover {
    transform: translateX(10px);
    border-bottom-color: var(--gold-bright);
}

.rule-num {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold-muted);
    opacity: 0.5;
    min-width: 50px;
}

.rule-item:hover .rule-num {
    color: var(--gold-bright);
    opacity: 1;
    text-shadow: 0 0 10px var(--gold-glow);
}

.rule-content h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--gold-bright);
    margin: 0 0 10px 0;
    letter-spacing: 2px;
}

.rule-content p {
    color: #e0d5c5;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* The Footer Seal */
.rules-seal {
    position: absolute;
    bottom: -20px;
    right: 40px;
    transform: rotate(-15deg);
}

.stamp-texture {
    border: 3px double var(--gold-muted);
    color: var(--gold-muted);
    padding: 5px 15px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.7rem;
    letter-spacing: 2px;
    opacity: 0.4;
    background: var(--burgundy-bg);
}

/* The starting state: invisible and zero width */
.security-tag, .file-code {
    display: inline-block; /* Required for width animation */
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    opacity: 0;
    border-right: 2px solid var(--gold-bright); /* The 'Typing Cursor' */
}

/* The active state: triggered by JavaScript */
.reveal-active {
    opacity: 1 !important;
    animation: 
        typing 1.5s steps(30, end) forwards,
        blink-cursor 0.75s step-end infinite;
}

/* The typing motion */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* The blinking cursor effect at the end of the text */
@keyframes blink-cursor {
    from, to { border-color: transparent }
    50% { border-color: var(--gold-bright) }
}

.rules-card {
    /* Burgundy base with a subtle 'paper' texture overlay */
    background: 
        linear-gradient(rgba(74, 4, 4, 0.9), rgba(43, 2, 2, 0.9)),
        url('https://www.transparenttextures.com'); /* Subtle grain */
    
    border-left: 5px solid #d4af37; /* A "Power Bar" on the left */
    padding: 50px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 20px 20px 0px rgba(212, 175, 55, 0.1); /* Decorative offset shadow */
}

.rules-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.rules-list li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 20px;
    margin-bottom: 30px;
    align-items: start;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 15px;
}

.rule-no {
    font-family: 'Playfair Display', serif;
    color: #d4af37;
    font-weight: bold;
    font-size: 1.2rem;
}

.rules-list p {
    font-family: 'Lora', serif;
    color: #f4e8d1;
    line-height: 1.8; /* Increased leading for classiness */
    margin: 0;
}

.rules-list b {
    color: #d4af37; /* Highlighted keywords in gold */
    letter-spacing: 1px;
}

/* Decorative Gold Line */
.gold-line-decorative {
    height: 2px;
    background: linear-gradient(90deg, #d4af37, transparent);
    width: 100px;
    margin-top: 10px;
}


/* ================= RESPONSIVE MEDIA QUERIES ================= */

/* Tablets and smaller desktops (1024px and below) */
@media screen and (max-width: 1024px) {
    .lore-card {
        padding: 35px 40px;
    }
    
    .rules-card, .covenant-card {
        padding: 30px 25px;
    }
    
    .rules-header h2 {
        font-size: 1.8rem;
    }
}

/* Tablets (768px and below) */
@media screen and (max-width: 768px) {
    /* Lore Card Adjustments */
    .lore-container {
        padding: 10px;
       
    }

    .lore-card {
        padding: 30px 20px;
    }

    .drop-cap {
        font-size: 3rem;
        padding-right: 8px;
    }

    .lore-text p {
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: left;
        margin-bottom: 20px;
    }
    
    .security-level {
        font-size: 0.55rem;
        letter-spacing: 2px;
    }

    /* Rules Gallery (Side-by-Side to Stacked) */
    .rules-container {
  
        margin: 30px auto;
    }
    
    .rules-gallery-layout {
        flex-direction: column;
        padding: 20px 10px;
        gap: 20px;
    }

    .rules-card, .covenant-card {
        flex: none;
        width: 100%;
        min-width: unset;
        max-width: 100%;
        padding: 25px 20px;
    }

    /* Rule Item Tweaks */
    .rule-item {
        gap: 12px;
        margin-bottom: 20px;
    }

    .rule-num {
        font-size: 1.2rem;
        min-width: 30px;
    }
    
    .rule-content h4 {
        font-size: 0.9rem;
    }
    
    .rule-content p {
        font-size: 0.85rem;
    }

    .rules-header h2 {
        font-size: 1.6rem;
    }
    
    .rules-title {
        font-size: 1.4rem;
    }
    
    .security-tag {
        font-size: 0.55rem;
        letter-spacing: 3px;
    }
    
    /* Rules List */
    .rules-list li {
        grid-template-columns: 30px 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .rules-list p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .rules-list-simple li {
        gap: 10px;
        margin-bottom: 15px;
        font-size: 0.85rem;
    }

    /* Ornaments (Prevent clipping) */
    .corner-bracket {
        width: 18px;
        height: 18px;
    }
    
    .top-left, .top-right, .bottom-left, .bottom-right {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .lore-card:hover .corner-bracket {
        width: 28px;
        height: 28px;
    }
    
    /* Ornamental divider */
    .ornamental-divider::before, 
    .ornamental-divider::after {
        width: 50px;
    }
    
    .ornamental-divider {
        gap: 12px;
    }
    
    /* Footer adjustments */
    .lore-footer {
        margin-top: 25px;
    }
    
    .wax-seal-small {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
        margin: 12px auto;
    }
    
    .archivist-note {
        font-size: 0.6rem;
    }

    /* Stamp & Seal scaling */
    .rules-seal {
        right: 20px;
        bottom: -12px;
        transform: rotate(-10deg) scale(0.9);
    }
    
    .stamp-texture {
        padding: 3px 10px;
        font-size: 0.6rem;
    }
    
    .gold-line-decorative {
        width: 60px;
    }
}

/* Mobile Phones (480px and below) */
@media screen and (max-width: 480px) {
    .lore-card {
        padding: 25px 15px;
    }
    
    
    .drop-cap {
        font-size: 2.5rem;
        padding-right: 6px;
    }
    
    .lore-text p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .security-level {
        font-size: 0.5rem;
        letter-spacing: 2px;
    }

    .rules-header h2 {
        font-size: 1.3rem;
    }
    
    .rules-title {
        font-size: 1.2rem;
    }

    .security-tag {
        letter-spacing: 2px;
        font-size: 0.5rem;
    }

    .ornamental-divider::before, 
    .ornamental-divider::after {
        width: 35px;
    }
    
    .ornamental-divider {
        gap: 10px;
    }
    
    .diamond {
        font-size: 0.6rem;
    }
    
    .rules-card, .covenant-card {
        padding: 20px 15px;
    }
    
    .rule-item {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .rule-num {
        font-size: 1rem;
        min-width: 25px;
    }
    
    .rule-content h4 {
        font-size: 0.85rem;
    }
    
    .rule-content p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .rules-list li {
        grid-template-columns: 25px 1fr;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .rules-list p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .rules-list-simple li {
        gap: 8px;
        margin-bottom: 12px;
        font-size: 0.8rem;
    }
    
    .rule-no {
        min-width: 24px;
        font-size: 0.85rem;
    }
    
    .stamp-texture {
        padding: 2px 8px;
        font-size: 0.55rem;
        letter-spacing: 1px;
    }
    
    .rules-seal {
        right: 15px;
        bottom: -10px;
    }
    
    .gold-line-decorative {
        width: 50px;
    }
}

/* Small Mobile Phones (375px and below) */
@media screen and (max-width: 375px) {
    .lore-card {
        padding: 20px 12px;
    }
    
    .drop-cap {
        font-size: 2rem;
    }
    
    .lore-text p {
        font-size: 0.8rem;
    }
    
    .rules-header h2 {
        font-size: 1.2rem;
    }
    
    .rules-title {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .rule-item {
        gap: 8px;
    }
    
    .rule-num {
        font-size: 0.9rem;
        min-width: 22px;
    }
    
    .rule-content p {
        font-size: 0.75rem;
    }
    
    .rules-list p {
        font-size: 0.75rem;
    }
    
    .stamp-texture {
        font-size: 0.5rem;
        padding: 2px 6px;
    }
}

/* Add these to your CSS file */

/* Lore Container */
.lore-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Main Lore Card */
.lore-card {
    background: radial-gradient(circle at top left, #221010, #130808);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 60px 80px;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.9), inset 0 0 40px rgba(0,0,0,0.8);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.lore-card:hover {
    border-color: var(--gold-bright);
    box-shadow: 0 40px 100px rgba(0,0,0,1), 0 0 30px var(--gold-glow);
}

/* Ornamental Corners */
.corner-bracket {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid var(--gold-muted);
    opacity: 0.4;
    transition: 0.4s;
}
.top-left { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.top-right { top: 20px; right: 20px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 20px; left: 20px; border-right: none; border-top: none; }
.bottom-right { bottom: 20px; right: 20px; border-left: none; border-top: none; }

.lore-card:hover .corner-bracket {
    opacity: 1;
    width: 45px;
    height: 45px;
    border-color: var(--gold-bright);
}

/* Security Level Tag */
.security-level {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--gold-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
    text-align: center;
}

/* Drop Cap Styling */
.drop-cap {
    float: left;
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    line-height: 0.8;
    padding-right: 15px;
    padding-top: 8px;
    color: var(--gold-bright);
    text-shadow: 0 0 15px var(--gold-glow);
    font-weight: bold;
}

/* Main Paragraph Styling */
.lore-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #f4e8d1;
    margin-bottom: 30px;
    text-align: justify;
    opacity: 0.92;
    font-family: 'Lora', 'Georgia', serif;
}

/* Quote Styling - For spoken dialogue */
.lore-text p i, 
.lore-text p em {
    display: block;
    font-style: italic;
    color: #e8d9b0;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 25px 0;
    padding-left: 40px;
    border-left: 3px solid var(--gold-bright);
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.lore-text p i::before,
.lore-text p em::before {
    content: '"';
    font-size: 2.5rem;
    color: var(--gold-muted);
    position: absolute;
    left: 5px;
    top: -15px;
    opacity: 0.5;
    font-family: 'Playfair Display', serif;
}

.lore-text p i::after,
.lore-text p em::after {
    content: '"';
    font-size: 2.5rem;
    color: var(--gold-muted);
    position: absolute;
    bottom: -35px;
    right: 10px;
    opacity: 0.5;
    font-family: 'Playfair Display', serif;
}

.lore-text p i:hover,
.lore-text p em:hover {
    border-left-color: var(--gold-bright);
    padding-left: 45px;
    text-shadow: 0 0 8px var(--gold-glow);
    transition: all 0.3s ease;
}

/* Philosophy Pillars Styling */
.lore-text p strong {
    color: var(--gold-bright);
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    display: inline-block;
    margin: 0 2px;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

/* Numbered Pillars (1., 2., 3.) */
.lore-text p strong[class*="pillar"] {
    display: block;
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

/* Section Headers within text */
.lore-text p strong:first-child {
    margin-top: 0;
}

/* The Philosophy Title */
.lore-text p strong:contains("The Philosophy") {
    font-size: 1.5rem;
    text-align: center;
    display: block;
    margin: 40px 0 20px;
    letter-spacing: 3px;
}

/* Gold Divider for sections */
.lore-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    margin: 30px auto;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .lore-card {
        padding: 40px 30px;
    }
    
    .drop-cap {
        font-size: 3.5rem;
        padding-right: 10px;
    }
    
    .lore-text p {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }
    
    .lore-text p i,
    .lore-text p em {
        font-size: 1rem;
        padding-left: 25px;
        margin: 20px 0;
    }
    
    .lore-text p i::before,
    .lore-text p em::before {
        font-size: 2rem;
        left: 0;
        top: -10px;
    }
    
    .lore-text p i::after,
    .lore-text p em::after {
        font-size: 2rem;
        bottom: -25px;
        right: 5px;
    }
}

@media screen and (max-width: 480px) {
    .lore-card {
        padding: 30px 20px;
    }
    
    .drop-cap {
        font-size: 2.8rem;
        padding-right: 8px;
    }
    
    .lore-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .lore-text p i,
    .lore-text p em {
        font-size: 0.9rem;
        padding-left: 20px;
        margin: 15px 0;
    }
    
    .lore-text p i::before,
    .lore-text p em::before {
        font-size: 1.8rem;
    }
    
    .lore-text p i::after,
    .lore-text p em::after {
        font-size: 1.8rem;
        bottom: -20px;
    }
    
    .security-level {
        font-size: 0.55rem;
        letter-spacing: 3px;
    }
}

/* ================= DIALOGUE STYLING ================= */

/* Pure Speech Dialogue - Character speaking */
.dialogue-speech {
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #e8d9b0;
    margin: 30px 0;
    padding: 20px 30px;
    padding-left: 50px;
    position: relative;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    border-left: 3px solid var(--gold-bright);
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.1);
}

/* Decorative Quotation Marks */
.dialogue-speech::before {
    content: '"';
    font-size: 4rem;
    color: var(--gold-muted);
    position: absolute;
    left: 10px;
    top: -5px;
    opacity: 0.4;
    font-family: 'Playfair Display', serif;
    pointer-events: none;
}

.dialogue-speech::after {
    content: '"';
    font-size: 4rem;
    color: var(--gold-muted);
    position: absolute;
    bottom: -25px;
    right: 15px;
    opacity: 0.4;
    font-family: 'Playfair Display', serif;
    pointer-events: none;
}

/* Hover Effect for Speech */
.dialogue-speech:hover {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    border-left-width: 4px;
    padding-left: 55px;
    text-shadow: 0 0 8px var(--gold-glow);
    transition: all 0.3s ease;
}

/* Action/Description Text - Narrative */
.dialogue-action {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #c9bfa8;
    margin: 20px 0;
    padding: 8px 0 8px 20px;
    position: relative;
    font-style: normal;
    letter-spacing: 0.3px;
}

/* Subtle dash indicator for actions */
.dialogue-action::before {
    content: "—";
    color: var(--gold-muted);
    position: absolute;
    left: 0;
    top: 8px;
    opacity: 0.6;
    font-size: 1rem;
}

/* Dialogue with Action (mixed narrative and speech) */
.dialogue-with-action {
    font-family: 'Lora', 'Georgia', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #c9bfa8;
    margin: 20px 0;
    padding: 12px 0 12px 20px;
    position: relative;
    font-style: normal;
}

.dialogue-with-action::before {
    content: "—";
    color: var(--gold-muted);
    position: absolute;
    left: 0;
    top: 12px;
    opacity: 0.6;
}

/* The actual spoken words within mixed dialogue */
.spoken-words {
    font-style: italic;
    font-family: 'Playfair Display', serif;
    color: #e8d9b0;
    font-size: 1.05rem;
    display: inline-block;
    position: relative;
    padding: 0 5px;
    transition: all 0.2s ease;
}

.spoken-words::before {
    content: '"';
    font-size: 1.2rem;
    color: var(--gold-muted);
    position: relative;
    top: -2px;
    margin-right: 3px;
    opacity: 0.7;
}

.spoken-words::after {
    content: '"';
    font-size: 1.2rem;
    color: var(--gold-muted);
    position: relative;
    top: -2px;
    margin-left: 3px;
    opacity: 0.7;
}

/* Hover effect for spoken words */
.dialogue-with-action:hover .spoken-words {
    color: var(--gold-bright);
    text-shadow: 0 0 5px var(--gold-glow);
    transform: translateX(3px);
    transition: all 0.2s ease;
}

/* Special styling for Damani's more intense dialogue */
.dialogue-speech:last-of-type {
    border-left-color: #d4af37;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%);
}

/* Alternative: Character-specific styling (if you want to distinguish speakers) */
.dialogue-speech[data-speaker="damani"] {
    border-left-color: #c5a059;
}

.dialogue-speech[data-speaker="kofi"] {
    border-left-color: #8a6d3b;
}

/* Optional: Add subtle animation when dialogue appears */
@keyframes dialogueReveal {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dialogue-speech {
    animation: dialogueReveal 0.5s ease forwards;
}

.dialogue-action {
    animation: dialogueReveal 0.5s ease forwards 0.1s;
    opacity: 0;
    animation-fill-mode: forwards;
}

