/* Main container - WHITE BACKGROUND */
#rinktis-korta {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding: 40px 20px;
    background: #ffffff;
}

/* HEADER - Dark notice box, CENTERED */
.selection-header {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 60px;
    display: flex;
    justify-content: center;
}

.glass-container {
    background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
}

.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2, #ffd700);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.header-text {
    flex: 1;
}

.header-text h2 {
    color: #ffd700;
    margin: 0 0 15px 0;
    font-size: 2.3rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.header-text p {
    color: #e8e8e8;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.7;
}

/* COUNTER BADGE */
.modern-counter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 
        0 10px 35px rgba(102, 126, 234, 0.5);
    border: 3px solid rgba(255, 215, 0, 0.7);
    min-width: 180px;
}

.counter-label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

.counter-value {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* DECK AREA - Cards spread out */
.deck-fan-wrapper {
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    margin: 0 auto;
}

.deck-fan {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
}

/* CARDS */
.tarot-card {
    position: absolute;
    width: 150px;
    height: 265px;
    background: url('../img/tarot-card-back.png') no-repeat center;
    background-size: cover;
    border-radius: 14px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    filter: brightness(0.9);
    border: 3px solid rgba(102, 126, 234, 0.3);
    transform-origin: bottom center;
    will-change: filter;
    transition: filter 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, z-index 0s;
}

/* Hover effect - only changes visual properties, NOT transform */
.tarot-card.card-hover {
    filter: brightness(1.2) drop-shadow(0 20px 30px rgba(102, 126, 234, 0.6));
    box-shadow: 
        0 20px 50px rgba(102, 126, 234, 0.5),
        0 0 40px rgba(102, 126, 234, 0.4);
    border-color: #667eea;
    z-index: 999 !important;
}

/* SELECTED CARDS - Completely hidden, no shadow left */
.tarot-card.selected {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: scale(0) !important;
    pointer-events: none !important;
    transition: all 0.4s ease !important;
}

/* SLOTS CONTAINER - Where selected cards go */
.slots-container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 24px;
    box-shadow: 
        inset 0 4px 15px rgba(0, 0, 0, 0.1),
        0 8px 25px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(102, 126, 234, 0.3);
}

.card-slot {
    aspect-ratio: 150 / 265;
    border: 3px dashed rgba(102, 126, 234, 0.4);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    transition: all 0.3s ease;
}

.card-slot::before {
    content: attr(data-slot);
    font-size: 2rem;
    color: rgba(102, 126, 234, 0.3);
    font-weight: 900;
}

/* Card in slot */
.slot-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/tarot-card-back.png') no-repeat center;
    background-size: cover;
    border-radius: 12px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4);
    border: 3px solid #ffd700;
    cursor: pointer;
    animation: dropIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: transform 0.3s ease;
}

.slot-card:hover {
    transform: scale(1.05);
}

@keyframes dropIn {
    from {
        transform: translateY(-200px) rotate(20deg) scale(0.5);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
}

/* VISIBLE X ICON on selected cards in slots */
.slot-card::after {
    content: "✕";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: #ff3366;
    font-weight: 900;
    text-shadow: 
        0 0 20px rgba(255, 51, 102, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.slot-card:hover::after {
    opacity: 1;
}

/* Selection number badge */
.slot-card::before {
    content: attr(data-number);
    position: absolute;
    top: -15px;
    right: -15px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-size: 1.6rem;
    font-weight: 900;
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.8),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
    border: 4px solid #ffffff;
    z-index: 10;
}

/* COMPLETION NOTICE - CENTERED */
#pretekstas {
    width: 100%;
    max-width: 800px;
    margin: 60px auto 40px;
    display: flex;
    justify-content: center;
}

#pretekstas .glass-container {
    background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
    padding: 50px;
    text-align: center;
}

#pretekstas h2 {
    color: #ffd700;
    margin: 0 0 20px 0;
    font-size: 2.5rem;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

#pretekstas p {
    color: #e8e8e8;
    margin: 0 0 30px 0;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* RESPONSIVE */
@media (max-width: 1400px) {
    .deck-fan {
        height: 400px;
    }
    .tarot-card {
        width: 130px;
        height: 229px;
    }
    .slots-container {
        gap: 12px;
        padding: 20px;
    }
}

@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .slots-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 18px;
    }
    .deck-fan {
        height: 380px;
    }
    .tarot-card {
        width: 120px;
        height: 212px;
    }
    .card-slot::before {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .glass-container {
        padding: 25px;
    }
    .header-text h2 {
        font-size: 1.8rem;
    }
    .slots-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 15px;
    }
    .deck-fan {
        height: 350px;
    }
    .tarot-card {
        width: 100px;
        height: 176px;
    }
    .card-slot::before {
        font-size: 1.5rem;
    }
    .slot-card::after {
        font-size: 3rem;
    }
    .slot-card::before {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
        top: -10px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .deck-fan {
        height: 300px;
    }
    .tarot-card {
        width: 80px;
        height: 141px;
    }
    .slots-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }
    .card-slot::before {
        font-size: 1.2rem;
    }
    .slot-card::after {
        font-size: 2.5rem;
    }
    .slot-card::before {
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
        top: -8px;
        right: -8px;
        border: 3px solid #ffffff;
    }
}

#containeris {
    display: none !important;
}
