/* =============================================
   LORE / RULES INTRO SCREEN
   ============================================= */

.lore-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #0a0a14 0%, #16213e 50%, #1a1a2e 100%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    overflow: hidden;
}

.lore-screen.active {
    display: flex;
}

.lore-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(0, 255, 0, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(138, 43, 226, 0.08) 0%, transparent 40%);
    animation: loreGlow 12s ease-in-out infinite;
    will-change: opacity;
}

@keyframes loreGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.lore-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    width: 90%;
    padding: 40px 30px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(45, 45, 68, 0.9) 100%);
    border: 4px solid #0f0f1e;
    box-shadow: 
        0 0 0 2px #8a2be2,
        0 0 0 6px rgba(0, 255, 255, 0.5),
        0 0 40px rgba(138, 43, 226, 0.7);
}

/* Flavor / quote section */
.lore-flavor {
    text-align: center;
    margin-bottom: 10px;
}

.lore-quote {
    font-size: 10px;
    color: #00ff00;
    line-height: 1.8;
    text-shadow: 1px 1px 0px #006600;
    letter-spacing: 0.5px;
    font-family: 'Press Start 2P', cursive;
}

.lore-attribution {
    font-size: 8px;
    color: #00ffff;
    margin-top: 12px;
    text-shadow: 1px 1px 0px #006699;
    letter-spacing: 0.5px;
    font-family: 'Press Start 2P', cursive;
}

/* Section divider */
.lore-content .section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #8a2be2, transparent);
    margin: 25px 0;
}

/* Rules list */
.lore-rules {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lore-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.lore-rule-icon {
    font-size: 11px;
    color: #00ffff;
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.6);
}

.lore-rule-text {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    font-family: 'Press Start 2P', cursive;
    line-height: 1.6;
}

.lore-rule-highlight {
    font-size: 10px;
    color: #ffff00;
    text-shadow: 1px 1px 0px #999900, 0 0 8px rgba(255, 255, 0, 0.5);
    font-family: 'Press Start 2P', cursive;
}

.lore-rule-gates {
    font-size: 13px;
    color: #ff00ff;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.6);
    letter-spacing: 4px;
}

/* Continue button */
.lore-continue-btn {
    display: block;
    margin: 0 auto;
    background: linear-gradient(180deg, #8a2be2 0%, #4b0082 100%);
    border: 4px solid #00ffff;
    padding: 16px 32px;
    font-size: 12px;
    color: #ffff00;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    letter-spacing: 1px;
    box-shadow: 
        0 4px 0 #0f0f1e,
        0 0 15px rgba(0, 255, 255, 0.5);
    transition: all 0.2s;
    animation: loreBtnPulse 2.5s ease-in-out infinite;
}

@keyframes loreBtnPulse {
    0%, 100% { 
        box-shadow: 
            0 4px 0 #0f0f1e,
            0 0 15px rgba(0, 255, 255, 0.5);
    }
    50% { 
        box-shadow: 
            0 4px 0 #0f0f1e,
            0 0 25px rgba(0, 255, 255, 0.8),
            0 0 40px rgba(138, 43, 226, 0.4);
    }
}

.lore-continue-btn:hover {
    background: linear-gradient(180deg, #9d3bff 0%, #5b0099 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 0 #0f0f1e,
        0 0 25px rgba(0, 255, 255, 0.8);
    animation: none;
}

.lore-continue-btn:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 0 #0f0f1e,
        0 0 10px rgba(0, 255, 255, 0.5);
}

.lore-continue-btn span {
    text-shadow: 
        2px 2px 0px #999900,
        0 0 10px rgba(255, 255, 0, 0.5);
}

/* =============================================
   LORE QUICK ACTION BUTTONS
   ============================================= */

.lore-quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.lore-action-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #d946ef 0%, #a21caf 100%);
    border: 2px solid #00ffff;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    flex: 1;
    min-width: 120px;
    box-shadow: 
        0 3px 0 rgba(0, 0, 0, 0.4),
        0 0 12px rgba(217, 70, 239, 0.5);
}

.lore-action-btn:hover {
    background: linear-gradient(180deg, #e879f9 0%, #c026d3 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 5px 0 rgba(0, 0, 0, 0.4),
        0 0 18px rgba(217, 70, 239, 0.7);
}

.lore-action-btn:active {
    transform: translateY(2px);
    box-shadow: 
        0 1px 0 rgba(0, 0, 0, 0.4),
        0 0 8px rgba(217, 70, 239, 0.5);
}
