#magick-tarot-root {
    text-align: center;
    margin: 40px 0;
}

.magick-stage-2 {
    margin-top: 20px;
}

.magick-card-wrapper {
    perspective: 1200px;
    margin: 20px auto;
}

.magick-card {
    width: 197px;
    height: 346px;
    margin: 0 auto;
}

.magick-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
}

.magick-card.flipped .magick-card-inner {
    transform: rotateY(180deg);
}

.magick-card-front,
.magick-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

/* FRONT je otočený dozadu */
.magick-card-front {
    transform: rotateY(180deg);
}

/* BACK je normálně viditelný */
.magick-card-back {
    transform: rotateY(0deg);
}



.magick-card-back img,
.magick-card-front img {
    width: 100%;
    height: auto;
}

.magick-card-front img.reversed {
    transform: rotate(180deg);
}

#magick-tarot-root .magick-pentagram {
    width: 180px;
    margin: 20px auto;
}

.magick-card-name {
    margin-top: 20px;
    font-size: 22px;
}

.magick-meaning {
    max-width: 600px;
    margin: 20px auto;
    text-align: justify;
    line-height: 1.6;
}

.clickable {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.clickable:hover {
    transform: scale(1.03);
}

.magick-pentagram-wrapper {
    padding: 60px 20px;
    background: radial-gradient(circle, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,0.95) 40%, 
        rgba(20,25,35,0.8) 70%, 
        rgba(20,25,35,0) 100%
    );
}

.magick-card-name {
    margin-top: 30px;
    font-size: 24px;
    letter-spacing: 1px;
}

.magick-meaning {
    max-width: 650px;
    margin: 30px auto;
    padding: 40px 35px;
    background: linear-gradient(
        180deg,
        rgba(10,10,15,0.95) 0%,
        rgba(20,25,35,0.95) 100%
    );
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    line-height: 1.7;
    text-align: justify;
    font-size: 16px;
}

.magick-card-name {
    color: #d4b46a;
}

.magick-final-instruction {
    margin-top: 25px;
    font-style: italic;
    opacity: 0.85;
}

.magick-instruction,
.magick-final-instruction,
.magick-after-text {
    margin-top: 25px;
    font-style: italic;
    opacity: 0.85;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.magick-after-reveal {
    margin-top: 30px;
}

