.hz-sentence, .r-sentence {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa !important;
    border-radius: 10px;
    border: 1px solid #e1e5e9 !important;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.hz-box {
    width: 50px;
    height: 50px;
    border: 2px solid #2196F3 !important;
    border-radius: 4px;
    background: white !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.r-box {
    width: 70px;
    height: 70px;
    border: 2px solid #2196F3 !important;
    border-radius: 6px;
    background: white !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.hz-box canvas, .r-box canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Mobile chỉnh sửa */
@media (max-width: 768px) {
    .hz-sentence, .r-sentence {
        gap: 6px;
        padding: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hz-box {
        width: 55px;
        height: 55px;
    }
    
    .r-box {
        width: 65px;
        height: 65px;
    }
    
    .hz-box canvas, .r-box canvas {
        transform: scale(0.75);
    }
}

@media (max-width: 480px) {
    .hz-box {
        width: 52px;
        height: 52px;
    }
    
    .r-box {
        width: 60px;
        height: 60px;
    }
    
    .hz-box canvas, .r-box canvas {
        transform: scale(0.7);
    }
}

/* Desktop giữ nguyên */
@media (min-width: 769px) {
    .hz-box canvas, .r-box canvas {
        transform: none;
    }
}

.hz-sentence, .r-sentence, .hz-box, .r-box {
    background: #f8f9fa !important;
}

.hz-box, .r-box {
    background: white !important;
}

.r-box.demo-mode {
    background: #f0f7ff !important;
    border-color: #2196F3 !important;
}

.hz-box:focus, .r-box:focus {
    outline: 2px solid #2196F3 !important;
    outline-offset: 2px;
}

.hz-box, .r-box {
    -webkit-tap-highlight-color: rgba(33, 150, 243, 0.3);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}