.main-view {
    margin-top: 70px;
}

.challenge-header {
    text-align: center;
    margin: 20px 0 0 0;
}

.challenge-header h1 {
    font-size: 2rem;
    color: #292929;
    margin: 0 0 10px 0;
}

.challenge-header p {
    color: #666;
    margin: 0 0 20px 0;
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.card {
    width: 200px;
    height: 280px;
    perspective: 1000px;
    cursor: pointer;
}

.card.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

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

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

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-back {
    background: white;
    transform: rotateY(180deg);
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    box-sizing: border-box;
}

.card-back .result-icon {
    font-size: 5rem;
}

.card-back .result-text {
    font-size: 1.5rem;
    color: #292929;
    font-weight: 700;
}

.card-back .result-points {
    font-size: 2rem;
    background: linear-gradient(90deg, #1488a8, #14a89e);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.result-message {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 30px 0;
    min-height: 40px;
    color: #292929;
}

.point-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    font-weight: 700;
    color: #1488a8;
    z-index: 10000;
    animation: pointPop 1.5s ease-out forwards;
    pointer-events: none;
}

@keyframes pointPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }

    70% {
        opacity: 1;
        transform: translate(-50%, -80%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -120%) scale(0.8);
    }
}

.card:hover:not(.disabled) {
    transform: translateY(-10px);
    transition: transform 0.3s ease;
}

.login-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.login-dialog {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.login-dialog h2 {
    margin: 0 0 15px 0;
    color: #292929;
    font-size: 1.8rem;
}

.login-dialog p {
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.dialog-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.primary-btn,
.secondary-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.primary-btn {
    background: linear-gradient(90deg, #1488a8, #14a89e);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 136, 168, 0.4);
}

.secondary-btn {
    background-color: #f0f0f0;
    color: #666;
}

.secondary-btn:hover {
    background-color: #e0e0e0;
}