.page {
    padding: 20px;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    color: #efc7b8;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
}

.title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(239, 199, 184, 0.3);
    margin-bottom: 20px;
    text-align: center;
    color: #efc7b8;
}

.cardContainer {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 500px;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 500px) {
    .cardContainer {
        height: 400px;
    }
}

.card {
    width: 100%;
    height: 100%;
    background: rgba(42, 42, 42, 0.8);
    border-radius: 30px;
    border: 2px solid rgba(239, 199, 184, 0.2);
    backdrop-filter: blur(15px);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s;
    cursor: pointer;
    position: relative;
}

.card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: rgba(239, 199, 184, 0.5);
}

.cardIcon {
    font-size: 4rem;
    margin-bottom: 30px;
    color: #efc7b8;
    opacity: 0.8;
}

.phrase {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 40px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nextBtn {
    background: #efc7b8;
    color: #1a1a1a;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.nextBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(239, 199, 184, 0.3);
}

.nextBtn:active {
    transform: scale(0.95);
}

.backLink {
    margin-top: 30px;
    color: rgba(239, 199, 184, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.backLink:hover {
    color: #efc7b8;
}

.instructions {
    margin-top: 40px;
    max-width: 500px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: rgba(239, 199, 184, 0.6);
    line-height: 1.6;
}

.categorySelector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.catBtn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(239, 199, 184, 0.2);
    color: rgba(239, 199, 184, 0.6);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.catBtn:hover {
    background: rgba(239, 199, 184, 0.1);
}

.catBtn.active {
    background: #efc7b8;
    color: #1a1a1a;
    border-color: #efc7b8;
    box-shadow: 0 0 15px rgba(239, 199, 184, 0.3);
}

@keyframes slideOut {
    0% {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }

    100% {
        transform: translateX(100%) rotate(20deg);
        opacity: 0;
    }
}

.slidingOut {
    animation: slideOut 0.5s forwards;
}