/* Card Styles */
#card-container {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 120px auto 0; /* Moved down another 20px */
    overflow: visible;
    flex-shrink: 0; /* Prevent card from shrinking */
}

.card {
    position: relative; /* Changed from absolute to keep in document flow */
    width: 100%;
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: var(--spacing-xl);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: grab;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border: 1px solid var(--border-color);
    transform: translateX(0) rotate(0deg) scale(1);
    z-index: 10;
    user-select: none;
    -webkit-user-select: none;
}

.card.dragging {
    cursor: grabbing;
    transition: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card.animating-out {
    transition: none;
}

.card.animating-in {
    animation: cardEnterBottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.card.card-prep {
    transform: translateY(50px) scale(0.95);
    opacity: 0;
    transition: none !important;
}

.card.card-entering {
    animation: cardEnterBottom 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transition: none !important;
}

/* Tutorial card special animation */
.card.tutorial-hint {
    animation: tutorialSwipeHint 2s ease-in-out 0.3s;
}

.choice-button.tutorial-glow-left {
    animation: tutorialButtonGlowLeft 2s ease-in-out 0.3s;
}

.choice-button.tutorial-glow-right {
    animation: tutorialButtonGlowRight 2s ease-in-out 0.3s;
}

/* Card Content */
.card-header {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    text-align: center;
}

.card-description {
    font-size: 17px;
    line-height: 1.4;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    text-align: left;
}

/* Choice Buttons */
.choice-buttons {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-shrink: 0;
    margin-top: 40px; /* Reduced to 40px below card */
}

.choice-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.choice-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-normal);
}

.choice-button svg {
    width: 28px;
    height: 28px;
    color: #6b7280;
    transition: color var(--transition-fast);
    position: relative;
    z-index: 1;
}

/* Hover States */
.choice-button.choice-left:hover {
    border-color: var(--color-red);
}

.choice-button.choice-left:hover svg {
    color: var(--color-red);
}

.choice-button.choice-right:hover {
    border-color: var(--color-green);
}

.choice-button.choice-right:hover svg {
    color: var(--color-green);
}

/* Progressive Glow States */
.choice-button.glow-left {
    border-color: #dc2626;
    box-shadow: 0 0 calc(20px * var(--glow-intensity, 0)) rgba(220, 38, 38, calc(0.6 * var(--glow-intensity, 0)));
}

.choice-button.glow-left svg {
    color: #dc2626;
}

.choice-button.glow-right {
    border-color: #16a34a;
    box-shadow: 0 0 calc(20px * var(--glow-intensity, 0)) rgba(22, 163, 74, calc(0.6 * var(--glow-intensity, 0)));
}

.choice-button.glow-right svg {
    color: #16a34a;
}

/* Threshold Reached - Full Fill */
.choice-button.threshold-reached {
    transition: all 0.15s ease;
}

.choice-button.glow-left.threshold-reached {
    background-color: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.8);
}

.choice-button.glow-left.threshold-reached svg {
    color: white;
}

.choice-button.glow-right.threshold-reached {
    background-color: #16a34a;
    border-color: #16a34a;
    box-shadow: 0 0 30px rgba(22, 163, 74, 0.8);
}

.choice-button.glow-right.threshold-reached svg {
    color: white;
}

/* Pressed State */
.choice-button:active {
    transform: scale(0.95);
}

/* Card Tilt Effects - removed as they interfere with drag transform */