
/* Equation Shooter Game Card Enhanced Styles */
.equation-shooter-game {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid #4a9eff;
    box-shadow: 
        0 8px 32px rgba(74, 158, 255, 0.2),
        0 0 20px rgba(74, 158, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.equation-shooter-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(74, 158, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.equation-shooter-game:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(74, 158, 255, 0.3),
        0 0 30px rgba(74, 158, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: #66b3ff;
}

.equation-shooter-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    box-shadow: 
        0 4px 20px rgba(255, 107, 107, 0.4),
        0 0 10px rgba(255, 107, 107, 0.2);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 
            0 4px 20px rgba(255, 107, 107, 0.4),
            0 0 10px rgba(255, 107, 107, 0.2);
    }
    100% {
        box-shadow: 
            0 6px 25px rgba(255, 107, 107, 0.6),
            0 0 15px rgba(255, 107, 107, 0.4);
    }
}

.equation-shooter-game .game-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.equation-shooter-game .game-title-section h3 {
    background: linear-gradient(135deg, #4a9eff 0%, #66b3ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.equation-shooter-game .progress-fill {
    background: linear-gradient(90deg, #ff6b6b 0%, #ff8e53 50%, #4a9eff 100%);
    position: relative;
    overflow: hidden;
}

.equation-shooter-game .progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.equation-shooter-game .game-skills {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.equation-shooter-game .skill-tag {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15) 0%, rgba(255, 107, 107, 0.15) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    color: #66b3ff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.equation-shooter-game .skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.equation-shooter-game .skill-tag:hover::before {
    left: 100%;
}

.equation-shooter-game .skill-tag:hover {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.25) 0%, rgba(255, 107, 107, 0.25) 100%);
    border-color: #4a9eff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

.equation-shooter-game .skill-tag:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 142, 83, 0.2) 100%);
    color: #ff6b6b;
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.equation-shooter-game .skill-tag:nth-child(1):hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3) 0%, rgba(255, 142, 83, 0.3) 100%);
    border-color: #ff6b6b;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.equation-shooter-game .skill-tag:nth-child(2) {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(139, 195, 74, 0.2) 100%);
    color: #4caf50;
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.equation-shooter-game .skill-tag:nth-child(2):hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3) 0%, rgba(139, 195, 74, 0.3) 100%);
    border-color: #4caf50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.equation-shooter-game .skill-tag:nth-child(3) {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.2) 0%, rgba(233, 30, 99, 0.2) 100%);
    color: #9c27b0;
    border: 2px solid rgba(156, 39, 176, 0.3);
}

.equation-shooter-game .skill-tag:nth-child(3):hover {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.3) 0%, rgba(233, 30, 99, 0.3) 100%);
    border-color: #9c27b0;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
}

.equation-shooter-game .game-progress-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    border: 1px solid rgba(74, 158, 255, 0.2);
    backdrop-filter: blur(10px);
}

.equation-shooter-game .progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.equation-shooter-game .progress-label {
    color: #66b3ff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.equation-shooter-game .progress-percentage {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.equation-shooter-game .progress-container {
    position: relative;
}

.equation-shooter-game .progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.equation-shooter-game .progress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 0.85rem;
}

.equation-shooter-game .course-duration {
    color: #66b3ff;
    font-weight: 600;
}

.equation-shooter-game .game-meta-info {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    border: 1px solid rgba(74, 158, 255, 0.15);
    backdrop-filter: blur(10px);
}

.equation-shooter-game .meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.equation-shooter-game .meta-row:last-child {
    margin-bottom: 0;
}

.equation-shooter-game .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(74, 158, 255, 0.2);
    transition: all 0.3s ease;
}

.equation-shooter-game .meta-item:hover {
    background: rgba(74, 158, 255, 0.15);
    border-color: rgba(74, 158, 255, 0.3);
    transform: translateY(-1px);
}

.equation-shooter-game .meta-icon {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    font-size: 1.1rem;
}

.equation-shooter-game .meta-text {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.85rem;
}

.equation-shooter-game .meta-item:nth-child(1) {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
}

.equation-shooter-game .meta-item:nth-child(1):hover {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.3);
}

.equation-shooter-game .meta-item:nth-child(2) {
    background: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.2);
}

.equation-shooter-game .meta-item:nth-child(2):hover {
    background: rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.3);
}

.equation-shooter-game .btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border: none;
    box-shadow: 
        0 4px 15px rgba(255, 107, 107, 0.4),
        0 0 10px rgba(255, 107, 107, 0.2);
    transition: all 0.3s ease;
}

.equation-shooter-game .btn-primary:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff7043 100%);
    box-shadow: 
        0 6px 20px rgba(255, 107, 107, 0.6),
        0 0 15px rgba(255, 107, 107, 0.4);
    transform: translateY(-2px);
}

.equation-shooter-game .btn-outline {
    border: 2px solid #4a9eff;
    color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.equation-shooter-game .btn-outline:hover {
    background: rgba(74, 158, 255, 0.2);
    border-color: #66b3ff;
    color: #66b3ff;
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.3);
}

.equation-shooter-game .badge-text {
    background: linear-gradient(135deg, #00c851 0%, #007e33 100%);
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(0, 200, 81, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-primary);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.modal-body {
    padding: var(--spacing-lg);
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-input {
    padding: var(--spacing-md);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(35, 134, 54, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:invalid {
    border-color: var(--accent-danger);
}

.form-input:valid {
    border-color: var(--accent-primary);
}

.auth-switch {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: var(--spacing-lg);
}

.auth-switch a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error States */
.success {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.error {
    color: var(--accent-danger);
    border-color: var(--accent-danger);
}

.error-message {
    color: var(--accent-danger);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

.success-message {
    color: var(--accent-primary);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--bg-overlay);
    color: var(--text-primary);
    text-align: center;
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity var(--transition-fast);
    font-size: 0.875rem;
    border: 1px solid var(--border-primary);
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--bg-overlay) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: var(--accent-primary);
    color: white;
}

.badge-secondary {
    background-color: var(--accent-secondary);
    color: white;
}

.badge-warning {
    background-color: var(--accent-warning);
    color: white;
}

.badge-danger {
    background-color: var(--accent-danger);
    color: white;
}

/* Card Hover Effects */
.card-hover {
    transition: all var(--transition-normal);
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Progress Ring */
.progress-ring {
    position: relative;
    display: inline-block;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring circle {
    fill: none;
    stroke-width: 8;
}

.progress-ring .background {
    stroke: var(--bg-tertiary);
}

.progress-ring .progress {
    stroke: var(--accent-primary);
    stroke-linecap: round;
    transition: stroke-dasharray var(--transition-normal);
}

.progress-ring .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Notification */
.notification {
    position: fixed;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.success {
    border-left: 4px solid var(--accent-primary);
}

.notification.error {
    border-left: 4px solid var(--accent-danger);
}

.notification.warning {
    border-left: 4px solid var(--accent-warning);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
}

.notification-close:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Responsive Components */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: var(--spacing-md);
    }
    
    .notification {
        right: var(--spacing-md);
        left: var(--spacing-md);
        max-width: none;
    }
    
    .tooltip .tooltiptext {
        width: 150px;
        margin-left: -75px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
.btn:focus,
.form-input:focus,
.modal-close:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-primary: #ffffff;
        --text-secondary: #ffffff;
        --bg-secondary: #000000;
    }
}

/* Stage 7: CSS Animation Playground Styles */
.animation-playground {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.animation-demo {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.demo-container {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: var(--spacing-md);
}

.animated-element {
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.animated-element:hover {
    transform: scale(1.1);
}

.animated-element.playing {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.animation-controls {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.property-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.property-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.property-group select,
.property-group input[type="range"] {
    padding: var(--spacing-sm);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.property-group input[type="range"] {
    padding: 0;
    height: 6px;
    background: var(--border-primary);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.property-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.property-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.property-group span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: var(--spacing-xs);
}

/* Responsive Design for Animation Playground */
@media (max-width: 768px) {
    .animation-playground {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .demo-container {
        height: 150px;
    }
    
    .animated-element {
        font-size: 2rem;
    }
}

/* Stage 8: Tag Matcher Styles */
.tag-matcher-game {
    margin-top: var(--spacing-lg);
}

.game-header {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.game-stats {
    display: flex;
    justify-content: space-around;
    gap: var(--spacing-md);
}

.game-stats .stat {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    min-width: 120px;
}

.tag-game-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.opening-tags-area,
.closing-tags-area {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.opening-tags-area h4,
.closing-tags-area h4 {
    margin: 0 0 var(--spacing-md) 0;
    color: var(--text-primary);
    text-align: center;
}

.tags-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    min-height: 200px;
}

.tag-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--text-primary);
    cursor: grab;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.tag-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tag-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    cursor: grabbing;
}

.tag-card.drag-over {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: white;
    transform: scale(1.05);
}

.tag-card.matched {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
    opacity: 0.7;
}

.opening-tag {
    border-color: var(--info-color);
    color: var(--info-color);
}

.closing-tag {
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.hidden-picture {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.hidden-picture h4 {
    margin: 0 0 var(--spacing-md) 0;
    color: var(--text-primary);
    text-align: center;
}

.picture-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    min-height: 150px;
}

.picture-piece {
    background: var(--bg-primary);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0.3;
    transition: all 0.5s ease;
    min-height: 80px;
}

.picture-piece.revealed {
    opacity: 1;
    border-color: var(--success-color);
    background: var(--success-color);
    color: white;
    transform: scale(1.1);
    animation: revealPiece 0.6s ease-out;
}

@keyframes revealPiece {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Responsive Design for Tag Matcher */
@media (max-width: 768px) {
    .tag-game-area {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .tags-container {
        grid-template-columns: 1fr;
    }
    
    .picture-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .game-stats .stat {
        min-width: auto;
    }
}
