.wod-panel-scope .npc-panel,
.wod-panel-scope .npc-section {
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    height: auto;
    overflow: visible;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .wod-panel-scope .npc-panel,
    .wod-panel-scope .npc-section {
        padding: 0 16px;
    }
}

.wod-panel-scope .section {
    margin-bottom: 5px;
}

.wod-panel-scope .columns {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
    align-items: stretch;
}

.wod-panel-scope .column {
    min-width: 0;
    flex: 1 1 240px;
}

.wod-panel-scope h1.centered,
.wod-panel-scope h2.centered,
.wod-panel-scope h3.centered {
    text-align: center;
    color: #d4af37;
}

.wod-panel-scope .section h3.centered {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d4af37;
}

.wod-panel-scope .section label {
    font-weight: bold;
    margin-right: 10px;
    text-align: right;
    display: block;
    margin-bottom: 5px;
}

.wod-panel-scope .attribute,
.wod-panel-scope .ability,
.wod-panel-scope .lore,
.wod-panel-scope .virtue,
.wod-panel-scope .ftw {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.wod-panel-scope .ftw label {
    text-align: center;
    margin-bottom: 5px;
}

.wod-panel-scope .advantages {
    display: flex;
    flex-direction: column;
}

.wod-panel-scope .advantage {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.wod-panel-scope .section .attribute,
.wod-panel-scope .section .ability,
.wod-panel-scope .section .advantage,
.wod-panel-scope .section .lore,
.wod-panel-scope .section .ftw {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 0;
}

.wod-panel-scope .section .attribute:last-child,
.wod-panel-scope .section .ability:last-child,
.wod-panel-scope .section .advantage:last-child,
.wod-panel-scope .section .lore:last-child,
.wod-panel-scope .section .ftw:last-child {
    border-bottom: none;
}

.wod-panel-scope .pips {
    display: flex;
    justify-content: flex-start;
}

.wod-panel-scope #lore_section,
.wod-panel-scope #otherloresection {
    display: block;
    width: 100%;
}

.wod-panel-scope[data-azwiki-character-panel="backgrounds"] .columns,
.wod-panel-scope[data-azwiki-character-panel="lores"] .columns,
.wod-panel-scope[data-azwiki-character-panel="meritsflaws"] .columns {
    justify-content: center;
}

.wod-panel-scope[data-azwiki-character-panel="backgrounds"] .section label,
.wod-panel-scope[data-azwiki-character-panel="lores"] .section label {
    text-align: center;
    margin-right: 0;
}

.wod-panel-scope[data-azwiki-character-panel="backgrounds"] .ability,
.wod-panel-scope[data-azwiki-character-panel="lores"] .lore {
    justify-content: center;
}

.wod-panel-scope[data-azwiki-character-panel="meritsflaws"] .merit-flaw-list {
    text-align: center;
}

.wod-panel-scope[data-azwiki-character-panel="meritsflaws"] .merit-flaw-list li {
    justify-content: center;
}

.wod-panel-scope .pip {
    width: 20px;
    height: 20px;
    margin: 0 2px;
    border: 1px solid #ccc;
    border-radius: 50%;
    background-color: #333;
    cursor: pointer;
}

.wod-panel-scope .pip.checked {
    background-color: #cc0000;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
    }
    50% {
        box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff;
    }
    100% {
        box-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
    }
}

.wod-panel-scope .pip.checked.freebie {
    background-color: #0000cc;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlowPurple {
    0% {
        box-shadow: 0 0 10px #e0b3ff, 0 0 20px #e0b3ff, 0 0 30px #e0b3ff, 0 0 40px #e0b3ff;
    }
    50% {
        box-shadow: 0 0 20px #d580ff, 0 0 30px #d580ff, 0 0 40px #d580ff, 0 0 50px #d580ff;
    }
    100% {
        box-shadow: 0 0 10px #e0b3ff, 0 0 20px #e0b3ff, 0 0 30px #e0b3ff, 0 0 40px #e0b3ff;
    }
}

.wod-panel-scope .pip.checked.xp {
    background-color: #7700cc;
    animation: pulseGlowPurple 2s infinite;
}

@keyframes pulseGlowRed {
    0% {
        box-shadow: 0 0 10px #ff8080, 0 0 20px #ff8080, 0 0 30px #ff8080, 0 0 40px #ff8080;
    }
    50% {
        box-shadow: 0 0 20px #ff3333, 0 0 30px #ff3333, 0 0 40px #ff3333, 0 0 50px #ff3333;
    }
    100% {
        box-shadow: 0 0 10px #ff8080, 0 0 20px #ff8080, 0 0 30px #ff8080, 0 0 40px #ff8080;
    }
}

.wod-panel-scope .pip.checked.admin {
    background-color: #dd2200;
    animation: pulseGlowRed 2s infinite;
}

.wod-panel-scope .arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    right: 0;
    clear: both;
}

.wod-panel-scope .up-arrow,
.wod-panel-scope .down-arrow {
    background: none;
    border: none;
    color: #eee;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: inline-block;
}

.wod-panel-scope .up-arrow:hover,
.wod-panel-scope .down-arrow:hover {
    color: #cc0000;
}

.wod-panel-scope .primarylore {
    box-shadow: 0 0 5px cyan, 0 0 25px cyan;
    transition: 0.4s ease-in-out;
    position: relative;
    background: #000;
    color: white;
    border: none;
    padding: 12px;
    font-family: "Rubik", sans-serif;
}

.wod-panel-scope .primaryloreDisplay {
    text-shadow: 0 0 5px cyan, 0 0 10px cyan, 0 0 15px cyan, 0 0 20px cyan;
    transition: 0.4s ease-in-out;
    position: relative;
    color: white;
    border: none;
    padding: 12px;
    font-family: "Rubik", sans-serif;
}

.wod-panel-scope .question-icon {
    margin-left: 2px;
    color: #d4af37;
    cursor: pointer;
    font-size: 0.75em;
}

.wod-panel-scope .question-icon:hover {
    color: #f0c55a;
}

.wod-panel-scope .merit-flaw-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.wod-panel-scope .merit-flaw-list li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wod-panel-scope .merit-flaw-list li:last-child {
    border-bottom: none;
}

.tooltip_custom {
    position: absolute;
    background-color: #222;
    color: #eee;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    max-width: 300px;
    z-index: 1000;
}

.close-tooltip {
    background-color: #cc0000;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    float: right;
}

.close-tooltip:hover {
    background-color: #dd0000;
}

@media (max-width: 900px) {
    .wod-panel-scope .columns {
        justify-content: flex-start;
    }

    .wod-panel-scope .column {
        flex: 1 1 100%;
    }

    .wod-panel-scope .attribute,
    .wod-panel-scope .ability,
    .wod-panel-scope .lore,
    .wod-panel-scope .virtue,
    .wod-panel-scope .ftw,
    .wod-panel-scope .advantage {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 6px 10px;
    }

    .wod-panel-scope .section label {
        text-align: left;
        margin-right: 0;
    }

    .wod-panel-scope .pips {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 4px;
    }

    .wod-panel-scope .merit-flaw-list li {
        flex-wrap: wrap;
    }
}

@media (max-width: 540px) {
    .wod-panel-scope .pip {
        width: 16px;
        height: 16px;
        margin: 1px;
    }

    .wod-panel-scope .question-icon {
        font-size: 0.7em;
    }
}
