/* HTML CARD BACK STYLES */
.card-content-wrapper {
    width: 100%;
    height: 100%;
    padding: 20px 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.card-title {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 8px;
    width: 100%;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
}

/* GRAND STRATEGY */
.card-grand-strategy {
    background: linear-gradient(135deg, #1a0505 0%, #080202 100%);
}

.strategy-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
}

.strategy-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: background 0.3s;
}

.strategy-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ARCANE PHYSICS */
.card-arcane {
    background: linear-gradient(135deg, #051a2e 0%, #02080f 100%);
    font-family: 'Lato', sans-serif;
}

.physics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
}

.eq {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.15);
    padding: 8px;
    font-size: 0.8rem;
    color: #0ff;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: monospace;
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.5);
}

.physics-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    color: #88ccff;
}

.atom-icon {
    font-size: 1.8rem;
    animation: spin-atom 10s linear infinite;
    margin-bottom: 5px;
}

@keyframes spin-atom {
    100% {
        transform: rotate(360deg);
    }
}

/* LIVING WORLD */
.card-living {
    background: linear-gradient(135deg, #1c051c 0%, #0a020a 100%);
    /* Deep Purple Gradient */
}

.living-hierarchy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.circle {
    width: auto;
    padding: 5px 0;
    border: none;
    background: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: #f0ead6;
    /* Eggshell / Ecru */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.circle.planetary,
.circle.societal,
.circle.biological {
    color: #f0ead6;
}

.connector {
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, 0.5);
    /* Lighter connector */
}

.living-text {
    font-size: 0.65rem;
    /* Smaller font */
    font-style: italic;
    color: #fff;
    margin-top: 10px;
    text-shadow: 0 0 4px #000;
}

/* COMMUNITY */
.card-community {
    background: linear-gradient(135deg, #1a052e 0%, #08020f 100%);
}

.community-list {
    list-style: none;
    padding: 0;
    width: 100%;
    text-align: left;
    margin-bottom: auto;
    margin-top: 10px;
}

.community-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e0e0e0;
}

.community-slogan {
    font-size: 0.65rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding-top: 15px;
    width: 100%;
}

/* MYSTICISM */
.card-mysticism {
    background: linear-gradient(135deg, #200520 0%, #0c020c 100%);
}

.mystic-text-block {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    text-align: center;
    gap: 15px;
}

.concept-group h4 {
    color: var(--primary-color);
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin: 0 0 5px 0;
    font-weight: bold;
    font-family: 'Cinzel', serif;
}

.concept-group p {
    color: #d8bfd8;
    font-size: 0.7rem;
    margin: 0;
    font-family: 'Lato', sans-serif;
    line-height: 1.4;
}

.divider-small {
    width: 40px;
    height: 1px;
    background: rgba(255, 215, 0, 0.3);
    margin: 0 auto;
}